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

XML Difference

Messages
1,084
Country
us-northcarolina
Is there any difference writing xml code for a guage for FS9 or FSX? I did a search but did not find any threads about this. I have been designing gauges (with a lot of help here, thank you) for FS9 but I want to move to FSX because my Navy aircraft can't use any weapons. Dropping a torpedo just for an effect is not "cool" any more when there are weapons platforms out there to add to your aircraft in X.
 
I think i found my answer in another thread

HTML:
http://www.fsdeveloper.com/forum/showthread.php?t=39817

This thread talks about two different FS9 AND two different FSX XML script styles.
 
In gauge coding, FSX accepts both the old FS9 schema and its own version's schema, which is a lot verbosed.
As to what may be of your concern, FS9 style gauges can be used in FSX panels as is -without any modification- cause they are totally compatible.

Tom
 
That is great

Thank you very much for your reply. I am going to start using FSX now. Thanks again.
 
(1). FS9 style instruments work in both FS9 and FSX.
(2). FSX style instruments work in FSX , but DO NOT work in FS9.

A further consideration is that Microsoft have abandoned FSX , therefore there will be no further advancements made to the FSX platform.

The FSX style coding is actually ESP that microsoft developed a few years ago.

Microsoft sold the ESP to Lockheed Martin , Lockheed Martin used the ESP as the basis for Prepar3D their Flight Simulator package.
With Prepar3D Lockheed martin have progressively debugged the ESP and added new features to it , all current indications are that they are and will continue to progressively improve their platform to take better advantage of modern computer hardware thereby improving the flight simulator performance and capabilities.
As they are aiming their platform at both commercial and military users , they are configuring it for Air , Ground and Maritime simulations and applications , as these users are scattered geographically strong online (Multi Player) capabilities will be a major simulation aspect , also display monitor capabilities will be enhanced considerably to reflect a variety of display modes including panoramic and wall displays.

It may well eventuate that Prepar3D becomes our future Flight Simulator platform , and replace FSX in common useage.

While FSX (ESP) style coding is currently compatible with Prepar3D ,
some FS9 instruments work and others do not.

The above might be of interest in your deliberations.

Cheers
Karol
 
Grateful Again

Thank you for taking the time to reply. I am currently working on an updated panel for the IRIS S3 Viking from the actual aircraft manuals. I have both the Aircraft systems and the Weapons Systems manuals. I am imho a good graphics artist for the bmps but still learning the XML programming for the gauges. I WILL be back for help with that I sure as I get into uncharted territory. Specifically, I will want to connect actions to buttons not just turn on and off "pretty colored" lights LOL. Again thanks. I am encouraged to know. I am anxiously awaiting IRIS to pickup designing compatibility with the VRS TacPak as they hinted in their forum is happening. I own and like the VRS Superbug but don't want to be a Hornet Pilot.
 
BTW, while the FS9 schema may be perfectly compatible in FSX, an XML gauge designed for FS9 may not work in FSX, due to a few differences in the way that FSX interprets certain XML variables vs FS9 (different units for the same output, etc.).
 
...an XML gauge designed for FS9 may not work in FSX, due to a few differences in the way that FSX interprets certain XML variables vs FS9 (different units for the same output, etc.).

Certainly this should not happen at all. Do you have an example of that behaviour ?

Tom
 
FS98 doesn't work in FSX

Some of the gauges that are in the freeware aircraft files that I used were from FS98 though being used in FS9, and don't work so I am reworking the panel adding specific FSX gauges modifying the panel in FSDS Panel
 
Sure. One example is fuel weight per gallon (fuel density). FSX uses pounds as units, while FS9 uses pounds per gallon. I have to use the following code to get it to work in both sims:

Code:
<!--  Determine fuel density for FS2004 (pounds per gallon) or FSX (pounds) -->
	<Macro Name="Fuel_Density"> (A:Fuel weight per gallon, pounds per gallon) 6 == (A:Fuel weight per gallon, pounds per gallon)  10 * near 10 / 6.7 == || if{ (A:Fuel weight per gallon, pounds per gallon) } els{ (A:Fuel weight per gallon, pounds)  } </Macro>

Check out the results of using pounds per gallon and pounds as units in each sim - they give different results...

PS. I haven't tested this in each version of FSX.

Hope this helps,
 
Last edited:
Unfortunately I can't do the checks you are proposing because I don't have FS9 anymore, but I indeed believe on what you've found.
Sounds to me more like a glitch than a big malfunction, but true is this being bad if you need to use the same gauge in both version without the correction.
It also surprises me because it's supposed that the scriptying system was ported without changes from FS9 to FSX...

Tom
 
Not FS9 but FS98

The gauges that don't work are actually FS98 being used in FS9 but the panel designers. I have deleted them are am looking for new ones in FSX aircraft cabs. thank you.
 
Back
Top