• 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 Elements and Triggers

Messages
74
Country
us-wisconsin
Okay, I don't know if this will work, but lemme give it a try. ;)

Code:
   <Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(L:center_fuel,bool) 1 == (A:FUEL TANK CENTER QUANTITY,pounds) 2200 > and if { 1 } els { 0 }</Value>
         <Case Value="1">
            <Image Name="ON.BMP" ImageSizes="46,45"/>
         </Case>
         <Case Value="0">
            <Image Name="LOW_PRESS.BMP" ImageSizes="46,45"/>
         </Case>
      </Select>
   </Element>
Here's where I'm going with this...

Obviously, if there's more than 2200 lbs in the tank, the pump is on, but below that, a low pressure warning comes up.

Now, with that low pressure warning, I also want to make it switch the tanks. If I were doing it by mouse-click, easy, just use the <Click> command, but that won't work up here, so is there an equivalent? If not, is there any way to make that happen?
 
Found my answer to that, but now this isn't working at all:

Code:
   <Element>
      <Select>
         <Value>
			(L:center_fuel_status,number) 1 == (A:FUEL TANK CENTER QUANTITY,pounds) 2200 &gt; &amp;&amp; 
			 if{ 6 (&gt;K:FUEL_SELECTOR_SET) 6 (&gt;K:FUEL_SELECTOR_2_SET) 2 (&gt;L:center_fuel_status,number) }
			 els{ 1 (&gt;K:FUEL_SELECTOR_SET) 1 (&gt;K:FUEL_SELECTOR_2_SET) 3 (&gt;L:center_fuel_status,number) }
		 </Value>
      </Select>
   </Element>

Any ideas on it?
 
Code:
   <Element>
      <Select>
         <Value>
			(L:center_fuel_status,number) 1 == 
			 if{ ((A:FUEL TANK CENTER QUANTITY, gallons) (A:FUEL WEIGHT PER GALLON, pounds) *) 2200 &gt;
				 if{ 6 (&gt;K:FUEL_SELECTOR_SET) 6 (&gt;K:FUEL_SELECTOR_2_SET) 2 (&gt;L:center_fuel_status,number) }
				 els{ 1 (&gt;K:FUEL_SELECTOR_SET) 1 (&gt;K:FUEL_SELECTOR_2_SET) 3 (&gt;L:center_fuel_status,number) } }
		 </Value>
      </Select>
   </Element>
Revamped it a bit, but still not working.
 
Got it working another way (tank percentage). ;)

But I'd still like to use the gallons converted to pounds if I could. Any idea why that line of code isn't translating and evaluating correctly?

I managed to create a 2nd gauge that just gave me a center readout in lbs and it worked just fine, but I suspect it's a problem with the conditional because the evaluation is always false.
 
Send me an e-mail and I'll be happy to send you the final gauge.

olseric <at> charter <dot> net
 
Back
Top