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
(New page: ==In M2TW== 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 c...)
 
 
(21 intermediate revisions by 8 users not shown)
Line 1: Line 1:
==In M2TW==
+
{{DISPLAYTITLE:descr_sm_factions.txt}}
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:
+
{{RTW M2TW Modding Logo}}
 +
==M2TW Example==
 +
The "descr_sm_factions.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:
 +
[[Descr sm factions.txt#faction|faction]] portugal
 +
[[Descr sm factions.txt#culture|culture]] southern_european
 +
[[Descr sm factions.txt#religion|religion]] catholic
 +
[[Descr sm factions.txt#symbol|symbol]] models_strat/symbol_portugal .CAS
 +
[[Descr sm factions.txt#rebel_symbol|rebel_symbol]] models_strat/symbol_rebels.CAS
 +
[[Descr sm factions.txt#primary_colour|primary_colour]] red 215, green 0, blue 0
 +
[[Descr sm factions.txt#secondary_colour|secondary_colour]] red 255, green 210, blue 0
 +
[[Descr sm factions.txt#loading_logo|loading_logo]] loading_screen/symbols/symbol128_portugal.tga
 +
[[Descr sm factions.txt#standard_index|standard_index]] 12
 +
[[Descr sm factions.txt#logo_index|logo_index]] FACTION_LOGO_PORTUGAL
 +
[[Descr sm factions.txt#small_logo_index|small_logo_index]] SMALL_FACTION_LOGO_PORTUGAL
 +
[[Descr sm factions.txt#triumph_value|triumph_value]] 5
 +
[[Descr sm factions.txt#custom_battle_availability|custom_battle_availability]] yes
 +
[[Descr sm factions.txt#can_sap|can_sap]] no
 +
[[Descr sm factions.txt#prefers_naval_invasions|prefers_naval_invasions]] yes
 +
[[Descr sm factions.txt#can_have_princess|can_have_princess]] yes
 +
[[Descr sm factions.txt#has_family_tree|has_family_tree]] yes
  
 +
==RTW Example==
 +
Typical example from RTW 1.5:
 +
[[Descr sm factions.txt#faction|faction]] macedon
 +
[[Descr sm factions.txt#culture|culture]] greek
 +
[[Descr sm factions.txt#symbol|symbol]] models_strat/symbol_macedon.CAS
 +
[[Descr sm factions.txt#rebel_symbol|rebel_symbol]] models_strat/symbol_greek_rebel.CAS
 +
[[Descr sm factions.txt#primary_colour|primary_colour]] red 0, green 0, blue 0
 +
[[Descr sm factions.txt#secondary_colour|secondary_colour]] red 255, green 75, blue 0
 +
[[Descr sm factions.txt#loading_logo|loading_logo]] loading_screen/symbols/symbol128_macedon.tga
 +
[[Descr sm factions.txt#standard_index|standard_index]] 4
 +
[[Descr sm factions.txt#logo_index|logo_index]] 239
 +
[[Descr sm factions.txt#small_logo_index|small_logo_index]] 253
 +
[[Descr sm factions.txt#triumph_value|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
 +
[[Descr sm factions.txt#custom_battle_availability|custom_battle_availability]] yes
 +
[[Descr sm factions.txt#can_sap|can_sap]] yes
 +
[[Descr sm factions.txt#prefers_naval_invasions|prefers_naval_invasions]] no
  
faction england<br>
+
==Barbarian Invasion Example==
culture northern_european<br>
+
Typical example including hording:
religion catholic<br>
+
[[Descr sm factions.txt#faction|faction]] goths, spawns_on_revolt ostrogoths
symbol models_strat/symbol_england.CAS<br>
+
[[Descr sm factions.txt#culture|culture]] nomad
rebel_symbol models_strat/symbol_rebels.CAS<br>
+
[[Descr sm factions.txt#symbol|symbol]] models_strat/symbol_goths.CAS
primary_colour red 215, green 0, blue 0<br>
+
[[Descr sm factions.txt#rebel_symbol|rebel_symbol]] models_strat/symbol_nomad_rebel.CAS
secondary_colour red 255, green 210, blue 0<br>
+
[[Descr sm factions.txt#primary_colour|primary_colour]] red 247, green 73 blue 2
loading_logo loading_screen/symbols/symbol128_england.tga<br>
+
[[Descr sm factions.txt#secondary_colour|secondary_colour]] red 0, green 0, blue 0
standard_index 12<br>
+
[[Descr sm factions.txt#loading_logo|loading_logo]] loading_screen/symbols/symbol128_goths.tga
logo_index FACTION_LOGO_ENGLAND<br>
+
[[Descr sm factions.txt#standard_index|standard_index]] 9
small_logo_index SMALL_FACTION_LOGO_ENGLAND<br>
+
[[Descr sm factions.txt#logo_index|logo_index]] 238 ; Index into strat3.rsd
triumph_value 5<br>
+
[[Descr sm factions.txt#small_logo_index|small_logo_index]] 252 ; Index into shared.rsd
custom_battle_availability yes<br>
+
[[Descr sm factions.txt#triumph_value|triumph_value]] 5
can_sap no<br>
+
intro_movie
prefers_naval_invasions yes<br>
+
victory_movie fmv/victory/goths_win.wmv
can_have_princess yes<br>
+
defeat_movie fmv/lose/goths_eliminated.wmv
has_family_tree yes<br>
+
death_movie fmv/lose/goths_eliminated.wmv
 +
[[Descr sm factions.txt#custom_battle_availability|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
 +
....
 +
[[Descr sm factions.txt#can_sap|can_sap]] yes
 +
[[Descr sm factions.txt#prefers_naval_invasions|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 and how a horde faction is set up can be found in [[Hording and Emergent Factions - RTW/BI]]
  
'''Breaking it down, What it all this means:'''
+
==Breaking it down, What it all this means:==
  
Faction: This is the faction the data applies to.<br>
+
====faction====
 +
: This is the faction the data applies to.<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>
+
====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>
  
Religion: The faction's religion.<br>
+
====religion====
 +
: The faction's religion. - ''not used in RTW/BI''
  
Symbol: What faction symbol the faction will use.<br>
+
====symbol====
 +
: What faction symbol the faction will use.<br>
  
Primary_colour: The main colour of the faction (this deterines the middle colour of 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>
+
====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>
  
Secondary_colour: The secondary colour of the faction (this determines the outer colour of the border lines on the stratmap).<br>
+
====secondary_colour====
 +
: The secondary colour of the faction (this determines the outer colour of the border lines on the stratmap).<br>
  
Loading_logo: Determines the symbol displayed on loading screens when entering a battle with that faction or loading a campaign.<br>
+
====loading_logo====
 +
: Determines the symbol displayed on loading screens when entering a battle with that faction or loading a campaign.<br>
  
Logo_index: ?<br>
+
====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: ?<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.
  
Triumph_value: ?<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.
  
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>
+
====triumph_value====
 +
: ? Possibly not used.<br>
  
Can_sap: Whether the faction cap sap in seiges (leftover from Rome: Total War, doesn't work)<br>
+
====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>
  
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_sap====
 +
: Whether the faction cap sap in seiges ''(used in RTW and BI, present but not functioning in M2TW)''<br>
  
Can_have_princesses: If the faction can have princesses (must have appropriate stratmap models)
+
====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>
  
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_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_-_M2TW|Emergent Factions in M2TW]] for section to add if emergent faction is required.
 +
 
 +
[[Category:M2TW Modding]]
 +
[[Category:RTW Text Editing & Scripting]]
 +
[[Category:RTW Files]]
 +
[[Category:M2TW Files]]

Latest revision as of 11:40, 16 March 2021

Rome:Total War & Remastered - Modding Index

M2TW Modding Index


M2TW Example

The "descr_sm_factions.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						portugal
culture						southern_european
religion					catholic
symbol						models_strat/symbol_portugal .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_portugal.tga
standard_index				12
logo_index					FACTION_LOGO_PORTUGAL
small_logo_index			SMALL_FACTION_LOGO_PORTUGAL
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 and how a horde faction is set up 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 (used in RTW and BI, present but not functioning in M2TW)

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.