Game Development Community

Error: ... not a member of the 'GameBaseData' data block class

by Jon Ray · in Torque Game Engine · 11/20/2006 (12:20 pm) · 1 replies

Why am I getting this error when I try to run the code given on page 116 - 117?

#1
11/23/2006 (11:06 am)
@Jon

Hi. You haven't really given me enough information to answer your questions, but I'm guessing that you're running this code without a server.

That is, to create a datablock and/or a staticshape (which uses a datablock), you need to start up one of the missions (either in the FPS starter kit that comes with Torque or in the GPGT Lesson Kit).

If this does not help, please give me some details surrounding your usage/testing of this code. i.e. What kit you're running, what files you placed this code in, what mission you're running.

Also, for the datablock example try this in the console after 'creating' the datablock:

echo( isObject( myFirstDatablock ) );

If this prints 0, then the datablock was not created and the subsequent step where we use the datablock to make a static shape won't work.


On a side note: I set up threads in this forum branch for each of the chapters here:

Chapters 1 & 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14

I know that posting to the same threads will make for a long thread over time, but it helps keep non-unique issues organized.

Also, I've provided an errata document on my GPGT Support Page which may cover other issues you will run into.



GPGT Support Page
Appendix E. Maze Runner Lessons (Steps Only) - Covers Mac and Windows
OSX Executable - Use for GPGT Lesson Kit and MazeRunner


www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT