Using PathCamera: errors creating outside demo?
by Keith Johnston · in Torque Game Engine · 05/30/2004 (7:43 am) · 3 replies
The PathCamera in the demo works great - now I am trying to use it in my own game. I'm getting these errors:
Object 'LoopingCam' is not a member of the 'GameBaseData' data block class
gamefiles/server/scripts/game.cs (258): Register object failed for object Foo of class PathCamera.
Keith
Object 'LoopingCam' is not a member of the 'GameBaseData' data block class
gamefiles/server/scripts/game.cs (258): Register object failed for object Foo of class PathCamera.
Keith
#2
It seems like the PathCameraData is unknown to the game - but I'm using the same executable I use for the demo, which has no problem creating this datablock.
05/30/2004 (7:57 am)
Well I just cut & pasted the LoopingCam datablock definition from the demo://-----------------------------------------------------------------------------
// Path Camera
//-----------------------------------------------------------------------------
datablock PathCameraData(LoopingCam)
{
mode = "";
};It seems like the PathCameraData is unknown to the game - but I'm using the same executable I use for the demo, which has no problem creating this datablock.
#3
05/30/2004 (8:25 am)
I had the datablock defined in the wrong place - I moved it to be with all my other datablocks and it works now.
Associate Kyle Carter