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:
I guess I could say the same! FS Expo at the time of your message and then I got sidetracked and completely forgot to circle back. My bad.
Initially it does look like this no longer is producing crashes but I’ll do some more detailed checks to verify consistently reliable and whether the alignment issues are gone also! Will report back.
Hi bud, Good news and bad news. Crashes seem rare or completely gone from this issue, it’s a little hard to tell cause SU3 is still ornery and I get quite a few CTDs in general, but it’s probably not related to this one at least!
the bad news is, there’s still definitely some weirdness going on with placing the aircraft on ground despite that flag being set. Number of cases where they’ll be spawned, they have frozen positions but physics simulations are still occurring, and they’re sometimes placed at odd angles relative to the ground. This is resulting in them billowing smoke from the wheels sometimes (May only be FSLTL models? It’s almost always the FSLTL ERJ when the billowing smoke occurs but it can happen rarely with others), building up phantom forces and speeds and just having strange pitches. Looks like their positions just aren’t quite being calculated properly when the on ground flag is set still?
Example with the default beech 18 PassiveAircraft:
Ehh, we stopped using it in favour of a different method a while back. We ran some quick tests though and initially it seems good but intermittently it seems to crash the simulator after enough injections. As usual, I’ll try to dig a little deeper and if needs be we’ll put together a sample package and extra details for you to try to reproduce