Game Development Community

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:

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.


#1
02/10/2005 (3:05 am)
Done a clean rebuild lately?

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.
#2
02/10/2005 (10:29 am)
Sure enough i had the same problem. In this case i'm using TSE and none of the vehicle classes were included in the example project.

My newbie mistake for the day. =) Thanks for the help Ben.
#3
02/10/2005 (1:47 pm)
Glad to see everybody got it solved. :)