Author Topic: Custom armor animation doesn't seem to be working, animation doesn't change  (Read 2111 times)

Hello I was trying to port some old stuff to a newer sdk and when im trying out the custom armors and animations this is what i get:

In game nothing happens, i put my armor on and the animation still is bluesuit.
This is what it's shown in the server log:

Code: [Select]
[36:293] FOServer::SScriptFunc::Crit_ChangeCrType : Script error: New type arg is zero. : critter_item_movement : void critter_move_item(Critter&inout, Item&inout, uint8) : 9898, 1 : Critter::EventMoveItem : test1.

It's weird because i never ever before had this error. Maybe some wrong line in the proto?
Anyway, i'm copying/pasting any info related to the armor.

Crtype:
Code: [Select]
#
@  820    HFCMBR           11   0  0  1  1  1  1  1   1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0    400  200   4  8  0  0   hfjmps
@  821   HMCMBR            11   0  0  1  1  1  1  1   1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0    400  200   4  8  0  0   hfjmps


Some lines in _defines.fos:
Code: [Select]
#define CRTYPE_RAF (820)
#define CRTYPE_RAM (821)

The proto item:
Code: [Select]
[Proto]
ProtoId=23002
Type=1
PicMap=DRC\ground\rcground.png
PicInv=DRC\armor\redCA.png
Flags=134217758
DisableEgg=1
Weight=11339
Volume=10
SoundId=48
Cost=13035
Material=1
Armor.Anim0Male=821
Armor.Anim0Female=820
Armor.AC=25
Armor.DRNormal=40
Armor.DRLaser=65
Armor.DRFire=35
Armor.DRPlasma=50
Armor.DRElectr=55
Armor.DREmp=500
Armor.DRExplode=45
Armor.DTNormal=6
Armor.DTLaser=9
Armor.DTFire=5
Armor.DTPlasma=5
Armor.DTElectr=3
Armor.DTExplode=9
Armor.Perk=2

I would be very very very pleased if anyone tells me what i'm missing
thanks

Fixed, I just remade the item and works fine.
It was a bad line