Ok, high hopes dashed.
I ended up using warbirds warband work as the base TGA. I renamed the file as unit_barb_warband_longshielde.tga. Here is the final unit description in the descr_model_battle file.
type barb_infantry_longshield_axemen
skeleton fs_swordman, ;
indiv_range 40
texture gauls, data/models_unit/textures/unit_barb_warband_longshielde.tga
model_flexi data/models_unit/unit_barb_warband_german_axe_high.cas, 8
model_flexi data/models_unit/unit_barb_warband_german_axe_med.cas, 15
model_flexi data/models_unit/unit_barb_warband_german_axe_low.cas, 30
model_flexi data/models_unit/unit_barb_warband_german_axe_lowest.cas, max
model_sprite gauls, 60.0, data/sprites/gauls_barb_infantry_longshield_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
I discovered that the model_flexi data are based on Cas files. Apparantly, you need to reference actual files using the weapons. So I used warbirds TGA with the German axe CAS files. I found some other units using this same process. It should work-I think.
Here is the export_descr_unit description I used:
type warband axe gaul
dictionary barb_infantry_gaul ; Warband
category infantry
class heavy
voice_type Light_1
soldier barb_infantry_longshield_axemen, 50, 0, 1.2
officer barb_standard
attributes sea_faring, hide_improved_forest
formation 1.2, 1.2, 2.4, 2.4, 4, square
stat_health 1, 0
stat_pri 9, 7, no, 0, 0, melee, blade, piercing, axe, 25 ,0.75
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
stat_pri_armour 3, 2, 2, leather
stat_sec_armour 0, 0, flesh
stat_heat 2
stat_ground 2, -2, 3, 2
stat_mental 9, impetuous, untrained
stat_charge_dist 40
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 340, 170, 50, 70, 450
ownership gauls
The soldier link should be correct.
I also updated the descr_buildings file so the axemen can be built. I referenced the existing barb_infantry_gaul for the export_units.txt and 'export_descr_unit_enums dictionary references rather than write new ones now.
Of course, it crashes on load every time. I can only guess the problem lies in a mismatch between the TGA file and CAS files. Although the problem could be anywhere.
After many hours on this, I am taking a break...any ideas out there where the problem may lie?
Bookmarks