Version: 1.2.11.0
Frequency: Consistently
Severity: High
Context:
I created a custom airport and want to make it live.
So, I tried adding AI aircraft using SimConnect.
Bug description:
First, I attempted to use SimConnect_AICreateEnrouteATCAircraft
, but I received the following messages:
- Code 7, which I think corresponds to
SIMCONNECT_EXCEPTION_NAME_UNRECOGNIZED
. - Code 23, which I believe is
SIMCONNECT_EXCEPTION_LOAD_FLIGHTPLAN_FAILED
.
I didn’t see the aircraft, and of course, the flight plan did not work.
Since that didn’t work, I tried a different approach using SimConnect_AICreateNonATCAircraft
, which placed the aircraft in the correct location.
Then, I used SimConnect_AISetAircraftFlightPlan
, but I got Code 7 again.
I attempted to load the flight plan like this:
std::string flightPlanPath = std::filesystem::current_path().string() + “\plan\SVR1Plan.pln”;
char *flightPlanCStr = strdup(flightPlanPath.c_str());
SimConnect_AISetAircraftFlightPlan(hSimConnect, AI_ObjectID, flightPlanCStr, 0);
I can see the aircraft, but it is not moving at all.
How to fix this , and how to create a flight plan for my custom airport
Note: My flight plane create in sim fs2024