Edit:
Before editing battle_models.modeldb:
with the 1.2 patch the modeldb file was modified sightly
So you need to use a tool to format the modeldb
Get it here: http://www.twcenter.net/forums/downl...o=file&id=1180
Read the instructions for it. You will need to install Python also
Now the explanation of the file:
For the exemple, we will take something easy:
Code:
22 mercenary_arquebusiers
1 4
66 unit_models/_Units/RN_Light_Lmail/mercenary_arquebusiers_lod0.mesh 121
66 unit_models/_Units/RN_Light_Lmail/mercenary_arquebusiers_lod1.mesh 900
66 unit_models/_Units/RN_Light_Lmail/mercenary_arquebusiers_lod2.mesh 2500
66 unit_models/_Units/RN_Light_Lmail/mercenary_arquebusiers_lod3.mesh 6400
1
4 merc
71 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_mercs.texture
72 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.texture
51 unit_sprites/merc_Mercenary_Arquebusiers_sprite.spr
1
4 merc
66 unit_models/AttachmentSets/Final European CB Gun_merc_diff.texture
66 unit_models/AttachmentSets/Final European CB Gun_merc_norm.texture 0
1
4 None
18 MTW2_Fast_Arquebus
20 MTW2_Non_Shield_Fast 1
21 MTW2_Arquebus_Primary 1
18 MTW2_Sword_Primary
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
In green => the name of the soldier model
In red => the animations
In blue => the texture files
In orange => the attachments
In purple => the mount type
In dark red => weapons, shields and type of skeleton used
As you can see in this exemple there's only 1 faction (it is intentional).
Now let's study the numbers.
Each number that start a line informs the game how many characters there's in this line.
Exemple
Code:
59 unit_models/AttachmentSets/Final Heater_sicily_diff.texture
There's 59 characters in the line "unit_models/AttachmentSets/Final Heater_sicily_diff.texture"
Now, there's also numbers that indicates how many sections the game will search.
exemple:
Code:
18 norman_knights_ug1
1 3
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod0.mesh 121
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod1.mesh 1225
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod2.mesh 6400
2
6 sicily
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_sicily.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
49 unit_sprites/sicily_Norman_Knights_ug1_sprite.spr
5 slave
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_rebels.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
48 unit_sprites/slave_Norman_Knights_ug1_sprite.spr
2
6 sicily
59 unit_models/AttachmentSets/Final Heater_sicily_diff.texture
59 unit_models/AttachmentSets/Final Heater_sicily_norm.texture 0
5 slave
58 unit_models/AttachmentSets/Final Heater_slave_diff.texture
58 unit_models/AttachmentSets/Final Heater_slave_norm.texture 0
1
5 Horse
13 MTW2_HR_Lance
13 MTW2_HR_Sword 2
21 MTW2_HR_Lance_Primary
14 fs_test_shield 2
18 MTW2_Sword_Primary
14 fs_test_shield
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
In red => these are the numbers that indicates the game how many sections (or files) he has to search for
In Dark red=> the scale value
In blue => These are the numbers that tell the game how many characters there's in the line
In green => these numbers design a new line (0 = nothing in the line)
In purple => this number is always "1"
So now, let's add something quickly.
Let's say we will add the unit above to a new faction (let's say england)
Code:
18 norman_knights_ug1
1 3
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod0.mesh 121
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod1.mesh 1225
63 unit_models/_Units/EN_Pplate_Plate/norman_knights_ug1_lod2.mesh 6400
3
6 sicily
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_sicily.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
49 unit_sprites/sicily_Norman_Knights_ug1_sprite.spr
5 slave
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_rebels.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
48 unit_sprites/slave_Norman_Knights_ug1_sprite.spr
7 england
74 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_england.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
48 unit_sprites/england_NE_Bodyguard_ug1_sprite.spr
3
6 sicily
59 unit_models/AttachmentSets/Final Heater_sicily_diff.texture
59 unit_models/AttachmentSets/Final Heater_sicily_norm.texture 0
5 slave
58 unit_models/AttachmentSets/Final Heater_slave_diff.texture
58 unit_models/AttachmentSets/Final Heater_slave_norm.texture 0
7 england
60 unit_models/AttachmentSets/Final Heater_england_diff.texture
60 unit_models/AttachmentSets/Final Heater_england_norm.texture 0
1
5 Horse
13 MTW2_HR_Lance
13 MTW2_HR_Sword 2
21 MTW2_HR_Lance_Primary
14 fs_test_shield 2
18 MTW2_Sword_Primary
14 fs_test_shield
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
In blue => the additions
In red => the numbers modified
I hope it was enough good to make you understand this file