Console error...
by James Steele · in Torque Game Engine · 06/09/2005 (8:48 am) · 2 replies
I'm having a problem (this is my first attempt at implementing a new class in Torque) in that the engine does will not create an instance of a class from script. I create the class with the following method;
Only to get the following error;
I've registered the class a con object (it is derived from Vehicle) using the DECLARE_CONOBJECT macro in the class decleration and the IMPLEMENT_CO_NETOBJECT_V1 macro in the module file.
I don't suppose anybody has an idea as to what I might be doing wrong?
%tank = new COpHoverVehicle() {
dataBlock = HeavyTank;
client = %this;
};Only to get the following error;
Game/server/scripts/game.cs (341): Register object failed for object (null) of class COpHoverVehicle.
I've registered the class a con object (it is derived from Vehicle) using the DECLARE_CONOBJECT macro in the class decleration and the IMPLEMENT_CO_NETOBJECT_V1 macro in the module file.
I don't suppose anybody has an idea as to what I might be doing wrong?
About the author
#2
06/09/2005 (4:41 pm)
It's supposed to be COp as this is part of a coding standard I use when writting C++ code.
Torque Owner Chris Labombard
Premium Preferred