Game Development Community

Wheeled Flying Vehicle Demo

by Andy Hawkins · in Torque Game Engine · 06/09/2005 (10:50 pm) · 6 replies

So I got the flying vehicle to appear in my starter.fps - didn't work immediately until I deleted all the *.dso files assosciated with the *.cs files!

But now it loads me into the starter.fps game in the flying wheeled vehicle ( sometimes I fall to the ground ) but no matter how much I press the Q key - it doesn't i throttle up.

Here's how I did it..

1) Copied wheeledflyingvehicle.cc and wheeledflyingvehicle.c to game\vehicle and recompiled to make the new exe

2) Copied the contents of the wheeledflyingvehicle.zip from this page ...
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7405
... and copied the example contents into my starter.fps folder overwriting various files.

3) Deleted all *.dso so that the .cs files were re-read???

4) Ran Torque from the command line ..\SDK\example\torqueDemo.exe -game starter.fps

5) Loaded Stronghold mission - ended up in the plane.

Moving the mouse around adjusts the flaps and wheels - but the Q and E keys wont throttle me up.

Any help would be appreciated.

#1
06/11/2005 (10:40 am)
Actually... I know what to do.

You need to map the keys inside the game.

Start the game
Go into options
map the throttle up and throttle down

Then it all works fine.
#2
06/22/2006 (7:39 am)
My log file reads like this.....

starter.fps/server/scripts/game.cs (303): Unable to instantiate non-conobject class WheeledFlyingVehicle.
Set::add: Object "0" doesn't exist. and also

starter.fps/server/scripts/aircraft.cs (0): Unable to instantiate non-conobject class WheeledFlyingVehicleData.

I am novice and struggling with it.

plz can any one help me out.

if possible add the link of completed files.
Thanks in advance
#3
06/22/2006 (7:41 am)
My log file reads like this.....

starter.fps/server/scripts/game.cs (303): Unable to instantiate non-conobject class WheeledFlyingVehicle.
Set::add: Object "0" doesn't exist. and also

starter.fps/server/scripts/aircraft.cs (0): Unable to instantiate non-conobject class WheeledFlyingVehicleData.

I am novice and struggling with it.

plz can any one help me out.

if possible add the link of completed files.
Thanks in advance
#4
06/22/2006 (7:49 am)
To me it looks like you didn't add the C++ source files to the TGE project, recompiled it and used that exe to test your game.
#5
06/22/2006 (7:50 am)
I bet you didn't add the source and header files to your project before compiling, did you? Just copying to the folder on your hard drive won't do anything - add them to your project then compile.
#6
06/22/2006 (8:04 am)
Http://tdn.garagegames.com/wiki/TorqueScript/Datablocks/FlyingVehicleData

Here a example drop it in the starter.racing folder. I test it out with TLK 1.4. It work good but need little work like jet effect and guns but good starting point.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5071