PDA

View Full Version : Whats wrong with this?



Abokasee
12-18-2006, 19:40
Hi Everyone, anyway this is the problem (in export desr unit)

type Animated_sticks
dictionary Animated_sticks ;Animated-Sticks
category infantry
class light
voice_type Light_1
soldier sticks, 60, 60, 1.0
animal stickburn
attributes sea_faring, hide_forest, can_sap, hide_anywhere, very_hardy, can_swim
formation 1.2, 1.3, 2.4, 2.4, 6, square
stat_health 1, 0
stat_pri 5, 10, no, 0, 0, melee, simple, slashing, sword, 25 ,1
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
stat_pri_armour 1, 1, 0, flesh
stat_sec_armour 0, 1, flesh
stat_heat 4
stat_ground 0, 0, 0, 0
stat_mental 50, disciplined, untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 100, 210, 70, 100, 10
ownership slavs, roxolani

Bits in bold are stuff I added after a test then added them then tested it again with it, im not sure what the problem is... before anyone ask were here is the descr animal file in the orginal RTW

type stickburn
class pig
model sticksfire
radius 0.75
x_radius 0.35
height 1.0
mass 0.5

can somebody correct it and tell me what ive done wrong, and here is the descr model bit (back in BI)

type sticksfire
skeleton fs_pig
indiv_range 40
texture bi/data/models_unit/textures/black
texture roxolani, bi/data/models_unit/textures/white
model_flexi bi/data/models_unit/scratchman.cas, 15
model_flexi bi/data/models_unit/scratchman.cas, 30
model_flexi bi/data/models_unit/scratchman.cas, 40
model_flexi bi/data/models_unit/scratchman.cas, max
model_sprite 60.0, data/sprites/romans_julii_roman_principes_sprite1.spr
model_tri 400, 0.5f, 0.5f, 0.5f

Makanyane
12-18-2006, 21:04
I've never tried doing things with animals but a couple of bits stand out, in the EDU entry if you look at existing versions for dogs and pigs the category line is:
category handler
not infantry

Have you got a
type sticks
entry in DMB as well for the soldier / handler?

the original pig entries in DMB doesn't have a texture line at all so I'm not sure how that's handled - maybe just the default for the model?
in your DMB your first texture line doesn't have a faction I don't think you're supposed to do that, anyway. Second line;
texture roxolani, bi/data/models_unit/textures/white
should be
texture roxolani, bi/data/models_unit/textures/white.tga
assuming you have placed texture called 'white.tga.dds' in the textures folder,
you should also probably comment off the sprite line if you haven't made sprite for the model.

if none of that helps please explain what was working before / after your test and what crash symptoms are..

wlesmana
12-19-2006, 14:49
You cannot use anything other than wardog or pig as animals. Basically, you cannot use a normal soldier for this as you need them to have the dog or pig skeletons. The soldier's skeleton doesn't have the same animation routine list as the wardog and pig.

I notice you use the scratchman model for the pig. This will not work because the scratchman model was exported as a soldier. If you want it as pig or wardog, I'll attach it to the skeleton and give you the models.

Also, be caution but I don't think that you can have more than 1 wardog or pig in descr_animals.txt.

Abokasee
12-19-2006, 17:59
You cannot use anything other than wardog or pig as animals. Basically, you cannot use a normal soldier for this as you need them to have the dog or pig skeletons. The soldier's skeleton doesn't have the same animation routine list as the wardog and pig.

I notice you use the scratchman model for the pig. This will not work because the scratchman model was exported as a soldier. If you want it as pig or wardog, I'll attach it to the skeleton and give you the models.

Also, be caution but I don't think that you can have more than 1 wardog or pig in descr_animals.txt.

Yeah thanks for the help everyone and could you do that please, thankyou

nearer and nearer each day chirstmas comes