I tried to create Castle Militia out of the Town Militia unit. First I loaded the Swordsmen Militia in to Milkshape and removed everything except the Sword. Then I exported it as an .obj file.
Then I opened up all four Town Militia meshes, deleted the spear, imported the sword .obj and saved it and converted it back to a .mesh file.
Everything looks good with the model, except when I start the game the men are just standing there with their hands out like a cross. Just like in they do in Milkshape. When they move they float around like ghosts. And some parts where invisible, depending on what angle I was viewing them from.
I added this to the EDU:
type Castle Militia
dictionary Castle_Militia ; Castle Militia
category infantry
class light
voice_type Light
banner faction main_infantry
banner holy crusade
soldier Castle_Militia, 60, 0, 0.25
attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit
formation 1.2, 1.2, 2.4, 2.4, 5, square
stat_health 1, 0
stat_pri 5, 2, no, 0, 0, melee, melee_blade, piercing, sword, 0, 0.35
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 0.35
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 0, 9, 5, flesh
;stat_armour_ex 0, 4, 5, 0, 1, 6, 6, flesh
stat_sec_armour 0, 0, flesh
stat_heat 2
stat_ground 1, -2, 3, 2
stat_mental 3, normal, trained
stat_charge_dist 30
stat_fire_delay -2500
stat_food 60, 300
stat_cost 1, 290, 125, 75, 60, 290, 4, 70
armour_ug_levels 0, 1, 2
armour_ug_models Castle_Militia
ownership england
;unit_info 5, 0, 7
And this to the modeldb:
14 castle_militia
1 4
61 unit_models/_Units/EN_Peasant_Padded/castle_militia_lod0.mesh 121
61 unit_models/_Units/EN_Peasant_Padded/castle_militia_lod1.mesh 900
61 unit_models/_Units/EN_Peasant_Padded/castle_militia_lod2.mesh 2500
61 unit_models/_Units/EN_Peasant_Padded/castle_militia_lod3.mesh 6400
1
7 england
79 unit_models/_Units/EN_Peasant_Padded/textures/EN_Peasant_Padded_england.texture
78 unit_models/_Units/EN_Peasant_Padded/textures/EN_Peasant_Padded_normal.texture
49 unit_sprites/england_Dummy_EN_Spearmen_sprite.spr
1
7 england
68 unit_models/AttachmentSets/Final European Light_england_diff.texture
68 unit_models/AttachmentSets/Final European Light_england_norm.texture 0
1
4 None
14 MTW2_Swordsman 0
2
18 MTW2_Sword_Primary
14 fs_test_shield 0
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
I tried switching '49 unit_sprites/england_Dummy_EN_Spearmen_sprite.spr' with '49 unit_sprites/england_Armored_Swordsmen_sprite.spr ' but it was still the same.
I am totally new to all this, so there is probably an easy explanation I have not yet discovered that some of you might know. I hope![]()




Reply With Quote









