Game Development Community

Torque Collapses

by DELETE · in General Discussion · 08/02/2006 (12:55 pm) · 6 replies

Okay I can across documentation on the datablocks that you can use for torque and I was just trying to become familiar with the PlayerData Datablock and this is all I have just to test it out:

datablock PlayerData(PlayerShape)
{
renderFirstPerson = true;
shapeFile = "~/data/shapes/player/player.dts";
};

Torque runs fine then I go into world editor it runs in it for a moment and then closes??
I even check the log file for an error that could of closed it but I didn't see anything that was pointing to the player.cs I made.


Any suggestions would be welcomed.

#1
08/02/2006 (1:09 pm)
It is probably that Torque expects more out of your datablock to work.
#2
08/02/2006 (1:24 pm)
Does it? That was sufficient for my PlayerData datablock in the project I'm working on right now.
#3
08/02/2006 (1:26 pm)
Then I stand corrected :) I was under the impression that you needed more or else it would assert.
#4
08/02/2006 (1:28 pm)
I think you can even get away with leaving out the renderFirstPerson... I haven't tested this, but I'm pretty sure it has a default of true from having surfed through the C++ code on it recently.
#5
08/03/2006 (5:51 am)
Okay thanks. I notice when I put in the TSShapeConstuctor information in it didn't collapse any more. I guess it's required?
#6
08/03/2006 (10:49 am)
Yeah, gotta have the animation data loaded.