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

3D gauge question

Messages
64
Country
us-vermont
In learning 3D gauge creation I have been wondering about the Xml files located either in the Gauges folder or the actual aircraft folder located in SimObjects, now my question is: For 3D gauges, if we put a script into the modeldef.xml and apply it within the .mdl, why are there these secondary .xml documents for the same gauge that are located in SimObjects (or Gauges)? Is this for the 2D cockpit? If I was not making a 2D cockpit would these files be necessary? Now, I know that if I was making a gauge with a digital part to it then that would need to be in the gauge.cab file or if I were making a 2D gauge I believe that would need to go there as well.
 
Modeldef.xml -> Scripts that are compiled into the MDL
XML gauges somewhere else -> Used in 2D panels or on gauge polygons, managed by the panel.cfg

A panel folder and panel.cfg is needed for FSX to make the aircraft user-flyable, even if it does not contain a 2D panel.
 
Modeldef.xml -> Scripts that are compiled into the MDL
XML gauges somewhere else -> Used in 2D panels or on gauge polygons, managed by the panel.cfg

A panel folder and panel.cfg is needed for FSX to make the aircraft user-flyable, even if it does not contain a 2D panel.

So from my understanding is that even if I am not making 2D gauges or panels, I still need the panel folder for the systems/digital gauges and the cfg for exterior light tags and things of that nature. Since the majority of my gauges will need to be 3D is it still a good idea to learn from the .xml scripts that can be found in my sim's directory to apply that information to a 3D gauge scripted through modeldef.xml? Thanks for your answer, that did clear up some things for me.
 
Tags for 2D XML gauges are different from the tags used for 3D gauges. The code can be the same. Compare a 2D gauge with the code in the modeldef.xml and you'll see what I mean.
 
Back
Top