• 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.

Markerstate

Messages
156
Country
france
It took me some time to figure out what are marker states and how they works since the documentation isn't very explicit on that. The simulation variables "Marker State" is missing in the SDK, but is needed to build appropriate data definitions.

So how it works:

Code:
SimConnect_AddToDataDefinition(hSimConnect, DATA_ID, "Marker State", NULL, SIMCONNECT_DATATYPE_MARKERSTATE);
SIMCONNECT_DATA_MARKERSTATE ms;
strncpy(ms.szMarkerName, "Wheel", 64);
ms.dwMarkerState = 1;
SimConnect_SetDataOnSimObject(hSimConnect, DATA_ID, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG_DEFAULT, 1, sizeof(SIMCONNECT_DATA_MARKERSTATE), &ms);

And the result:
marker.jpg


Various model elements are available (wheel, center of gravity, wing tips, engines, etc)
 
Very nice investigative work!

Probably the same method used to draw the boxes around objects.
 
I wrote an article on this in the wiki some time ago. I've listed my observations on the limitations of the feature in the article, maybe you could add any you noticed.
 
Thanks rhysa ! I didn't notice your article. That would have saved me some brainstorming. :eek:
 
Its a very useful feature for developers. I have written an addon dll that adds a simple menu interface for the marker state functionality.
 
Back
Top