Introduction
A discussion I had some time ago led me to write this tutorial.In this tutorial I will show you how to enable shield wall formation for units.
For this tutorial,I assume you have unpacked the game.If you work on the export_descr_unit.txt of some mod,unpacking mustn't bother you.If you want to work on the vanilla game,and you haven't unpacked the game,use the unpacker.If you don't find it,download and install the 1.2 patch.After you install,you can find the unpacker in Medieval II Total War/tools/unpacker.
We will work only on export_descr_unit.txt file.
Let's start
Before starting,we must choose the unit which we will give the shield wall formation to.The unit must carry shield,and mustn't have any other secondary formation (phalanx,schiltrom,wedge) or special ability (chanting).It must be an infantry unit as well.The dismouted Conquistadores is a good unit to use for this tutorial,as it meets all the requirements above.Here's its entry in EDU:
Code:
type Dismounted Conquistadores
dictionary Dismounted_Conquistadores ; Dismounted Conquistadores
category infantry
class heavy
voice_type Heavy
banner faction main_infantry
banner holy crusade
soldier Dismounted_Conquistadores, 48, 0, 1.2
attributes sea_faring, hide_forest, very_hardy, can_withdraw
formation 1.2, 1.2, 2.4, 2.4, 3, square
stat_health 1, 0
stat_pri 16, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 7, 9, 6, metal
;stat_armour_ex 7, 8, 0, 0, 9, 6, 6, metal
stat_sec_armour 0, 0, flesh
stat_heat 3
stat_ground 1, 0, 2, 0
stat_mental 11, low, trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 690, 150, 100, 75, 690, 4, 170
armour_ug_levels 3, 4
armour_ug_models Dismounted_Conquistadores, Dismounted_Conquistadores_ug1
ownership spain, portugal
era 2 spain, portugal
;unit_info 16, 0, 22
Adding the shield wall formation is very easy.Add shield_wall in the end of the attributes and formation lines.The new text must be separated from the previous word by a comma and a space.The entry should now look like this(newly added text is in red):
Code:
type Dismounted Conquistadores
dictionary Dismounted_Conquistadores ; Dismounted Conquistadores
category infantry
class heavy
voice_type Heavy
banner faction main_infantry
banner holy crusade
soldier Dismounted_Conquistadores, 48, 0, 1.2
attributes sea_faring, hide_forest, very_hardy, can_withdraw, shield_wall
formation 1.2, 1.2, 2.4, 2.4, 3, square, shield_wall
stat_health 1, 0
stat_pri 16, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 7, 9, 6, metal
;stat_armour_ex 7, 8, 0, 0, 9, 6, 6, metal
stat_sec_armour 0, 0, flesh
stat_heat 3
stat_ground 1, 0, 2, 0
stat_mental 11, low, trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 690, 150, 100, 75, 690, 4, 170
armour_ug_levels 3, 4
armour_ug_models Dismounted_Conquistadores, Dismounted_Conquistadores_ug1
ownership spain, portugal
era 2 spain, portugal
;unit_info 16, 0, 22
Now save and close.That's all!
But now we need a proper UI icon for enabling/disabling the formation.Dowload the attached file,and extract it in C:/Program Files (x86)/SEGA/Medieval II Total War/data/ui/southern_european/interface,and accept to replace the file.
Preview
Dismounted Conquistadores in standard formation...
...and when doing shield wall formation
Notes
I also tried to add testudo formation,but it doesn't work.Testudo will crash your game if added to a unit.
I hope you found my tutorial useful