Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Erratic Takeoff Behavior in Taxi/Takeoff or Scramble  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

UberDemon

  • UberDemon/danzigzag
  • Modder
  • member
  • Offline Offline
  • Posts: 1513
Erratic Takeoff Behavior in Taxi/Takeoff or Scramble
« on: January 12, 2025, 04:53:45 PM »

While tweaking the UQMG code, I have seen some weird behavior once in the air for some missions with:

* Taxi and Takeoff
 -- TAKEOFF_004:  Taxi waypoints - Spawn in first taxi waypoint with aircraft lined to the right of plane one with specified spacing
 -- TAKEOFF_005:  Taxi waypoints - Spawn in Generic Spawn Points
* Scramble
 -- TAKEOFF_002:  Scramble in pairs with specified spacing
 -- TAKEOFF_003:  Scramble in line with planes lined up to the right of plane one with specified spacing

In the original instructions for Taxi and Takeoff in IL-2 4.12m, the idea was to place a normal (TAKEOFF) point in the opposite side of the runway from the last taxi point or scramble point, or a point beyond the runway.  Problem is that with some planes the aircraft takeoff, and then try to go back to that TAKEOFF point, many times crashing.

The solution I saw was something I noticed in a taxi schema that genXgamer provided for UQMG to be used on the upcoming Alpha, specifically the UberQuick Template Builder.

The solution basically skips the TAKEOFF point and uses a NORMFLY point.  That of course only works as intended if the point lines up with the runway so the takeoff run is in the runway and not off to the side.

As I said, I am tweaking the UQMG code, and the best way to fix that with a mission generator is to calculate the precise location for the waypoint based on the Runway coordinates, so I wrote that in the code, and the option is highlighted below in the Flight Editor, and I am glad to say it is fully operational.



When scrambling or taxiing, there are 5 options:
* End of Runway:  Using TAKEOFF point at the end of runway
* 2x Runway Distance:  Taking off pointing to a NORMFLY point 2x size of runway
* 3x Runway Distance:  Taking off pointing to a NORMFLY point 3x size of runway
* 4x Runway Distance:  Taking off pointing to a NORMFLY point 4x size of runway
* 5x Runway Distance:  Taking off pointing to a NORMFLY point 5x size of runway

So in variations of the mission below...



Here are results for the five cases











When the aircraft are taking off, the AI is basically "blind" to anything else until the plane gets in a state it is ready to fly its waypoints, and sometimes when they are passing teh TAKEOFF location they are not ready yet and they then think they have to go back to that waypoint on the ground and crash.  By placing a NORMFLY waypoint after the last taxi waypoint, or scramble waypoint, at a significant distance, it gives the AI time to get into a flying state that it is ready to go to the NORMFLY point.  By giving different distance options, I figure that will probably cover jets in JTW when I incorporate that era into UQMG.
Logged
Best Regards, UberDemon/danzigzag, Get UQMG at SAS BAT Mission area.  www.uberdemon.net no longer exists.  (** Alienware Aurora R7 / i7-8700 3.20GHz / 16GB RAM / Win 10 x64 / NVIDIA GeForce GTX 1080 **)

Dimlee

  • member
  • Offline Offline
  • Posts: 1291
Re: Erratic Takeoff Behavior in Taxi/Takeoff or Scramble
« Reply #1 on: January 13, 2025, 08:35:56 AM »

The "automation" of the taking-off process is very welcome.

Normally, I don't have problems in BAT with either take off or taxi to take off. Unless I put too many objects around the field.
But on some maps (last time, I think it was one of Kharkov airfields in the Modern Donbass map, JTW), sometimes, aircraft do crazy things such as ignoring most or all carefully planned taxi waypoints and rushing through the fields and breaking something.
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 24 queries.