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 "Hardcoded Limits - M2TW"

From TWC Wiki
Jump to navigationJump to search
(updated with info from forum thread)
(General Hard Coded Limits for M2TW: note about abilities)
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
* Max number of religions: 10
 
* Max number of religions: 10
 
* Max character name length: 42 (disputed)
 
* Max character name length: 42 (disputed)
* Max number of agent types: 12
+
* Max number of character types in descr_character.txt: 12 (already in use) - abilities are also hard-coded to type
 
* Max ancillaries per general: 8
 
* Max ancillaries per general: 8
 
* Max number of units for a faction available in custom battle selection screen: 200
 
* Max number of units for a faction available in custom battle selection screen: 200
Line 14: Line 14:
 
===[[export_descr_unit.txt]]===
 
===[[export_descr_unit.txt]]===
 
* Max Unit Entries: 500
 
* Max Unit Entries: 500
* Attack Delay (stat_pri): 1 to 100 see [http://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=15655493&viewfull=1#post15655493 here]
+
* Attack Delay (stat_pri): 1 to 100 see [https://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=15655493&viewfull=1#post15655493 here]
  
 
===[[descr_mount.txt]]===
 
===[[descr_mount.txt]]===
Line 20: Line 20:
  
 
===[[descr_sm_projectiles]]===
 
===[[descr_sm_projectiles]]===
* Max no of exploding_[name]_shot entries: 9  see [http://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=12712785&viewfull=1#post12712785 here]
+
* Max no of exploding_[name]_shot entries: 9  see [https://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=12712785&viewfull=1#post12712785 here]
  
 
===[[descr_sm_resources.txt]]===
 
===[[descr_sm_resources.txt]]===
Line 49: Line 49:
  
 
==Battle Map==
 
==Battle Map==
* Max size .worldterrain and .worldvegetation: around 501 rows/columns, see [http://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=12038285&viewfull=1#post12038285 here]  
+
* Max size .worldterrain and .worldvegetation: around 501 rows/columns, see [https://www.twcenter.net/forums/showthread.php?95670-The-Hardcoded-List&p=12038285&viewfull=1#post12038285 here]  
 
* Max no of vegetation models per group (vegetation.db): 4
 
* Max no of vegetation models per group (vegetation.db): 4
  
Line 56: Line 56:
  
 
==See Also==
 
==See Also==
* [http://www.twcenter.net/forums/showthread.php?t=95670 Hardcoded Limits thread on TWC]
+
* [https://www.twcenter.net/forums/showthread.php?t=95670 Hardcoded Limits thread on TWC]
 +
* [https://www.twcenter.net/forums/showthread.php?568506-New-hardcoded-list New hardcoded list on TWC]
 
*[[Hardcoded Limits - RTW|Hardcoded Limits in RTW]]
 
*[[Hardcoded Limits - RTW|Hardcoded Limits in RTW]]
  
  
[[Category: Modding]] [[Category: M2TW Modding]]
+
[[Category: M2TW Modding]]

Latest revision as of 05:22, 12 October 2020

Creative Assembly have built in some limits to the games, meaning that modders can not have more than x amount of factions or y amount of units. Limits for Medieval II: Total War appear to be similar to Rome: Total War though some are slightly raised. See also Hardcoded Limits in RTW which may also apply unless a higher value is mentioned here.

General Hard Coded Limits for M2TW

  • Max number of crusades at once: 1
  • Max number of cultures: 7
  • Max number of religions: 10
  • Max character name length: 42 (disputed)
  • Max number of character types in descr_character.txt: 12 (already in use) - abilities are also hard-coded to type
  • Max ancillaries per general: 8
  • Max number of units for a faction available in custom battle selection screen: 200

Text Files

export_descr_unit.txt

  • Max Unit Entries: 500
  • Attack Delay (stat_pri): 1 to 100 see here

descr_mount.txt

  • Max mount types: 99

descr_sm_projectiles

  • Max no of exploding_[name]_shot entries: 9 see here

descr_sm_resources.txt

  • Max: 26

descr_sm_factions.txt

  • Min: ?
  • Max: 31

export_descr_buildings.txt

  • Maximum number of buildings per tree: 9.
  • Maximum number of building trees: 128.
  • Hidden_resources list Min: 2 Max: 64

export_descr_character_traits.txt

  • Max Affects per Trigger: 10
  • Max Levels per character type: 9 (0 to 8)

Campaign Map

  • Max number of regions: 200 (Including number of sea regions)
  • Max size of map_regions: 510x510 pixels
  • Max size of map_climates: 1021x1021 pixels
  • Max size of map_heights: 1021x1021 pixels
  • Max size of map_ground_types: 1021x1021 pixels
  • Max size of map_roughness: 1020x1020 pixels
  • Max size of map_features: 510x510 pixels
  • Max size of map_trade_routes: 510x510 pixels

Battle Map

  • Max size .worldterrain and .worldvegetation: around 501 rows/columns, see here
  • Max no of vegetation models per group (vegetation.db): 4

Interface

  • tga pages sizes (data/ui/"culture folder"/interface) : 510 x 510

See Also