Home Technical Talk

Animation Problems

I'm setting up a model with some animations. The model itself is a lamp which is held by the players hand. I've exported my animations but it's not playing at all. I made an idle animation in max and exported it but when I test it in game it doesn't seem to be playing it at all.
The players hands are stuck out like the stereotypical zombie pose.
If someone could tell me the reason for the player not holding the model and not playing my animations I'd very much appreciate it, I'm involved in a project and would like to get this fixed as soon as possible.

Below are my xml, charmanim and other files related to this model.



Lamp.xml
<item name="Lamp" class="Binocular" category="utility" priority="0">
    <params>
        <param name="giveable"         value="1" />
        <param name="selectable"     value="1" />
        <param name="droppable"     value="1" />
        <param name="pose"             value="melee" />
        <param name="ui_weapon"     value="1" />
    </params>
    <geometry>
        <firstperson name="Objects/Weapons/Lamp/Lamp_fp.chr"/>
        <thirdperson name="Objects/Weapons/Lamp/Lamp_tp.cgf"/>
    </geometry>
    
    <actions>
        <action name="select">
            <animation target="firstperson" name="select_Lamp_fp" />
            <animation target="owner" name="select" />
            <sound target="firstperson" name="Sounds/weapons:weapon_accessories:binoculars_select" radius="5" />
        </action>
        <action name="idle_relaxed">
            <animation target="firstperson" name="idle_Lamp_fp"/>
            <animation target="owner" name="idle" />
        </action>
        <action name="pickedup">
            <sound target="firstperson" name="Sounds/weapons:weapon_accessories:pickup_weapon_fp" radius="5" />
            <sound target="thirdperson" name="Sounds/weapons:weapon_accessories:pickup_weapon_3p" radius="5" />
        </action>
    </actions>
    
</item>
Lamp_fp.chrparams
<?xml version="1.0" ?>
<Params>
    <AnimationList>
        <Animation name="#filepath" path="Animations\1st_person\Lamp\"/>
        <Animation name="$TracksDatabase" path="animations\1st_person\Lamp\Lamp_fp.dba"/>


        <Animation name="select_Lamp_fp" path="select_Lamp_fp.caf"/>
        <Animation name="idle_Lamp_fp" path="idle_Lamp_fp.caf"/>    
        <Animation name="back_to_idle_Lamp_fp" path="back_to_idle_Lamp_fp.caf"/>
        <Animation name="raise_Lamp_fp" path="raise_Lamp_fp.caf"/>
        <Animation name="deselect_Lamp_fp" path="deselect_Lamp_fp.caf"/>
        <Animation name="idle_raised_animation" path="idle_raised_animation.caf"/>
        
    
        
    </AnimationList>
</Params>
Lamp_fp.cdf
<CharacterDefinition>
 <Model File="objects/weapons/Lamp/Lamp_fp.chr" Material="Objects/weapons/Lamp/Lamp"/>
 <AttachmentList>
  <Attachment AName="arms" Type="CA_SKIN" Rotation="1,0,0,0" Position="0,0,0" BoneName="" Binding="objects/weapons/arms_fp/arms_fp.chr" Flags="0"/>
 </AttachmentList>
 <ShapeDeformation COL0="0" COL1="0" COL2="0" COL3="0" COL4="0" COL5="0" COL6="0" COL7="0"/>
</CharacterDefinition>
Lamp_fp.atl
<AttachmentList>
 <Attachment AName="arms" Type="CA_SKIN" Rotation="1,0,0,0" Position="0,0,0" BName="" Binding="objects/weapons/arms_fp/arms_fp.chr"/>
</AttachmentList>
Sign In or Register to comment.