Hey there fellow m2tw players and modders I need your help!
I've already posted this on twcenter but got no answer so far and I really want to get this done today because I won't have any time to play over the course of the week.
So my problem is that I've been trying to make all knightly orders available to aragon in SS 6.1.
Now editing the EDU and EDB appropriately is no problem but when I tested it out I noticed that the Knights Hospitaller use the mounts of the Knights of Santiago and the Knights Templar use the horses of the Knights of Montesa.
So I looked up the problem in the EDU and found the following:
So they obviously rely on the same entries in the battle_models.modeldb which are the following:Code:type Knights Templar dictionary Knights_Templar ; Knights Templar category cavalry class heavy voice_type Heavy banner faction main_templar banner unit templars soldier Knights_Templar, 24, 0, 1 mount order mailed horse2 mount_effect elephant -4, camel -4 attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight formation 2, 4.4, 3, 6, 2, square, wedge stat_health 1, 0 stat_pri 6, 11, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1 stat_pri_attr no stat_sec 8, 6, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 stat_sec_attr no stat_pri_armour 9, 3, 4, metal stat_sec_armour 0, 0, flesh stat_heat 5 stat_ground 0, -2, -2, 0 stat_mental 15, impetuous, highly_trained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 1240, 300, 130, 100, 1240, 4, 220 armour_ug_levels 3, 4 armour_ug_models Knights_Templar, Knights_Templar_ug1 ownership england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, ireland, aragon recruit_priority_offset 20 type Knights Hospitaller dictionary Knights_Hospitaller ; Knights Hospitaller category cavalry class heavy voice_type Heavy banner faction main_hospitaller banner unit hospitaller soldier Knights_Hospitaller, 24, 0, 1 mount order mailed horse mount_effect elephant -4, camel -4 attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight formation 2, 4.4, 3, 6, 2, square, wedge stat_health 1, 0 stat_pri 6, 11, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1 stat_pri_attr no stat_sec 7, 6, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 stat_sec_attr no stat_pri_armour 9, 3, 4, metal stat_sec_armour 0, 0, flesh stat_heat 7 stat_ground 0, -2, -2, 0 stat_mental 15, normal, highly_trained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 1140, 300, 130, 100, 1140, 4, 220 armour_ug_levels 3, 4 armour_ug_models Knights_Hospitaller, Knights_Hospitaller_ug1 ownership england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, jerusalem, aragon recruit_priority_offset 20 type Knights of Montesa dictionary Knights_of_Montesa ; Knights of Montesa category cavalry class heavy voice_type Heavy accent Mediterranean banner faction main_cavalry banner unit hospitaller soldier Feudal_Knights, 24, 0, 1 mount order mailed horse2 mount_effect elephant -4, camel -4 attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight formation 2, 4.4, 3, 6, 2, square, wedge stat_health 1, 0 stat_pri 6, 10, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1 stat_pri_attr no stat_sec 8, 6, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 stat_sec_attr no stat_pri_armour 7, 3, 4, metal stat_sec_armour 0, 0, flesh stat_heat 6 stat_ground 0, -1, -2, -1 stat_mental 15, normal, highly_trained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 1100, 300, 130, 100, 1100, 4, 220 armour_ug_levels 3, 4 armour_ug_models Knights_of_Montesa, Knights_of_Montesa_ug1 ownership aragon recruit_priority_offset 20 type Knights of Santiago dictionary Knights_of_Santiago ; Knights of Santiago category cavalry class heavy voice_type Heavy banner faction main_santiago banner unit santiago soldier Knights_of_Santiago, 24, 0, 1 mount order mailed horse mount_effect elephant -4, camel -4 attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight formation 2, 4.4, 3, 6, 2, square, wedge stat_health 1, 0 stat_pri 6, 11, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1 stat_pri_attr no stat_sec 8, 6, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 stat_sec_attr no stat_pri_armour 9, 3, 4, metal stat_sec_armour 0, 0, flesh stat_heat 3 stat_ground 0, -1, -2, -1 stat_mental 15, normal, highly_trained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 1200, 300, 130, 100, 1200, 4, 220 armour_ug_levels 3, 4 armour_ug_models Knights_of_Santiago, Knights_of_Santiago_ug1 ownership spain, aragon, portugal era 1 spain, aragon, portugal era 2 spain, aragon, portugal recruit_priority_offset 20
Again they obviously just use other textures for the same mount. Now if I change these textures the problem naturally isn't solved as my other knights would use the wrong mounts then.Code:24 mount_order_mailed_horse 1.12 4 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod0.mesh 121 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod1.mesh 900 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod2.mesh 2500 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod3.mesh 10000 16 9 jerusalem 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 58 unit_sprites/jerusalem_Mount_Order_Mailed_Horse_sprite.spr 7 england 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 8 scotland 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 france 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 7 denmark 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 norway 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 5 milan 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 venice 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 12 papal_states 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 poland 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 7 hungary 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 15 knights_templar 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 sicily 85 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_hospitaller.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 46 unit_sprites/hre_Mount_Mailed_Horse_sprite.spr 6 aragon 82 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_santiago.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 5 spain 82 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_santiago.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 8 portugal 82 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_santiago.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 0 1 5 Horse 14 fs_heavy_horse 0 0 0 -1 0 0 0 0 0 0 25 mount_order_mailed_horse2 1.12 4 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod0.mesh 121 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod1.mesh 900 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod2.mesh 2500 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod3.mesh 10000 15 6 aragon 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_montesa.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 7 england 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 8 scotland 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 6 france 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 7 denmark 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 6 norway 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 5 milan 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 6 venice 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 12 papal_states 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 6 sicily 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 6 poland 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 7 hungary 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 15 knights_templar 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 9 jerusalem 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 7 ireland 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_templar.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 0 1 5 Horse 14 fs_heavy_horse 0 0 0 -1 0 0 0 0 0 0
So I figured out I had to add another mount (or actually 2). I changed the mount for the Knights of Montesa to "order mailed horse3" in EDU and pasted this at the end of the battle_models.modeldb:
Of course I increased the unit counter in the first line of the file and checked my syntax but the game always CTDs right at the start and I have no idea why.Code:25 mount_order_mailed_horse3 1.12 4 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod0.mesh 121 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod1.mesh 900 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod2.mesh 2500 72 unit_models/Mounts/Order_Mailed_Horse/mount_order_mailed_horse_lod3.mesh 10000 1 6 aragon 81 unit_models/Mounts/Order_Mailed_Horse/textures/order_mailed_horse_montesa.texture 80 unit_models/Mounts/Order_Mailed_Horse/textures/Order_mailed_horse_normal.texture 49 unit_sprites/sicily_Mount_Mailed_Horse_sprite.spr 0 1 5 Horse 14 fs_heavy_horse 0 0 0 -1 0 0 0 0 0 0
The funny thing is as long as I don't change the mount in EDU it all runs just fine which is adding to the confusion a bit. xD
It also doesn't matter where I paste this section. I initially tried putting it right after the entry for the "order mailed horse2".
Now I hope all you a lot more experienced modders can help me out as I really want to have all knightly orders available (for aragon for now but when this works I'll probably add them to all catholic nations).
Thanks in advance
Andy
Bookmarks