Context: Injecting object using AICreateSimulatedObject via SimConnect
Similar MSFS 2020 issue: N/A
Bug description:
Repro steps: Simply trying to use AICreateSimulatedObject or AICreateSimulatedObject_EX1 with an aircraft (including FSLTL, AIG, FSTraffic, etc library models) crashes instantly and consistently in the SU2 betas. This continues to function completely as expected in SU1
For reference: Creating the same object using AICreateNonATC, Enroute, Parked, etc will work perfectly fine, it’s explicitly only via AICreateSimulatedObject that the freeze/CTD will occur.
Hi guys. Thanks for looking at this. Unfortunately super super busy this last day or two but I will work up a more explicit example/sample for you as soon as I get a moment @Boris
@Kaiii3 Yep, it seems to explicitly be aircraft… the more I think about it, it may explicitly be the FSLTL models. I will try to test more specifically and see if your AIG models actually trigger the same issue later.
Really appreciate your time and attention on this one. I’ve been running some tests (I will do some repeated testing to verify). Tried the following:
AIGAIM_easyJet Airbus A320-200SL - John Barton = No crash
AIGAIM_Ryanair Boeing 737 MAX 200 - Vote for Europe = No Crash
AIGAIM_Emirates Airbus A380-800 - EA Wifi = No Crash
AIGAIM_Etihad Airways Boeing 777-300ER - OC = Sim froze
Edit: I tried specifically injecting that 773 again and experienced no freeze… however when I injected it a 2nd time at a different location and the sim froze instantly, so it seems highly repeatable but not100% guaranteed that it will trigger the sim to freeze on a single injection.
Interestingly it also seems to not honour the on_ground flag for these, they are sunk into the ground like the root 0,0 is being placed on the ground rather than aligning the wheels.
Via AICreateNonATCAircraft (all other variables kept the same) they all work flawlessly…
I will try to cross verify this against SU1 and 2020 also to see if the sinking into the ground issue is universal or specifically SU2.
Edit: Confirmed in 2020 using AICreateSimulatedObject with the AIG models they spawn correctly aligned (same airport and scenery used also) with no freezes, will repeat in 2024 SU1 also: