Page 1 of 1

AICreateNonATCAircraft - Bug

Posted: Sun Oct 20, 2019 2:05 pm
by Kaiii3
Hey, when trying to create an non ATC Aircraft with the managed SimConnect (Prepar3Dv4 HF2) using the following code:

Code: Select all

this.SimConnect.AICreateNonATCAircraft("Robinson R22 Paint2", "N1001", Init, RequestIdentifier.AddTraffic);
I asumed the Tailnumber in the Sim should be "N1001" but the used Tailnumber in the Sim is the atc_id defined in the sim.cfg? Is this supposed this way and if yes why is there the option to set a own Tailnumer in the method?

Re: AICreateNonATCAircraft - Bug

Posted: Sun Oct 20, 2019 6:13 pm
by Kaiii3
removing the default atc_id from the sim.cfg has no effect on this problem. I have tested the SimConnect-Example (Managed_AI_Waypoints) and there the code for AICreateNonATCAircraft is working and the Aircraft get the assigned ID. As soon as I change the name in that example to "Robinson R22" is is not working.

It seem that this bug is only happening for Helicopers

Re: AICreateNonATCAircraft - Bug

Posted: Mon Oct 21, 2019 5:57 am
by Kaiii3
did some more tests this morning:

creating a Helicopter SImObject with AICreateParkedATCAircraft has the same result, no Tailnumber

Re: AICreateNonATCAircraft - Bug

Posted: Mon Oct 21, 2019 6:51 am
by Kaiii3
Workaround found for the moment:

Change in the sim.cfg Category in [General] from Helicopter to Airplane.