MTW Unit Prod File
The unit_prod file for a campaign describes the cost, requirements, stats, and abilities of the units available within the campaign. The location of the unit_prod file for a specific campaign is specified the startpos file for the campaign, on the key line "Prodfiles::". For the main campaign, the unit_prod file is "Medieval - Total War\CRUSADERS_UNIT_PROD11.TXT", for the Viking Invasion campaign, the unit_prod file is "Medieval - Total War\VIKINGS_UNIT_PROD.TXT".
This file, along with the build_prod.txt file, essentially define the tech tree for the chosen campaign.
Contents
- 1 Column names and effects
- 1.1 Name/Identifier
- 1.2 Unit Type
- 1.3 Cost Integer
- 1.4 Support Cost Integer
- 1.5 Production Time
- 1.6 Starting Honour
- 1.7 Unit Base Strength
- 1.8 Number of Men
- 1.9 Honour Step Value
- 1.10 General Candidate
- 1.11 Rebelling Troop Mixes
- 1.12 Ruler ID Troop Advantage
- 1.13 Region ID Troop Advantage
- 1.14 Dojo Advantage
- 1.15 Unit Choices (AI)
- 1.16 Unit Specialty Building Influences
- 1.17 Buildings Necessary
- 1.18 Unit Class
- 1.19 Morale Bonus
- 1.20 Applicable Periods
- 1.21 Scaleable
- 1.22 Stats and General Info
- 1.22.1 HEIGHT
- 1.22.2 RADIUS
- 1.22.3 SCALE
- 1.22.4 PROJECTILE_TYPE
- 1.22.5 SAMURAI
- 1.22.6 MARCH_SPEED
- 1.22.7 RUN_SPEED
- 1.22.8 CHARGE_SPEED
- 1.22.9 MIN_TURNSPEED
- 1.22.10 MAX_TURNSPEED
- 1.22.11 TURN_TO_MOTION_SPEED
- 1.22.12 MAX_INMOTION_TURN
- 1.22.13 FORMATION_WIDTH_SPACING
- 1.22.14 FORMATION_LENGTH_SPACING
- 1.22.15 ENGAGEMENT_THRESHOLD
- 1.22.16 CHARGE_BONUS
- 1.22.17 MELEE_BONUS
- 1.22.18 DEFENCE_BONUS
- 1.22.19 ARMOUR_LEVEL
- 1.22.20 HONOUR_LEVEL
- 1.22.21 AMMO
- 1.22.22 FORMATIONS_PREFERRED_NUM_ROWS
- 1.23 Invisible
- 1.24 Unit Specialties
- 1.25 Tooltip Labels
- 1.26 Mount Type
- 1.27 Body Type
- 1.28 Faction Leader
- 1.29 Faction Association
- 1.30 Region Label
- 1.31 Formation Suitability
- 1.32 Task Suitability
- 1.33 Culture
- 1.34 Ship Info
- 1.35 Supporting Ranks
- 1.36 Morale Effects
- 1.37 Unit Spacing
- 1.38 Shield Type
- 1.39 Melee with Shield
- 1.40 Shield Modifier
- 1.41 Armour Piercing Weapon
- 1.42 Cavalry Attack Bonus
- 1.43 Cavalry Defense Bonus
- 1.44 Feared Units
- 1.45 Zeal Effects
- 1.46 Faith Effects
- 1.47 Dismounts to
- 1.48 Dismount in open battle
- 1.49 Weapon type
- 1.50 Mercenary Unit
Column names and effects
These are the column described in the unit_prod file.
Name/Identifier
This is the internal name of the unit. The location files may give the unit a different name for the player.
Unit Type
Different capabilities based on the entries. Hardcoded abilities with ships and agents.
- INFANTRY
- ARTILLERY
- CAVALRY
- MOUNT
- SHIP
- ASSASSIN
- SPY
- EMISSARY
- BISHOP
- CARDINAL
- INQUISITOR
- GRAND_INQUISITOR
- PRIEST
- ORTHODOX_BISHOP
- MULLAH
- ULAMA
- PRINCESS
- CRUSADE
- JIHAD
Cost Integer
The recruitment cost of the unit at the default size.
Support Cost Integer
Support cost factor of the unit. The total support cost per year will be this value, times the number of men in the unit, divided by 8, rounded down.
Production Time
Number of turns it takes to build the unit (not on huge sizes).
Starting Honour
Honour adjustment used for balancing. In the vanilla game, this is used to decrease the starting accuracy of certain siege weapons.
Unit Base Strength
A value used when determining the results of auto-calc'ed battles, retreat decisions, and morale adjustments.
Number of Men
Number of men in the unit when recruited at default size.
Honour Step Value
Number of kills necessary to level up valour for each man. Used to balance the valour leveling for certain units.
General Candidate
Used to determine the chances of a general present in unit.
- PREFERRED
- OK
- DISCOURAGED
Rebelling Troop Mixes
Chances of the unit being present in various rebellion types.
Ruler ID Troop Advantage
Factions listed here get a recruitment discount on the unit.
Region ID Troop Advantage
Units built in the listed provinces get a +1 valour bonus.
Dojo Advantage
Not used.
Unit Choices (AI)
Affects the build choices of the AI factions based on AI faction personality.
Unit Specialty Building Influences
Not used.
Buildings Necessary
Building necessary in the province to recruit the unit.
Unit Class
Roles the unit can be good at.
Morale Bonus
No idea.
Applicable Periods
Periods that the unit is recruitable in.
- EARLY
- HIGH
- LATE
- ALL_PERIODS
Scaleable
Does the unit scale with the unit size selected for the game?
Stats and General Info
Columns denoting various features of the unit.
HEIGHT
RADIUS
SCALE
PROJECTILE_TYPE
SAMURAI
MARCH_SPEED
RUN_SPEED
CHARGE_SPEED
MIN_TURNSPEED
MAX_TURNSPEED
TURN_TO_MOTION_SPEED
MAX_INMOTION_TURN
FORMATION_WIDTH_SPACING
FORMATION_LENGTH_SPACING
ENGAGEMENT_THRESHOLD
CHARGE_BONUS
MELEE_BONUS
DEFENCE_BONUS
ARMOUR_LEVEL
HONOUR_LEVEL
AMMO
FORMATIONS_PREFERRED_NUM_ROWS
Invisible
Can the unit hide anyware?
Unit Specialties
No idea.
Tooltip Labels
Mainly used for agent tooltip designations, when the cursor is over a campaign map piece.
Mount Type
- HORSE
- CAMEL
Body Type
Faction Leader
If a faction is listed, that factions royals will use this unit to represent the leader and princes.
Faction Association
Factions that the unit is available to.
Region Label
Regions that the unit can be recruited/retrained in.
Formation Suitability
Determines where in the formations the unit will be placed.
Task Suitability
Roles.
Culture
Culture that the unit is available to.
Ship Info
Statistics of ship units.
Supporting Ranks
The number of ranks capable of supporting action in combat.
Morale Effects
- DISCIPLINED
- UNCONTROLLED
Unit Spacing
Shield Type
- NONE
- SMALL
- LARGE
- PAVISE
- CAV
Melee with Shield
Can the unit use the shield in melee (add to defense value?)
Shield Modifier
Multiplier for the shield rating, used for balancing/graphics purposes.
Armour Piercing Weapon
Does the unit have an armour piercing melee attack.
Cavalry Attack Bonus
Unit attack bonus giving when fighting against cavalry. +1 for spearmen, +2 for pikemen, +3 for polearms/halberdiers.
Cavalry Defense Bonus
Unit defense bonus when fighting cavalry. +1 for polearms/halberdiers, +4 for spearmen, +6 for pikemen.
Feared Units
Units that this unit fears.
Zeal Effects
Affect on province zeal when the unit is situated in a province (agents only?).
Faith Effects
Affect on province religious faiths when the unit is situated in a province (agents only?).
Dismounts to
Unit type that a cavalry unit can dismount to.
Dismount in open battle
Can the unit dismount anytime, or just for siege battles.
Weapon type
Melee weapon type (for animations?)
- SWORD
- SPEAR
- AXE
- CLUB
Mercenary Unit
Can the unit be a mercenary, and during what period.
TBD - need better formatting and description text