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

FSXA XML code names

Messages
29
Country
us-nevada
Is there a list of names that can be put in a variable line to make custom xml to put in the modeldef.xml for 3d gauge creation? When I put in what M$ has included in the SDK Variables list (RECIP_ENGINE1_FUELFLOW_PPH) I get nothing but when I added (RECIP ENG FUEL FLOW:1) my gauge worked fine. Why is it that M$ has put all this info into the sdk that will not work. I find it very hard to learn xml when the wrong info has been provided or am I just reading it wrong?
 
(RECIP_ENGINE1_FUELFLOW_PPH) is a token variable only to be used with C++ gauges. Rather than looking under token variables go to your Core Utilities Kit\Variables\Simulation variables. You will also find Key events there as well.

And another thing...the syntax for XML variables is (type:name, units).

For example (RECIP ENG FUEL FLOW:1) would be (A:RECIP ENG FUEL FLOW:1, Pounds per hour). Note that in this case you are also indexing the variable name by adding the :1 after it for the no.1 engine. no.2 engine would be :2 and so on.
 
(RECIP_ENGINE1_FUELFLOW_PPH) is a token variable only to be used with C++ gauges. Rather than looking under token variables go to your Core Utilities Kit\Variables\Simulation variables. You will also find Key events there as well.

And another thing...the syntax for XML variables is (type:name, units).

For example (RECIP ENG FUEL FLOW:1) would be (A:RECIP ENG FUEL FLOW:1, Pounds per hour). Note that in this case you are also indexing the variable name by adding the :1 after it for the no.1 engine. no.2 engine would be :2 and so on.

Thank you so much, this will help me big time.
 
Are you making gauges for FSX or FS2004? Sounds like FS2004 as custom L:vars, if not written correctly in FSX's parts sheet system will malfunction the entire animation list.

If you are making gauge code for 3D gauge needles in FS9, sometimes this will occur also.

With custom animations, you have an 'L' for the variable, instead of A, etc. For a custom door closing needle for a C-140 for instance, you might create a needle that has (L:C140_Door_Indicator,bool) as your command string. L: states a custom animation.

If you are reading the animation names in the FS2004 SDK, use the ones on the right colum. The left colum, as Naruto states is the C++ side. C++ are different code strings then stock XML variable names.


Bill
 
Are you making gauges for FSX or FS2004? Sounds like FS2004 as custom L:vars, if not written correctly in FSX's parts sheet system will malfunction the entire animation list.

If you are making gauge code for 3D gauge needles in FS9, sometimes this will occur also.

With custom animations, you have an 'L' for the variable, instead of A, etc. For a custom door closing needle for a C-140 for instance, you might create a needle that has (L:C140_Door_Indicator,bool) as your command string. L: states a custom animation.

If you are reading the animation names in the FS2004 SDK, use the ones on the right colum. The left colum, as Naruto states is the C++ side. C++ are different code strings then stock XML variable names.


Bill

Thank you for the reply, I am building for FSX and now have a little more understanding of what I am doing and how xml in FSX work. this is all of the gauges that I now have working but I still have lots more to do yet.
 

Attachments

  • gauge001.jpg
    gauge001.jpg
    28.5 KB · Views: 472
Nice work!

Once you get the hang of it, it speeds up pretty good.

Ya, just finding info on the internet on how a parts of a gauge work and then putting that info into building a 3D gauge is the part that takes awile. I can build a gauge in as little as an hour but trying to animate it takes time and making sure that the animations are working in the sim, lots of work but very rewarding in the end when you see the finished panel and all fo the gauges working like they should. So awesome and fun:D:D
 
Back
Top