• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

AI Traffic State

Messages
3
Country
ireland
Hi,

I'm trying to monitor AI traffic by using the SimConnect API to retrieve the AI Traffic State (e.g. STATE_ENROUTE_AS_FILED, STATE_TAKEOFF, etc.). I can successfully get values such as Airspeed using SimConnect_AddToDataDefinition and SimConnect_RequestDataOnSimObject, but when i try to get "AI TRAFFIC STATE" I get back SIMCONNECT_EXCEPTION_NAME_UNRECOGNIZED.

Is this Simvar no longer supported in this version? Anyone know how I can get access to the AI traffic state?

Thanks
 
Messages
3
Country
ireland
I can get the position of the AI traffic, but not its state. These states are defined in the simulator (shown in the Devtools), but I'm starting to think they've left the state out of the Simvars exposed to SimConnect.
 

DragonflightDesign

Resource contributor
Messages
910
Country
northernireland
It's certainly still available in Prepar3D. Do you get any hits if you query the MSFS2000 SDK? I'd expect to find it under "AI Controlled Aircraft" (assuming that section exists).
 
Messages
3
Country
ireland
It's certainly still available in Prepar3D. Do you get any hits if you query the MSFS2000 SDK? I'd expect to find it under "AI Controlled Aircraft" (assuming that section exists).
Nothing that I can see anyway. The sim is obviously tracking the AI Traffic state, as it shows up in DevTools, but I'm starting to conclude that Asobo have not exposed it (through SimConnect anyway). Given the gaps in documentation, it is a pity that there is also not an API that allows us to query *all* the set simvars for an object (either enumerate them, or subscribe to them all), even just for dev/discovery purposes.
 

=rk=

Resource contributor
Messages
3,567
Country
us-washington
The app linked above, shows the GPS, speed, heading, altitude and a few other values for all AI traffic, boat and air within a 105 mile radius, which is the simulator limit. Since SU10, I've not been able to verify it still works.
 
Top