I tried to make a unit of roman centurions using the centurion model, but my game crashes every time. Is there something i need to do differently or does rtw just not allow for the centurion to be used as a unit.
Printable View
I tried to make a unit of roman centurions using the centurion model, but my game crashes every time. Is there something i need to do differently or does rtw just not allow for the centurion to be used as a unit.
Better post here the pieces of text you used, both in descr_model_battle and export_descr_unit, for the new unit.Quote:
Originally Posted by raider7656
descr_model_battle:
export_descr_unit:PHP Code:
type roman_centurion_infantry
skeleton fs_dagger
indiv_range 40
texture romans_julii, data/models_unit/textures/officer_roman_centurion_julii.tga
texture romans_brutii, data/models_unit/textures/officer_roman_centurion_brutii.tga
texture romans_scipii, data/models_unit/textures/officer_roman_centurion_scipii.tga
texture romans_senate, data/models_unit/textures/officer_roman_centurion_senate.tga
model_flexi_m data/models_unit/officer_roman_centurion_high.cas, 15
model_flexi_m data/models_unit/officer_roman_centurion_med.cas, 30
model_flexi_m data/models_unit/officer_roman_centurion_low.cas, 40
model_flexi data/models_unit/officer_roman_centurion_lowest.cas, max
model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_praetorian_cohort_ii_sprite.spr
model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_praetorian_cohort_ii_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
PHP Code:
type roman centurion
dictionary roman_centurion_infantry
category infantry
class heavy
voice_type Heavy_1
soldier roman_centurion_infantry, 40, 0, 1.3
attributes sea_faring,hide_anywhere,frighten_foot,can_sap,very_hardy
formation 1, 2, 2, 3, 4,square,testudo
stat_health 1, 0
stat_pri 25,10, pilum, 50, 10, thrown, blade, piercing, spear, 5, 1
stat_pri_attr ap,bp,prec,thrown ap
stat_sec 20,7, no, 0, 0, melee, blade, slashing, sword, 10, 1
stat_sec_attr no
stat_pri_armour 20, 10, 10, metal
stat_sec_armour 10, 5, leather
stat_heat 0
stat_ground 2, 0, 0, 0
stat_mental 120,disciplined,highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 2, 1810, 10, 45, 30, 1010
ownership romans julii,romans brutii,romans scipii,romans senate
Just in-case you've found a hard coded limit, do you know if you can definitely have:
for the morale? It's higher than I've noticed being used elsewhere.Quote:
stat_mental 120,
EDIT: as he was officer he probably only had primary weapon, you should only list a secondary weapon if the model actually has one (and if it does it needs additional skeleton in DMB as well) so you probably need to take the secondary weapon out of EDU make it
P.S. are you using -show_err, that should give error messages for some of that sort of thing...Quote:
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
I don't see anything obviously wrong in DMB, but EDU has a few suspect things that may be the source of your error.
Makanyane mentioned 2, but there are a couple others.
First, the primary weapon should not be ranged if the model does not have a secondary. You need secondary as Makanyane said, but you should also try making the primary weapon melee instead of ranged.
Second, if the lack of a melee weapon is not causing the problem, then you may want to remove either ap or thrown ap from the stat_pri_attr line. I don't think a weapon can be both ap and thrown ap.
Finally, you gave values for stat_sec_armour, but the unit doesn't have any seocndary creatures (elephants, dogs, etc.) with it. The game could ignore this or barf on it. I don't know.
hope that helps.