Game Development Community

Exception in TSThread::transitionToSequence

by John Pendlebury · in Torque Game Engine · 08/29/2006 (7:23 am) · 0 replies

Hi,

Hi I'm having a problem and I'm hoping someone can help me with it. I'm getting a Null pointer exception in TSThread::transitionToSequence.

It's caused by the "seq" parameter being out of range (-808464433). When I look at the call stack I can see that the problem originates in Player::updateState() at the line:

S32 seq = mDataBlock->actionList[mActionAnimation.action].sequence;

mActionAnimation.action is equal to 511 which is the value of PlayerData::NullAnimation that is assigned to it in PlayerData constructor. However, only the first eight members of actionList are initialised.

I'm using the fps starter code and I've replaced the model with a model with two simple aimations for run and root. The model is self contained in one dts file so I've removed the references to the dsq files in the script. However there must be something that I've forgotten to do that's causing this error.

Any suggestions would be greatly appreciated.

Regards,
John