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

Fuel Selector Problem FS9

Messages
1,084
Country
us-northcarolina
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.

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{ (&gt;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
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.
 
After much prayer and meditation, I tried adding the top two lines of the P40 fuel the 2 Center tanks, into the BT-13 aircraft.cfg; changed the fuel quantities to the proper values, saved and fired up FS9. Lo and behold, it works! Hope this helps someone else with the same problem.
 
Back
Top