Game Development Community

New Engine Object Class with Datablock help

by Johnathan Moore · in Torque Game Engine · 05/04/2006 (1:17 pm) · 4 replies

Hi im having alot of trouble with this, ive made a new object & datablock type but whenever it attempts to create a new instance it freezes,its doesnt crash so its impossible to debug. This is the code

code

#1
05/04/2006 (1:45 pm)
Try putting your DECLARE__ and IMPLEMENT__ macros at the end of (or at least after) the declarations themselves--they are macros that are run during the preprocessing phase, and it's possible that they are not correctly munging up their needed output due to the position within your files.
#2
05/04/2006 (2:09 pm)
Unless I'm totally off, this may be your problem:

typedef GameBaseData ParentData;

It should be:

typedef GameBaseData Parent;

This would explain your problems on a new instance.
#3
05/04/2006 (2:13 pm)
No you arn't totally off,:p I changed gamebasedata to that, thats the only code change to the normal engine files ive made. there are no compilation errors

Im trying your idea stephen
#4
05/05/2006 (12:17 pm)
After playing around commenting bits out it seems I have been barking up the wrong tree, the problem seems to be in one of the functions it calls,sorry about that