FlyingVehicle problem... non-conobject?
by Tom Spilman · in Torque Game Engine · 02/10/2005 (2:15 am) · 3 replies
I'm new to the game code side of things... maybe someone can help me.
I'm trying to integrate the FlyingVehicle resource. In my code when i try to new a FlyingVehicle() i get the following error in the console:
Things fall apart after this as the new operator returns null.
Also i just noticed that in the console i get the following when the flying vehicle script is exec'd:
It's all alien to me. Thanks for the help guys!
I'm trying to integrate the FlyingVehicle resource. In my code when i try to new a FlyingVehicle() i get the following error in the console:
Quote:Frontier/server/scripts/game.cs (370): Unable to instantiate non-conobject class FlyingVehicle.
Things fall apart after this as the new operator returns null.
Also i just noticed that in the console i get the following when the flying vehicle script is exec'd:
Quote:Loading compiled script Frontier/server/scripts/fighter.cs.
Frontier/server/scripts/fighter.cs (0): Unable to instantiate non-conobject class FlyingVehicleData.
It's all alien to me. Thanks for the help guys!
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
Associate Kyle Carter
That script error occurs when the console system is unaware of the class in question, usually due to missing or broken DECLARE_CONOBJECT/IMPLEMENT_CONOBJECT macros. Sometimes a clean rebuild will clear the problem up, sometimes it's actually due to broken code on your part.