- Messages
- 1,084
- Country

I have taken the P40 Fuel Selector and changed the bitmap so I can use it on a BT-13 panel. The rest is the same but for some reason I can only get the Center (top) which on my bmp is Reserve location in the BT13; RH tank same as P40 RH tank and OFF to work. I can mouse the switch to the LH tank but "fuel doesn't flow or its empty" because the engine quits like OFF. I have tried for hours and hours...messed it up...erased and put back on the panel. I use FS Panel Studio. I am also including the [fuel] section from both aircraft if that is the issue. Could really use some help please.
BT13 Fuel Code from Aircraft.cfg
P40 Fuel Aircraft.cfg
number_of_tank_selectors=1
electric_pump=0
[fuel]
Center1= 1.000, 0.000, -1.000, 170.000, 0.000
Center2= -4.000, 0.000, 0.000, 68.700, 0.000
LeftMain= 0.000, -4.000, -1.000, 24.600, 0.000
RightMain= 0.000, 4.000, -1.000, 24.600, 0.000
External1= 0.000, 0.000, -4.000, 105.600, 0.000[/CODE]
any help would be appreciated by this newbie in XML. I try and make a gauge every year or so when the panel is not correct.
Code:
<Gauge Name="Fuel Selector B" Version="1.0">
<Image Name="fuel_selector_b.bmp"/>
<Element>
<Position X="57" Y="55"/>
<Image Name="fuel_selector_handle.bmp" PointsTo="North">
<Axis X="14" Y="30"/>
</Image>
<Rotate>
<Value>
(A:FUEL TANK SELECTOR 1,enum)
s0
1 ==
if{ 2 }
els{ l0 }
</Value>
<Nonlinearity>
<Item Value="0" X="56.5" Y="113"/> <!-- OFF -->
<Item Value="2" X="113" Y="56.5"/> <!-- LEFT -->
<Item Value="3" X="56.5" Y="0"/> <!-- RIGHT -->
<Item Value="6" X="0" Y="56.5"/> <!-- CENTER -->
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Select>
<Value>
(A:FUEL TANK SELECTOR 1,enum) 1 ==
if{ (>K:FUEL_SELECTOR_CENTER) }
</Value>
</Select>
</Element>
<Mouse>
<Tooltip>Fuel Tank Selector (%((A:FUEL TANK SELECTOR 1,ENUM))%{case}%{:0}Cut Off%{:1}All%{:2}Reserve%{:3}Main Wing%{:4}Aux Left%{:5}Aux Right%{:6}Fuselage%{:7}2nd Center%{:8}3rd Center%{:9}Belly Tank%{:10}2nd External%{:11}Right Tip%{:12}Left Tip%{:13}Crossfeed%{:14}Crossfeed Left To Right%{:15}Crossfeed Right To Left%{:16}Both%{:17}All External%{ else}Other%{end})</Tooltip>
<Area Left="37" Right="75" Top="75" Bottom="113">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_OFF"/>
</Area>
<Area Left="75" Right="113" Top="37" Bottom="75">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_LEFT"/>
</Area>
<Area Left="37" Right="75" Top="0" Bottom="38">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_RIGHT"/>
</Area>
<Area Left="0" Right="38" Top="37" Bottom="75">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_CENTER"/>
</Area>
</Mouse>
</Gauge>
BT13 Fuel Code from Aircraft.cfg
Code:
[fuel]
//Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)
fuel_type = 1
number_of_tank_selectors = 1
electric_pump = 0
LeftMain = -6.2, -4.2, 2.7, 96, 0
RightMain = -6.2, 4.2, 2.7, 96, 0
Center1= 1.000, 0.000, -1.000, 170.000, 0.000
number_of_tank_selectors=1
electric_pump=0
[fuel]
Center1= 1.000, 0.000, -1.000, 170.000, 0.000
Center2= -4.000, 0.000, 0.000, 68.700, 0.000
LeftMain= 0.000, -4.000, -1.000, 24.600, 0.000
RightMain= 0.000, 4.000, -1.000, 24.600, 0.000
External1= 0.000, 0.000, -4.000, 105.600, 0.000[/CODE]
any help would be appreciated by this newbie in XML. I try and make a gauge every year or so when the panel is not correct.