Results 1 to 2 of 2

Thread: Fuel center tanks usage first

  1. #1

    Post Fuel center tanks usage first

    Greetings!

    This below is a FSX *.xml logic gauge which was made for aircraft that have one center fuel tank ("Center1") and runs in the background ensuring Center1 fuel tank is used first before using other fuel tanks:

    (A:GENERAL ENG COMBUSTION:1,bool) (A:GENERAL ENG COMBUSTION:2,bool) + 2 <
    if{ (A:FUEL CROSS FEED,enum) 1 == if{ quit } els{ 1 (>K:FUEL_SELECTOR_SET) 1 (>K:FUEL_SELECTOR_2_SET) } } els{ (A:FUEL TANK CENTER QUANTITY,gallons) 7 >
    if{ 6 (>K:FUEL_SELECTOR_SET) 6 (>K:FUEL_SELECTOR_2_SET) } els{ 1 (>K:FUEL_SELECTOR_SET) 1 (>K:FUEL_SELECTOR_2_SET) } }

    I didn't make it, I found it on the net and I want to customize it for my own personal use in aircraft that have 2 center tanks: Center1 and Center2. I want the gauge to ensure draining the fuel from both Center tanks before starting to use other fuel tanks.
    I don't know what strings to modify because currently I have no skills in fuel gauge programming; can you please modify it so that I can use it on my aircraft that have Center1 and Center2 fuel tanks?

    Many thanks

  2. #2

    Default

    Hello,
    I will not create it for you but here is some help! This is an example of a Crossfeed selector switch that controls if the engines only get fuel from the center tank, from the wing tanks or from all tanks! Its from my 747 "City of Everett" mod wich has 2 Tank selectors and 1 Center tank entry in the aircraft.cfg!
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Gauge Name="CENTER_SELECTOR" Version="1.0">
      <Element>
        <Select>
          <Value>(L:CENTER_VALVE,bool)</Value>
          <Case Value="0">
            <Image Name="CROSSFEED_.bmp" Luminous="Yes" ImageSizes="58,58" />
          </Case>
          <Case Value="1">
            <Image Name="CROSSFEED!.bmp" Luminous="Yes" ImageSizes="58,58" />
          </Case>
        </Select>
      </Element>
      <Mouse>
          <Tooltip>%((L:RM,number) 1 ==)%{if}Center Crossfeed valves: (Closed) Only right tanks in use (On)%{end}%((L:LRM,number) 1 ==)%{if}Center Crossfeed valves: (Closed) Only left and right tanks in use (On)%{end}%((L:ALL,number) 1 ==)%{if}Center Crossfeed valves: (Open) All tanks in use (On)%{end}%((L:CT,number) 1 ==)%{if}Center Crossfeed valves: (Open) Only center tank in use (On)%{end}%((L:LM,number) 1 ==)%{if}Center Crossfeed valves: (Closed) Only left tanks in use (On)%{end}</Tooltip>
        <Cursor Type="Hand" />
        <Click>
              (L:CENTER_VALVE, bool) ! (&gt;L:CENTER_VALVE, bool) 1 (>L:LIGHT_COUNTER_START_CT,number) 1 (>L:ClickSound_Rotary,number)
              (L:CENTER_VALVE,bool) 1 == (L:LEFT_MAIN_VALVE, bool) 0 == (L:RIGHT_MAIN_VALVE, bool) 0 == &amp;&amp; &amp;&amp; if{ 6 (&gt;K:FUEL_SELECTOR_SET, bool) 6 (&gt;K:FUEL_SELECTOR_2_SET, bool) 1 (>L:CT,number) 0 (>L:RM, number) 0 (>L:ALL, number) 0 (>L:LM, number) 0 (>L:LRM, number) }
              (L:CENTER_VALVE,bool) 1 == (L:LEFT_MAIN_VALVE, bool) 1 == (L:RIGHT_MAIN_VALVE, bool) 1 == &amp;&amp; &amp;&amp; if{ 1 (&gt;K:FUEL_SELECTOR_SET, bool) 1 (&gt;K:FUEL_SELECTOR_2_SET, bool) 1 (>L:ALL, number) 0 (>L:LM, number) 0 (>L:RM, number) 0 (>L:LRM, number) 0 (>L:CT,number) }
              (L:CENTER_VALVE,bool) 0 == (L:LEFT_MAIN_VALVE, bool) 1 == (L:RIGHT_MAIN_VALVE, bool) 1 == &amp;&amp; &amp;&amp; if{ 3 (&gt;K:FUEL_SELECTOR_SET, bool) 2 (&gt;K:FUEL_SELECTOR_2_SET, bool) 0 (>L:ALL, number) 0 (>L:LM, number) 0 (>L:RM, number) 1 (>L:LRM, number) 0 (>L:CT,number) }
              (L:CENTER_VALVE,bool) 0 == (L:LEFT_MAIN_VALVE, bool) 1 == (L:RIGHT_MAIN_VALVE, bool) 0 == &amp;&amp; &amp;&amp; if{ 2 (&gt;K:FUEL_SELECTOR_SET, bool) 2 (&gt;K:FUEL_SELECTOR_2_SET, bool) 0 (>L:ALL, number) 1 (>L:LM, number) 0 (>L:RM, number) 0 (>L:LRM, number) 0 (>L:CT,number) }
              (L:CENTER_VALVE,bool) 0 == (L:LEFT_MAIN_VALVE, bool) 0 == (L:RIGHT_MAIN_VALVE, bool) 1 == &amp;&amp; &amp;&amp; if{ 3 (&gt;K:FUEL_SELECTOR_SET, bool) 3 (&gt;K:FUEL_SELECTOR_2_SET, bool) 0 (>L:ALL, number) 0 (>L:LM, number) 1 (>L:RM, number) 0 (>L:LRM, number) 0 (>L:CT,number) }
        </Click>
      </Mouse>
    </Gauge>
    The L: variables in my switch script are selfmade Variables!

    Example: (L:My_First_Var,number) 1 &gt; if{ 0 (>L:My_First_Var,number) }

    When Variable "My_First_Var" has a value of 1 AND GREATER then (from if) will be set this Variable back to "0"!

    Another help are these links, which contains (mostly) all Key and variable commands for FSX:

    Keys: ttps://docs.microsoft.com/en-us/previous-versions/microsoft-esp/cc526980%28v%3Dmsdn.10%29
    Vars: ttps://docs.microsoft.com/en-us/previous-versions/microsoft-esp/cc526981(v=msdn.10)

    (Add the "h" to the "ttps", then copy and paste it, dont know if the links working here correctly)

    I can only recommend to learn xml and you will open a door for yourself with much more possibilities in FSX and other MS Flightsims!

    Good luck and much fun!

Similar Threads

  1. CPU usage And PF usage
    By hprass in forum PC Hardware, Video And Audio Help
    Replies: 3
    Last Post: 11-19-2006, 06:34 AM
  2. Fuel fuel fuel fuel...sigh...
    By GreenMachine in forum MSFS Screen Shot Forum
    Replies: 8
    Last Post: 04-24-2002, 04:36 PM
  3. How to use Concord fuel tanks?
    By Shri in forum FS2002
    Replies: 3
    Last Post: 03-08-2002, 02:59 AM
  4. B747 Fuel Tanks
    By Gradley in forum FS2002
    Replies: 1
    Last Post: 01-31-2002, 05:34 PM
  5. Default 737 fuel tanks
    By NonCon in forum FS2002
    Replies: 0
    Last Post: 01-18-2002, 08:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •