Game Development Community

Problem with Flying Vehicle.

by Anthony Rosenbaum · in Torque Game Engine · 06/07/2002 (4:01 pm) · 5 replies

I am using the code that came with the latest head. In fact the only thing I changed in the hard code was changing the contrailEmmiter max from 4 to 6. When I fly around, about 1 min of flying the game will lock up. I first thought it was a "ceiling" problem. Like. But I tried flying along the terrain and bamb it locked up again. This actually has been happening ofter I just was concerned until recently. My wheeled vehcile runs fine.
EDIT
After review it seems like this occurs when I throttle too much with the right mouse button. . . .
EDIT
if I chnage the mouseJet function to use a different variable the thrust doesn't work BUT there is no crashing.
here is my function maybeyou can see something I can't
function mouseJet(%val)
{
   $mvTriggerCount3 += $mvTriggerCount3 & 1 == %val ? 2 : 1;
    echo("I am hitting Mouse Jet");
  //$mvTriggerCount3++;
}
EDIT
Well it seems to occur when I hit throttle and forward for a long duration.
I'm guessing this is in the hard code . . . .anyone know what I should look for?

#1
01/21/2003 (12:23 am)
Check your

maneuveringForce =

It's been known to lockup with values over 4000. I'm having alot of Vehicle issues (both flying and wheeled). I can mount and dismount only once, if I try again I get damaged, I copied the code from the recource that was suppose to fix this.

I would love a update on flying vechicles from scratch working based on the current head, instead of a old resource that 20 people has posted various fixes, and none still seem to work.
#2
01/21/2003 (1:50 am)
There is a bug in the dismount code, the 'scheduled' function does not get called, leaving %mountVehicle to false.

I've posted a fix, check the resource.
#3
01/22/2003 (8:49 pm)
I think tim's advice is sound. Keep those forces < 4000 for sure. I JUST had the same problem and it happened when I was moving too fast for the engine to keep up with me I think.
#4
06/29/2004 (3:11 pm)
I can only provide a clue. I was getting this as well. I had set my mass to 0 (to float) but when I set it to 5, it was not crashing anymore.
#5
06/29/2004 (6:27 pm)
My experience since April when I bought Torque and started working with flying vehicles points to one unpercievable vilain : Datablocks !

A bad datablock can and will crash your game so that you will look everywhere else for the bug.

Search the resources for a good flying vehicle datablock and try it instead.