AICreateNonATCAircraft - Bug

Kaiii3
Posts: 64
Joined: Tue Feb 10, 2015 1:14 pm

AICreateNonATCAircraft - Bug

Postby Kaiii3 » Sun Oct 20, 2019 2:05 pm

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?
Image

Kaiii3
Posts: 64
Joined: Tue Feb 10, 2015 1:14 pm

Re: AICreateNonATCAircraft - Bug

Postby Kaiii3 » Sun Oct 20, 2019 6:13 pm

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
Image

Kaiii3
Posts: 64
Joined: Tue Feb 10, 2015 1:14 pm

Re: AICreateNonATCAircraft - Bug

Postby Kaiii3 » Mon Oct 21, 2019 5:57 am

did some more tests this morning:

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

Kaiii3
Posts: 64
Joined: Tue Feb 10, 2015 1:14 pm

Re: AICreateNonATCAircraft - Bug

Postby Kaiii3 » Mon Oct 21, 2019 6:51 am

Workaround found for the moment:

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


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 5 guests