Wheeled Flying Vehicle code problem
by Ben Ewing · in Torque Game Engine · 10/10/2005 (6:08 pm) · 9 replies
I am trying to set up the Wheeled Flying Vehicle code,but when the mission is about to start(Its done loading the objects) nothing happens...Does anyone know what the problemis?
#2
10/12/2005 (7:37 am)
Does it say anything in the console if you press ~?
#3
I tested the Wheeled Flying Vehicle but it didn't really work as I expected so I let it aside.
10/12/2005 (9:27 am)
I would suggest you to rebuild the whole engine.I tested the Wheeled Flying Vehicle but it didn't really work as I expected so I let it aside.
#4
From the console it looks like game.cs is messed up
"*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'starter.fps/data/missions/stronghold_f4d4221.ml'
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
starter.fps/server/scripts/game.cs (303): Unable to instantiate non-conobject class WheeledFlyingVehicle.
Set::add: Object "0" doesn't exist
starter.fps/server/scripts/game.cs (308): Unable to find object: '0' attempting to call function 'setTransform'
starter.fps/server/scripts/game.cs (309): Unable to find object: '0' attempting to call function 'setShapeName'
starter.fps/server/scripts/game.cs (319): Unable to find object: '0' attempting to call function 'getEyeTransform'
Mapping string: MissionStart to index: 11
Mapping string: SyncClock to index: 12"
10/12/2005 (2:32 pm)
Ok, I will try that later, Thanks.From the console it looks like game.cs is messed up
"*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'starter.fps/data/missions/stronghold_f4d4221.ml'
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
starter.fps/server/scripts/game.cs (303): Unable to instantiate non-conobject class WheeledFlyingVehicle.
Set::add: Object "0" doesn't exist
starter.fps/server/scripts/game.cs (308): Unable to find object: '0' attempting to call function 'setTransform'
starter.fps/server/scripts/game.cs (309): Unable to find object: '0' attempting to call function 'setShapeName'
starter.fps/server/scripts/game.cs (319): Unable to find object: '0' attempting to call function 'getEyeTransform'
Mapping string: MissionStart to index: 11
Mapping string: SyncClock to index: 12"
#5
10/12/2005 (3:11 pm)
Well, that means that you probably forgot to include the source files for your wheeledflying vehicle into your project (f.e. in visual c++)
#6
10/13/2005 (6:46 am)
Nope everything is included :(
#7
"Unable to instantiate non-conobject class WheeledFlyingVehicle"
that basicly means that no class with this name was bount into the script side.
in the c++ source file, there is a line
IMPLEMENT_CO_DATABLOCK_V1(WheeledFlyingVehicleData);
and
IMPLEMENT_CO_NETOBJECT_V1(WheeledFlyingVehicle);
those should handle it. well... you really should double check if your compiler really includes the c++ file, because if you have, i have no idea what could be going on.
10/13/2005 (6:52 am)
Well, if its really included and compiles fine without errors, there is something terribly wrong going on"Unable to instantiate non-conobject class WheeledFlyingVehicle"
that basicly means that no class with this name was bount into the script side.
in the c++ source file, there is a line
IMPLEMENT_CO_DATABLOCK_V1(WheeledFlyingVehicleData);
and
IMPLEMENT_CO_NETOBJECT_V1(WheeledFlyingVehicle);
those should handle it. well... you really should double check if your compiler really includes the c++ file, because if you have, i have no idea what could be going on.
#8
11/19/2005 (6:38 am)
I had this problem as well, I know it's all ready been said but just in case it wasn't clear, by rebuild the engine do a *complete* REBUILD, don't just click on build as it won't include the files properly.
#9
03/21/2006 (2:28 am)
Hi All, I had same problem and the consol error, I found VC was not adding the files to the project even if they were in the corrent folder in torque dir>....so to fix this open your project in Visual c++ goto the solution exporer open game folder find vehicles folder and right click, the add exisiting files from your vehicles dir in torque, then re-build...
Torque Owner Ben Ewing