plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

WombiiActual avatar image
WombiiActual asked WombiiActual edited

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.

screenshot-2021-08-14-020859.jpg


aircraftbug
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MaVe_Creations avatar image
MaVe_Creations answered WombiiActual commented

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.

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

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.

1 Like 1 ·
Kaiii3 avatar image
Kaiii3 answered WombiiActual commented

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

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

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.
1 Like 1 ·
FlyingsCool avatar image
FlyingsCool answered WombiiActual commented

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?

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

I'll test this, thanks for the tip.
0 Likes 0 ·
FlyingRaccoon avatar image
FlyingRaccoon answered WombiiActual commented

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

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

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.

1 Like 1 ·
WombiiActual avatar image
WombiiActual answered WombiiActual edited

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!



10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.