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

FSX Fuel Consumed Gauge

Messages
76
Country
unitedkingdom
Hi all,

Sorry to be a pain I promise I am getting better and have learnt so much but I am just a bit stuck on the String I need the gauge
to display Fuel Consumed in Pounds and I just don't under strings that well. Wonder if anyone could help.

Thanks a million
Matt

XML:
<?xml version="1.0"?>

-<Gauge Version="1.0" Name="Fuel Total">
<Image Name="BLANK_BLACK.bmp" ImageSizes="80,20" Luminous="1"/>
-<Element>
<Position Y="0" X="0"/>
-<Text Luminous="1" Y="14" X="90" VerticalAdjust="Center" Adjust="Center" Color="#E0E0E0" FontWeight="400" Fixed="Yes" Font="Arial" Length="4">
<String>%((A:FUEL TOTAL QUANTITY WEIGHT, lbs))%!04d!</String>
</Text>
</Element>
</Gauge>
 
Messages
76
Country
unitedkingdom
How would I put both engines in?

(A:GENERAL ENG1 ENG2 FUEL USED SINCE START,pounds)
 
Messages
1,564
Country
thailand
Add them together in the string, and take a close look at the proper syntax found in the link

-- #5 is a link to a response by Karol showing just what you want
 
Last edited:
Messages
76
Country
unitedkingdom
Cheers Bob sorry looks like the link is broken would you mind doing it again

the below code works however it is just showing half required amount

%((A:General Eng Fuel Used Since Start:1, pounds))%!04d!

Update thought I had it but still only reading one eng

%((A:General Eng Fuel Used Since Start:1, pounds) + (A:General Eng Fuel Used Since Start:2, pounds))%!04d!


grrr take one step forward a million steps back thought this would be a quick and easy one lol
 
Last edited:
Messages
440
Country
us-wisconsin
XML in gauge scripting uses RPN (Reverse Polish notation) - a great way to keep the brain from getting numb with "common core"... :eek:

%((A:General Eng Fuel Used Since Start:1, pounds) (A:General Eng Fuel Used Since Start:2, pounds) +)%!04d!
 
Last edited:
Messages
76
Country
unitedkingdom
Thank you Spokes LOL numb is an understatement it is working perfectly

Thanks to everyone that answered you guys rock


Finished working code below incase anyone else ever needs it

XML:
<?xml version="1.0"?>
-<Gauge Version="1.0" Name="Fuel Total">
<Image Name="BLANK_BLACK.bmp" ImageSizes="80,20" Luminous="1"/>
-<Element>
<Position Y="0" X="0"/>
-<Text Luminous="0" Y="14" X="90" VerticalAdjust="Center" Adjust="Center" Color="#1a1a1a" FontWeight="400" Fixed="Yes" Font="Arial" Length="4">
<String>%((A:General Eng Fuel Used Since Start:1, pounds) (A:General Eng Fuel Used Since Start:2, pounds) +)%!04d!</String>
</Text>
</Element>
</Gauge>
 
Messages
2,077
Country
us-ohio
Odd formatting issue in your post... complete with extra minus signs. Weird.
XML:
<?xml version="1.0"?>
<Gauge Version="1.0" Name="Fuel Total">
    <Image Name="BLANK_BLACK.bmp" ImageSizes="80,20" Luminous="1"/>
    <Element>
        <Position Y="0" X="0"/>
        <Text Luminous="0" Y="14" X="90" VerticalAdjust="Center" Adjust="Center" Color="#1a1a1a" FontWeight="400" Fixed="Yes" Font="Arial" Length="4">
            <String>%((A:General Eng Fuel Used Since Start:1, pounds) (A:General Eng Fuel Used Since Start:2, pounds) +)%!04d!</String>
        </Text>
    </Element>
</Gauge>
 
Top