PDA

View Full Version : Fuel Shutoff Warning Light question



Lionheart
February 23rd, 2009, 19:15
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.



<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

Lionheart
February 24th, 2009, 11:56
Got it all working..

Whew..




Bill

Moparmike
February 24th, 2009, 16:29
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!