• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Fuel Shutoff Warning Light question

Lionheart

SOH-CM-2014
Hey guys,


I am making a very simple gauge that shows fuel shutoff is on.

But I cannot seem to get it to work. Just wondering if anyone might know what I am doing wrong.

This is a simple light, simple 2D gauge, in FS9 XML code.

Code:
  <Element>
    <Select>
      <Value>(A:FUEL TANK SELECTOR, enum) =0</Value>
       <Failures>
          <SYSTEM_ELECTRICAL_PANELS Action="0"/>
       <Case Value="0">
         <Image Name="FuelLightWarningOn.bmp" UseTransparency="Yes"/>
       </Case>
       </Failures>
       <Case Value="1">
         <Image Name="FuelLightWarningOn.bmp" Bright="Yes" UseTransparency="Yes"/>
       </Case>
    </Select>
  </Element>




Many thanks,



Bill
LHC
 
Hey Bill,

Sorry...been sidetracked by the race and didn't get to ya.

Were you by chance trying to watch the fuel shutoff valve instead of the tank selector?
If so I'm assuming you found the "general engineX fuel valve" tokens. which are 1=open 0=closed

Otherwise, the tank selectors need a total case possiblities of 0-18...or an IF/ELSE statement if you're just watching one particular case.
In the code you've got listed, you've only got two case values covered (0 and 1).

Either way, glad ya got it going!
 
Back
Top