Game Development Community

Animation Problem

by thamonkey king · in Torque Game Engine · 02/15/2004 (9:19 pm) · 4 replies

Hey guys,
hope you can help me out with this one. I have been attempting to replace the aiplayer.cs model(same as player model) with one of my own creation in the starter.fps package. My model was created with Milkshape, and all the animations are the same as the default ones. When I load the model in the show tool it animates fine, but in game, instead of running around along its path like the default model does, it stands in place and spins, and I can't figure out why. Any help would be appreciated.

#1
02/16/2004 (11:06 am)
This is somewhat confusing. aiplayer.cs is a script file that defines the AI player's behavior. The AI Player uses the same player.dts model that a human player would.
#2
02/16/2004 (2:29 pm)
Sorry if I'm not making sense, it was late and I was tired - in the aiplayer.cs script I made a call to use my model instead of the player.dts model - which is all that I changed. But now when I run starter.fps, instead of running along following its path, the AI player just spins in place. Thanks for your help.

joel
#3
02/17/2004 (4:04 pm)
The only place in aiplayer where the actual player model is defined is in the PlayerData datablock - where it defines it as "LightMaleHumanArmor"

This datablock is in turn defined in the player.cs file. In order to change this, you would have to either create a new PlayerData datablock which replaces player.dts with your dts model in its shapeFile property, or change the shapeFile in the "LightMaleHumanArmor" datablock. Doing the later would change the player model for all players, not just the AIplayer.

In order for your model to work properly with the animations in the game, it has to have an identical bone structure to that of the default player model. If it does not, the animation sequences will not playback properly.
#4
02/18/2004 (8:41 am)
Ok, thanks for the help. It looks like I'm going about this the wrong way - I need to rethink my methods. I was just making a call to a new shapefile in the aiplayer datablock, which is probably where my problem came from. Back to the drawing board, as they say. I'll figure this Torque thing out eventually.