IsAirTraffic=0 ignored?

In my quest to develop some driveable vehicles for MSFS using the SDK
simpleaircraft sample I’ve stumbled onto a problem. My vehicles keep spawning
as parked AI aircraft. (GenerateParkedAircrafts). I’ve set IsAirTraffic=0
but this has no effect.
Is IsAirTraffic=0 currently broken or am I
misunderstanding the SDK? If this is set to TRUE (1) then this variation is
considered to be optimized for use as a parked plane, or as part of air
traffic. If set to FALSE (0) then it won’t be used for these things.

Static parked aircraft have nothing to do with this setting. The setting is
used for AI traffic. Parked static aircraft is not AI. It’s just dummy static
aircraft.

make sure your SimObject is flaged as “ground vehicle” according to SDK in the
Generel-Section of the aicraft.cfg/sim.cfg

Unfortunately, setting category = “GroundVehicle” in aircraft.cfg also
disables it from being user selectable, so this is not a viable option for
making a user flyable/driveable simobject unavailable for AI.

It doesn’t seem to be 100% correct to say that parked aircraft are not in the
AI system. They are capable of waking up and using services, and even taxi to
refueling for GA. They are however in a different AI system than flying air
traffic. The SDK also specifically says "Setting the isAirTraffic flag to
TRUE (1) allows the game to use that variation as a parked (grounded) passive
aircraft, and potentially as a part of the “Real Online” air traffic. " The
reasoning for this flag, according to the SDK, is to have optimized versions
of airplanes be available to the AI and parked AI systems, for performance
reasons, so it would make sense that it worked how it was described. I can’t
find a working method to disable an aircraft or variation from showing up as
non-player controlled aircraft.

Perhaps you can test something I thought might be behind this. It appears that
isAirTraffic=0 is only honored if Use Generic Aircraft is turned on? Kind of a
guess by me. It’s super annoying when your airfield is covered with Bleriot
XI’s, when you’re expecting some business jets and Jet Blue A320’s. I could
swear I submitted a bug report on this but I can’t find it. Basically asking
why icao_generic=0 and isAirTraffic=0 being ignored for parked aircraft, and
asked if it was related to Use Generic Aircraft status, and if so, why?

Hello As FlyingsCool mentioned, this parameter is only applicable when the Use
Generic Aircraft is set to ON. Obviously, having Bleriot XI all over the place
is not great and we should provide a way to force it off. I’ll create a ticket
about this. @WombiiActual What is your
SimObject type? Are you making it an aircraft SimObject so you can control it?
If so, the solution above will also fix this. Regards, Sylvain

I’ll test this, thanks for the tip.

Thank you very much for making that ticket. It would be great if we could
force a user flyable simobject not to be used as any sort of traffic, both for
performance and visual reasons. Yes, this specific simobject is a user
controllable set of fire trucks of simobject type “aircraft”. If I set it to
any other type it’s not selectable by the user.

I just wanted to update this post with the information that a new variable has
been added in aircraft.cfg that solves this issue. canBeUsedByAITraffic = 0
disables the variation for use as AI offline traffic and/or parked aircraft.
https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/Additional_Config_Information.htm#air_traffic_notes
Thank you Asobo!

1 Like