Context: FSLTL - AI aircraft injection via SimConnect
Similar MSFS 2020 issue: n/a Works as expected with MSFS 2020
Bug description:
With MSFS 2024, when AI aircraft are injected with AICreateParkedATCAircraft & AICreateEnrouteATCAircraft, the sim appears to avoid using any scenery taxiway parking spots that have parking codes assigned. Instead, the sim continues to only use parking with no parking codes, often removing existing aircraft to place new ones, over and over.
The same SimObjects, with the same atc_parking_codes in aircraft.cfg along with the same scenery work as expected in MSFS 2020.
Same experience whether using default MSFS 2024 scenery or custom 3rd party scenery.
Using the in-sim MSFS 2024 live traffic, all gates appear to be utilized.
Is this a case of MSFS 2024 not reading the atc_parking_codes from the aircraft.cfg file correctly? Or the airlineCodes from the scenery? Or something else?
Repro steps:
Inject AI aircraft using AICreateParkedATCAircraft & AICreateEnrouteATCAircraft. Aircraft have atc_parking_codes populated in aircraft.cfg. Scenery parking also configured with airlineCodes do not appear to be used.
Attachments:
Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content
After additional testing, the issue appears to be more extreme than just parking with no airlineCodes only being used.
If I remove the airlineCodes from 10 taxiway parking objects, all the same size (radius), when AI traffic is injected, it still seems to lock onto one parking spot, adding and removing traffic over and over. Only if that aircraft starts preflight or pushback does the sim then use another spot.
If larger aircraft are injected also, this same sequence of events can occur at the same time, only with larger parking.
This is a major break point for us (FSLTL) right now (besides the constant sim CTDs).
From the looks of it and a basic understandic of how “parking-scores” worked in previous flight simulators it looks like that the function to decide the parking spot has the following issues:
Not reading the atc_parking_code from the fltsim-sections (this is a new issue)
Not taking already used spots into account, selecting always the best spot based on the score (this is a new issue)
The isue with the usage of an already used spot was already in MSFS2020, but there it was only happening when all other spots have already be used. We suggested in that report that the Sim should not replace already injected airplanes with newly injected stuff when no other spot is available, but should return an Exception - like it has done in FSX.