News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 5th Jan 2004, 05:01 PM   #1
mjcramer
Creamy
 
mjcramer's Avatar
 
Join Date: Dec. 11th, 2003
Posts: 9
Playing character animations from a ukx file

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 by mjcramer; 5th Jan 2004 at 05:04 PM.
mjcramer is offline   Reply With Quote
Old 5th Jan 2004, 06:26 PM   #2
[SAS]Solid Snake
Registered User
 
[SAS]Solid Snake's Avatar
 
Join Date: Jun. 7th, 2002
Location: New Zealand
Posts: 2,633
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.
__________________
I make the impossible possible ... ... ... to some extent.

Digital Confectioners
[SAS]Solid Snake is offline   Reply With Quote
Old 6th Jan 2004, 01:37 AM   #3
mjcramer
Creamy
 
mjcramer's Avatar
 
Join Date: Dec. 11th, 2003
Posts: 9
Quote:
Originally Posted by [SAS]Solid Snake
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...
mjcramer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer