Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Descr sm factions.txt"

From TWC Wiki
Jump to navigationJump to search
(additions and category)
Line 1: Line 1:
==In M2TW==
+
==M2TW Example==
 
The "descr_sm_facions.txt" is an important file in Medieval 2 total war, it determines various features of the various factions in-game, such as whether they are available in custom battles or not, what faction symbol to show on the loading screen and several other things. An example entry from the file is shown below:
 
The "descr_sm_facions.txt" is an important file in Medieval 2 total war, it determines various features of the various factions in-game, such as whether they are available in custom battles or not, what faction symbol to show on the loading screen and several other things. An example entry from the file is shown below:
  
  
faction england<br>
+
[[Descr sm factions.txt#faction|faction]] england
culture northern_european<br>
+
[[Descr sm factions.txt#culture|culture]] northern_european
religion catholic<br>
+
[[Descr sm factions.txt#religion|religion]] catholic
symbol models_strat/symbol_england.CAS<br>
+
[[Descr sm factions.txt#symbol|symbol]] models_strat/symbol_england.CAS
rebel_symbol models_strat/symbol_rebels.CAS<br>
+
[[Descr sm factions.txt#rebel_symbol|rebel_symbol]] models_strat/symbol_rebels.CAS
primary_colour red 215, green 0, blue 0<br>
+
[[Descr sm factions.txt#primary_colour|primary_colour]] red 215, green 0, blue 0
secondary_colour red 255, green 210, blue 0<br>
+
[[Descr sm factions.txt#secondary_colour|secondary_colour]] red 255, green 210, blue 0
loading_logo loading_screen/symbols/symbol128_england.tga<br>
+
[[Descr sm factions.txt#loading_logo|loading_logo]] loading_screen/symbols/symbol128_england.tga
standard_index 12<br>
+
[[Descr sm factions.txt#standard_index|standard_index]] 12
logo_index FACTION_LOGO_ENGLAND<br>
+
[[Descr sm factions.txt#logo_index|logo_index]] FACTION_LOGO_ENGLAND
small_logo_index SMALL_FACTION_LOGO_ENGLAND<br>
+
[[Descr sm factions.txt#small_logo_index|small_logo_index]] SMALL_FACTION_LOGO_ENGLAND
triumph_value 5<br>
+
[[Descr sm factions.txt#triumph_value|triumph_value]] 5
custom_battle_availability yes<br>
+
[[Descr sm factions.txt#custom_battle_availability|custom_battle_availability]] yes
can_sap no<br>
+
[[Descr sm factions.txt#can_sap|can_sap]] no
prefers_naval_invasions yes<br>
+
[[Descr sm factions.txt#prefers_naval_invasions|prefers_naval_invasions]] yes
can_have_princess yes<br>
+
[[Descr sm factions.txt#can_have_princess|can_have_princess]] yes
has_family_tree yes<br>
+
[[Descr sm factions.txt#has_family_tree|has_family_tree]] yes
  
 +
==RTW Example==
 +
Typical example from RTW 1.5:
 +
faction macedon
 +
culture greek
 +
symbol models_strat/symbol_macedon.CAS
 +
rebel_symbol models_strat/symbol_greek_rebel.CAS
 +
primary_colour red 0, green 0, blue 0
 +
secondary_colour red 255, green 75, blue 0
 +
loading_logo loading_screen/symbols/symbol128_macedon.tga
 +
standard_index 4
 +
logo_index 239
 +
small_logo_index 253
 +
triumph_value 5
 +
intro_movie fmv/intros/greek_intro_640x480_bars.wmv
 +
victory_movie fmv/victory/greek_outro_320x240.wmv
 +
defeat_movie ata/fmv/lose/macedon_eliminated.wmv
 +
death_movie fmv/death/death_macedon_grass_320x240.wmv
 +
custom_battle_availability yes
 +
can_sap yes
 +
prefers_naval_invasions no
  
'''Breaking it down, What it all this means:'''
+
==Barbarian Invasion Example==
 +
Typical example including hording:
 +
faction goths, spawns_on_revolt ostrogoths
 +
culture nomad
 +
symbol models_strat/symbol_goths.CAS
 +
rebel_symbol models_strat/symbol_nomad_rebel.CAS
 +
primary_colour red 247, green 73 blue 2
 +
secondary_colour red 0, green 0, blue 0
 +
loading_logo loading_screen/symbols/symbol128_goths.tga
 +
standard_index 9
 +
logo_index 238 ; Index into strat3.rsd
 +
small_logo_index 252 ; Index into shared.rsd
 +
triumph_value 5
 +
intro_movie
 +
victory_movie fmv/victory/goths_win.wmv
 +
defeat_movie fmv/lose/goths_eliminated.wmv
 +
death_movie fmv/lose/goths_eliminated.wmv
 +
custom_battle_availability yes
 +
horde_min_units 60
 +
horde_max_units 100
 +
horde_max_units_reduction_every_horde 20
 +
horde_unit_per_settlement_population 300
 +
horde_min_named_characters 4
 +
horde_max_percent_army_stack 80
 +
horde_disband_percent_on_settlement_capture 33
 +
horde_disband_percent_on_settlement_capture 50
 +
horde_disband_percent_on_settlement_capture 100
 +
horde_unit steppe horde horse
 +
horde_unit steppe horde spearmen
 +
....
 +
can_sap yes
 +
prefers_naval_invasions no
  
Faction: This is the faction the data applies to.<br>
+
===Other Options for Faction line in BI===
 +
Factions in BI can also be assigned, [[spawned_on_event]], [[spawned_on_revolt]], [[shadowing]] & [[shadowed_by]] the explanation of what some of those do can be found in [[Hording and Emergent Factions - RTW/BI]]
  
Culture: The culture group the faction is a part of, this determines what UI it uses and the character portrait set that characters from that faction will use.<br>
+
==Breaking it down, What it all this means:==
  
Religion: The faction's religion.<br>
+
====Faction====
 +
: This is the faction the data applies to.<br>
  
Symbol: What faction symbol the faction will use.<br>
+
====Culture====
 +
: The culture group the faction is a part of, this determines what UI it uses and the character portrait set that characters from that faction will use.<br>
  
Primary_colour: The main colour of the faction (this determines the middle colour within the border lines on the stratmap, not the colour of stratmap and battlemap models, it also determines the colour of deployment zone borders on the battlemap).<br>
+
====Religion====
 +
: The faction's religion. - ''not used in RTW/BI''
  
Secondary_colour: The secondary colour of the faction (this determines the outer colour of the border lines on the stratmap).<br>
+
====Symbol====
 +
: What faction symbol the faction will use.<br>
  
Loading_logo: Determines the symbol displayed on loading screens when entering a battle with that faction or loading a campaign.<br>
+
====Primary_colour====
 +
: The main colour of the faction (this determines the middle colour within the border lines on the stratmap, not the colour of stratmap and battlemap models, it also determines the colour of deployment zone borders on the battlemap).<br>
  
Logo_index: ?<br>
+
====Secondary_colour====
 +
: The secondary colour of the faction (this determines the outer colour of the border lines on the stratmap).<br>
  
Small_logo_index: ? ''In RTW this is the index to the position of the relevant logo on the UI interface tga's''.<br>
+
====Loading_logo====
 +
: Determines the symbol displayed on loading screens when entering a battle with that faction or loading a campaign.<br>
  
Triumph_value: ?<br>
+
====Logo_index====
 +
: Position of the factions logo in the UI interface files, as defined in the .rsd (RTW/BI) or .sd (M2TW) files.
  
Custom_battle_availability: Whether or not the faction can be used in custom battles (There is a limit of 20 factions that can be displayed on the custom battle "choose faction screen", any more will not show up unless others are removed.<br>
+
====Small_logo_index====
 +
: Position of the smaller faction logo in the UI interface files, as defined in the .rsd (RTW/BI) or .sd (M2TW) files.  This is the smaller version used in the faction strength graphs and diplomacy view etc.
  
Can_sap: Whether the faction cap sap in seiges (leftover from Rome: Total War, doesn't work)<br>
+
====Standard_index====
 +
: The reference to which position on the banners/symbols''X''.tga.dds files the faction uses for its strategic map standard logo.
  
Prefers_naval_invasions: Whether the faction prefers to use naval invasions, important for island nations or factions without much room to expand in their local area (such as spain, portugal and sicily)<br>
+
====Triumph_value====
 +
: ? Possibly not used.<br>
  
Can_have_princesses: If the faction can have princesses (must have appropriate stratmap models)
+
====Custom_battle_availability====
 +
: Whether or not the faction can be used in custom battles (There is a limit of 20 factions that can be displayed on the custom battle "choose faction screen", any more will not show up unless others are removed.<br>
  
Has_family_tree: Whether or not the faction has a family tree (In vanilla only the Papal States has this, the faction leader must be determined through scripting otherwise the faction will be leaderless when their first leader dies).<br>
+
====Can_sap====
 +
: Whether the faction cap sap in seiges (leftover from Rome: Total War, doesn't work)<br>
 +
 
 +
====Prefers_naval_invasions====
 +
: Whether the faction prefers to use naval invasions, important for island nations or factions without much room to expand in their local area (such as spain, portugal and sicily)<br>
 +
 
 +
====Can_have_princesses====
 +
: If the faction can have princesses (must have appropriate stratmap models) - ''not used in RTW/BI''
 +
 
 +
====Has_family_tree====
 +
: Whether or not the faction has a family tree (In vanilla only the Papal States has this, the faction leader must be determined through scripting otherwise the faction will be leaderless when their first leader dies). - ''not used in RTW/BI''
  
  
==In RTW and BI==
 
''needs writing''<br>
 
<br>
 
 
==See Also==
 
==See Also==
 
[[Emergent_Factions_-_M2TW|Emergent Factions in M2TW]] for section to add if emergent faction is required.
 
[[Emergent_Factions_-_M2TW|Emergent Factions in M2TW]] for section to add if emergent faction is required.
Line 63: Line 134:
 
[[Category:MTW2Modding]]
 
[[Category:MTW2Modding]]
 
[[Category:Modding]]
 
[[Category:Modding]]
 +
[[Category:RTW Files]]

Revision as of 15:51, 24 August 2007

M2TW Example

The "descr_sm_facions.txt" is an important file in Medieval 2 total war, it determines various features of the various factions in-game, such as whether they are available in custom battles or not, what faction symbol to show on the loading screen and several other things. An example entry from the file is shown below:


faction						england
culture						northern_european
religion					catholic
symbol						models_strat/symbol_england.CAS
rebel_symbol				models_strat/symbol_rebels.CAS
primary_colour				red 215, green 0, blue 0
secondary_colour			red 255, green 210, blue 0
loading_logo				loading_screen/symbols/symbol128_england.tga
standard_index				12
logo_index					FACTION_LOGO_ENGLAND
small_logo_index			SMALL_FACTION_LOGO_ENGLAND
triumph_value				5
custom_battle_availability	yes
can_sap						no
prefers_naval_invasions		yes
can_have_princess			yes
has_family_tree					yes

RTW Example

Typical example from RTW 1.5:

faction						macedon
culture						greek
symbol						models_strat/symbol_macedon.CAS
rebel_symbol				models_strat/symbol_greek_rebel.CAS
primary_colour				red 0, green 0, blue 0
secondary_colour			red 255, green 75, blue 0
loading_logo				loading_screen/symbols/symbol128_macedon.tga
standard_index				4
logo_index					239
small_logo_index			253
triumph_value				5
intro_movie					fmv/intros/greek_intro_640x480_bars.wmv
victory_movie				fmv/victory/greek_outro_320x240.wmv
defeat_movie				ata/fmv/lose/macedon_eliminated.wmv
death_movie					fmv/death/death_macedon_grass_320x240.wmv
custom_battle_availability	yes
can_sap						yes
prefers_naval_invasions		no

Barbarian Invasion Example

Typical example including hording:

faction						goths, spawns_on_revolt ostrogoths
culture						nomad
symbol						models_strat/symbol_goths.CAS
rebel_symbol				models_strat/symbol_nomad_rebel.CAS
primary_colour				red 247, green 73 blue 2
secondary_colour			red 0, green 0, blue 0
loading_logo				loading_screen/symbols/symbol128_goths.tga
standard_index				9
logo_index					238		; Index into strat3.rsd
small_logo_index			252		; Index into shared.rsd
triumph_value				5
intro_movie
victory_movie				fmv/victory/goths_win.wmv
defeat_movie				fmv/lose/goths_eliminated.wmv
death_movie					fmv/lose/goths_eliminated.wmv
custom_battle_availability	yes
horde_min_units				60
horde_max_units				100
horde_max_units_reduction_every_horde 20
horde_unit_per_settlement_population	300
horde_min_named_characters	4
horde_max_percent_army_stack 80
horde_disband_percent_on_settlement_capture	33
horde_disband_percent_on_settlement_capture	50
horde_disband_percent_on_settlement_capture	100
horde_unit					steppe horde horse
horde_unit					steppe horde spearmen
....
can_sap						yes
prefers_naval_invasions		no

Other Options for Faction line in BI

Factions in BI can also be assigned, spawned_on_event, spawned_on_revolt, shadowing & shadowed_by the explanation of what some of those do can be found in Hording and Emergent Factions - RTW/BI

Breaking it down, What it all this means:

Faction

This is the faction the data applies to.

Culture

The culture group the faction is a part of, this determines what UI it uses and the character portrait set that characters from that faction will use.

Religion

The faction's religion. - not used in RTW/BI

Symbol

What faction symbol the faction will use.

Primary_colour

The main colour of the faction (this determines the middle colour within the border lines on the stratmap, not the colour of stratmap and battlemap models, it also determines the colour of deployment zone borders on the battlemap).

Secondary_colour

The secondary colour of the faction (this determines the outer colour of the border lines on the stratmap).

Determines the symbol displayed on loading screens when entering a battle with that faction or loading a campaign.

Logo_index

Position of the factions logo in the UI interface files, as defined in the .rsd (RTW/BI) or .sd (M2TW) files.

Small_logo_index

Position of the smaller faction logo in the UI interface files, as defined in the .rsd (RTW/BI) or .sd (M2TW) files. This is the smaller version used in the faction strength graphs and diplomacy view etc.

Standard_index

The reference to which position on the banners/symbolsX.tga.dds files the faction uses for its strategic map standard logo.

Triumph_value

 ? Possibly not used.

Custom_battle_availability

Whether or not the faction can be used in custom battles (There is a limit of 20 factions that can be displayed on the custom battle "choose faction screen", any more will not show up unless others are removed.

Can_sap

Whether the faction cap sap in seiges (leftover from Rome: Total War, doesn't work)

Prefers_naval_invasions

Whether the faction prefers to use naval invasions, important for island nations or factions without much room to expand in their local area (such as spain, portugal and sicily)

Can_have_princesses

If the faction can have princesses (must have appropriate stratmap models) - not used in RTW/BI

Has_family_tree

Whether or not the faction has a family tree (In vanilla only the Papal States has this, the faction leader must be determined through scripting otherwise the faction will be leaderless when their first leader dies). - not used in RTW/BI


See Also

Emergent Factions in M2TW for section to add if emergent faction is required.