Game Development Community

dev|Pro Game Development Curriculum

Wheeled Flying Vehicle updated TGE1.5.2

by ebee t · 10/08/2007 (10:20 am) · 9 comments

Download Code File

Download the attached .zip file and add to your engine / example directories. This is the basic package with existing aircraft from previous resource.

The player will spawn as the aircraft.

There is a readme file included in the .zip with details of where&how to add to the engine.

Issues: aircraft model node needs to be raised in the .max file, and re-exported as dts, as player is mounted below the aircraft.

Controls: use the up and down keys to thottle up /down.

This resource works with TGE1.5.2

About the author

Recent Blogs


#1
09/29/2007 (10:36 pm)
thanks for this, ebee T. with 2 minutes conversion, it works fine for TGEA 1.0.3
#2
10/10/2007 (5:18 pm)
Ken could you please send me the working TGEA port for this?

cbeer1@cogeco.ca
#3
10/10/2007 (5:58 pm)
Hi Adam, i think i just changed 'getServerConnection' over to 'getConnectionToServer'.
but if not... hopefully this should work for you...

ebee T's Wheeled Flying Vehicle for TGEA
#4
10/11/2007 (1:58 pm)
Thanks Ken.
#5
10/13/2007 (12:03 pm)
Im getting this error when I try and move the aircraft:

HotB/server/scripts/vehicles/aircraft.cs (631): Unknown command getThrottleLevel.
Object (1834) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
HotB/server/scripts/vehicles/aircraft.cs (631): Unknown command setThrottleLevel.
Object (1834) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject

The plane wont move at all. What is wrong?
#6
03/05/2008 (2:46 pm)
im getting the same problem as adam, plane looks real good though with the flap/rudder movement.

EDIT:
ive set the keybinds
its spawns in the game and i can control wheel/flap/rudder and mouse "jet" functions when i mount the orc on the aircraft, but for some reason inc/dec throttle is not responding and im not being able to take-off/move
ive mapped the inc/dec throttle keys to I and K being there not used and they appear to be linked right, though i still get the same error as adam beer mentioned

has anyone been able to pinpoint this error??
#7
04/27/2008 (3:52 pm)
I recieved this error too.
And my plane will not move!

I have not pinpointed this error yet.
#8
09/22/2009 (10:23 am)
Hi all,

I was wondering if anyone has been able to solve the issue with Throttle up/Down when the player mounts the plane. I have read through all of the forums on this and still the plane does not move, all I get is;

vehicles/aircraft.cs (631): Unknown command getThrottleLevel.
Object (1834) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject.

The wheels work, but the flaps don't.

I am working in 1.5.2, don't know if that is the issue or not.

Any ideas would be much apprecieated.

Thanks
#9
09/24/2009 (10:52 pm)
I think what was happening with the get/setThrottleLevel error was that it was trying to find that function in the player's code.

Try fixing the serverCmdThrottleUp and serverCmdThrottleDown code to work with mounted players, as the original code is assuming that the plane is the player.