Playing character animations from a ukx file

  • 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.

mjcramer

Creamy
Dec 11, 2003
9
0
0
49
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:

[SAS]Solid Snake

New Member
Jun 7, 2002
2,633
0
0
40
New Zealand
www.digitalconfectioners.com
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.
 

mjcramer

Creamy
Dec 11, 2003
9
0
0
49
[SAS]Solid Snake said:
You can't just use any animation for a mesh...

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...