1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Playing character animations from a ukx file

Discussion in 'Programming' started by mjcramer, Jan 5, 2004.

  1. mjcramer

    mjcramer Creamy

    Joined:
    Dec 11, 2003
    Messages:
    9
    Likes Received:
    0
    Okay, this has got to be an easy one, there's something really stupid that I'm missing...

    I'm trying to specify a set of movement animations (among other things) from a character animation file. Now, I've looked in the xPawn class and it seems that all they do is load the appropriate file via

    Code:
    defaultproperties
    {
      Mesh=mesh'CharacterAnims.CharacterMesh'
      MoveAnims(0)=NameOfAnimation
      etc..
    }
    
    and I assume that that name is available by virture of

    Code:
    #exec OBJ LOAD FILE=CharacterAnims.ukx
    
    Yet when I run my game and it engine tries to play the animation (like while the pawn is walking) it says:

    Log: PlayAnim: Sequence 'NameOfAnimation' not found for mesh 'CharacterMesh'. I've opened CharacterAnims.ukx in ued and I assure you that it is there. What gives?
     
    Last edited: Jan 5, 2004
  2. [SAS]Solid Snake

    [SAS]Solid Snake New Member

    Joined:
    Jun 7, 2002
    Messages:
    2,633
    Likes Received:
    0
    You can't just use any animation for a mesh, the animation must also belong to the mesh. For example, some of the animations that were done for some other meshes (take the Gorge model for the intro) can't just be applied onto the player models. Thus not only do you have to take care on what animations you choose but also what mesh you wish to apply onto the animation.
     
  3. mjcramer

    mjcramer Creamy

    Joined:
    Dec 11, 2003
    Messages:
    9
    Likes Received:
    0
    Absolutely right, and I forgot to mention that it was for the correct mesh (I'm a code guy, not an art guy ;). Anyway it turns out the problem was with a corrupted art file. I had the animations rebuilt and now they work. Thanks for your response...
     

Share This Page