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

Setting Fuel Flow Order?

Yes, the user needs to have XMLTools installed, which shouldn't be a problem as a developer may deliver the module together with his addon's software.

Tom
 
Payware developers may include the module(*) with their addons, providing they asked for that and permission was granted.

Tom

(*) In all cases, only XMLTools.dll module may be delivered, not the complete .zip package as it can be downloaded from this site.
 
Bill,

Sorry, didn't get back to you right away. Was working ramp security at the EAA B-17 tour stop @ KGRB from Friday throughout the weekend. Btw got a ride in her from KGRB to KOSH on Sunday - Brought her "Home", it was AWESOME!

Anyway it looks like the code got messed up on the copy over. The NOT should be NOT EQUAL or EQUAL NOT

Snippet, not in code for color -

<!-- ////////////////// SAVED
(A:FUEL TANK LEFT TIP QUANTITY, Gallons) 0.5 &lt; (A:FUEL TANK LEFT MAIN QUANTITY, Gallons) 0.5 &lt; and
if{ (A:FUEL TANK SELECTOR:1, Enum) 0 ! if{ (&gt;K:FUEL_SELECTOR_OFF) } }

(A:FUEL TANK RIGHT TIP QUANTITY, Gallons) 0.5 &lt; (A:FUEL TANK RIGHT MAIN QUANTITY, Gallons) 0.5 &lt; and
if{ (A:FUEL TANK SELECTOR:2, Enum) 0 ! if{ (&gt;K:FUEL_SELECTOR_2_OFF) } }
/////////////////////// SAVED -->

The red ! should be either != or == !
 
And back...

It stopped working. I cannot figure out what might have happened. Hoping someone might spot the error.

I double checked, the gauge is in the panel config still, I have 2 fuel selectors selected in the aircraft config. Everything looks proper.

Here is what I have in the selector manager (hidden gauge).

Code:
<Update>

<!-- WING TIP TANKS ON -->

(L:Fuel Tanks Sentinel,bool) 0 ==
   if{ 1 (&gt;L:Fuel Tanks Sentinel,bool) }

(L:Fuel Tanks Sentinel,bool) 1 ==
(A:FUEL TANK LEFT TIP QUANTITY, Gallons) 0.51 &gt; and
(A:FUEL TANK SELECTOR:1, Enum) 12 ! and
if{ 12 (&gt;K:FUEL_SELECTOR_1_SET) }

(A:FUEL TANK RIGHT TIP QUANTITY, Gallons) 0.51 &gt;
(A:FUEL TANK SELECTOR:2, Enum) 11 ! and
if{ 11 (&gt;K:FUEL_SELECTOR_2_SET) }

<!-- WING TANKS ON -->

(L:Fuel Tanks Sentinel,bool) 1 ==
(A:FUEL TANK LEFT TIP QUANTITY, Gallons) 0.5 &lt; and
(A:FUEL TANK SELECTOR:1, Enum) 12 == and
if{ 2 (&gt;K:FUEL_SELECTOR_1_SET) }

(L:Fuel Tanks Sentinel,bool) 1 ==
(A:FUEL TANK RIGHT TIP QUANTITY, Gallons) 0.5 &lt; (A:FUEL TANK SELECTOR:2, Enum) 11 == and
if{ 3 (&gt;K:FUEL_SELECTOR_2_SET) }

<!-- OUT OF FUEL -->

(L:Fuel Tanks Sentinel,bool) 1 ==
(A:FUEL TANK LEFT TIP QUANTITY, Gallons) 0.5 &lt; and
(A:FUEL TANK LEFT MAIN QUANTITY, Gallons) 0.5 &lt; and
if{ (&gt;K:FUEL_SELECTOR_OFF) }

(L:Fuel Tanks Sentinel,bool) 1 ==
(A:FUEL TANK RIGHT TIP QUANTITY, Gallons) 0.5 &lt; and
(A:FUEL TANK RIGHT MAIN QUANTITY, Gallons) 0.5 &lt; and
if{ (&gt;K:FUEL_SELECTOR_2_OFF) }

</Update>

I added a 'off to on' switch at the very top and added that to each cluster of code scripts or code blocks in the hopes that might 'stimulate' the selector into working. Did nothing... Absolutely nothing.

As you can see, it should start out as thus;
* Run on Wing Tip Tanks, (select 11 and 12)
* When out of fuel at Tip Tanks, run on Wing Tanks, (select 2 and 3)
* When out of fuel in Tip and Wing Tanks, select 'off' (both selectors to off command)

Again, this is a hidden gauge, fuel is supposed to run from wings to engine, and the tip tanks drain first, so tips, wing tanks. There is a center fuel tank which you 'transfer' fuel from there into the wings, but it isnt in the 'fuel to engine' circuit, they are 'isolated' from the direct fuel line to the engines.

Presently, 'all' are draining at once, no order. Only a mess. Total disorder. Fuel flowing from everywhere. Mayhem..

Bill
 
Hi Bill
havnt read all the post but Im wondering if you come up against the ctrl e startup issue with the fuel system, when ctrl e is used the fuel system is switch to all regardless of any script or fuel setting in the saved flight ect...drove me nuts and I couldn't find a way around it(doesn't mean there isn't one :) )
 
Bill,

You always put too much code when there is no need to do so...(constructive critic:cool:)

Simply use this (extracted from one of my previous posts)

Code:
<Update>
   <!-- Fuel Selectors to LEFT and RIGHT -->
   <!-- Burns first from Tip Tanks, then Wing tanks -->
   <!-- Engines starve when out of fuel from Wing tanks -->

   (A:FUEL TANK SELECTOR:1, Enum) 2 != if{ 2 (>K:FUEL_SELECTOR_SET) }
   (A:FUEL TANK SELECTOR:2, Enum) 3 != if{ 3 (>K:FUEL_SELECTOR_2_SET) }

<Update>

And that's it. No need to shut off / change fuel selectors from tip to main, etc. -notice the comments on how it works

You must also use this type of fuel config in aircraft.cfg:

Code:
[fuel]
Center1   =  proper coordinates
LeftMain  =  proper coordinates
RightMain =  proper coordinates
Lefttip     =  proper coordinates
Righttip   =   proper coordinates
number_of_tank_selectors = 2
etc

And write proper values for unused fuel in each of the tanks so you don't have to check for
(A:FUEL TANK LEFT TIP QUANTITY, Gallons) 0.5 &lt; etc

Tested and works perfect on the Lear45

Tom

Edit: Now you need to decide how to manage fuel from center tank.

Edit2: There is no K:FUEL_SELECTOR_1_SET event; that was the source of your problem.
 
Last edited:
Hi Bill
havnt read all the post but Im wondering if you come up against the ctrl e startup issue with the fuel system, when ctrl e is used the fuel system is switch to all regardless of any script or fuel setting in the saved flight ect...drove me nuts and I couldn't find a way around it(doesn't mean there isn't one :) )

Thanks Wozza,

Thats good to know. I never knew that.
 
Bill,

You always put too much code when there is no need to do so...(constructive critic:cool:)

Simply use this (extracted from one of my previous posts)

Edit2: There is no K:FUEL_SELECTOR_1_SET event; that was the source of your problem.

Ahhh... Ah so! Back to edit. Many thanks.

Slowly learning... :S

The main 2 things I need Tom is 'fuel flow starting at tips, and then center tank 'not' in the circuit. Fuel cannot flow to the engines from the center tank. That was my main 2 things.
 
The main 2 things I need Tom is 'fuel flow starting at tips, and then center tank 'not' in the circuit. Fuel cannot flow to the engines from the center tank. That was my main 2 things.

And you have them all with the code I posted.

Tom
 
Bill, by default fuel is taken first from tip tanks (if they exist), then main tanks (wing).

This is mentioned somewhere in the FS9 SDK, but I don't remember where precisely.
 
In my plane, they are all draining at once. Its in a saved flight in P3D V2. Perhaps the sim is over-riding it.
 
@lionheart

Sorry to dig up this old thread folks, but it seemed wiser to have the information behind this post rather than start a new thread and risk everybody repeating themselves.

I'm working on a fuel-transfer system of the type described above ( for my Concorde ), but I have a much simpler plan which only involves invoking the old Concorde fuel fore/aft XML method to control pitch trim. I've read all the posts but some of the syntax is still a bit over my head at the moment regarding events. From what I can gather, I can only use tanks Center1 and Center2 to transfer fuel using this XML method. My plan is to place those tanks at the front and rear of the airplane respectively, containing fuel that does not need to be burned but is purely to be used to balance the CG of the airplane in flight. The rest of the tanks will be situated slightly aft of center, thus causing a gradual imbalance by the end of a Trans-Atlantic flight, which is countered by fuel transfer.

Does this sound plausible, given the information above? It seems so to me, but I wanted to check with those who know more before I dive too deep into this as it's new territory for me. My understanding is that I could select a tank, transfer fuel either fore or aft as required, while the rest of the tanks feed fuel to the engines without requirement for adjustment. In fact, would a selector be required at all, if the fuel transfer switch merely governed forward and aft fuel movement between Center1 and Center2?

Sorry for the wordy post, it's a tricky subject to master! :)
 
you can "force" fuel selector to certain position so it not burn your fuel in balancing tank.
the no much option for fuel system such as in SST, so I build my own fuel system using simconnect for Tu144D.
 
you can "force" fuel selector to certain position so it not burn your fuel in balancing tank.
the no much option for fuel system such as in SST, so I build my own fuel system using simconnect for Tu144D.

I'm not using SimConnect due to the requirement for DLL files and also the lack of support for it in future simulators, so my efforts will have to be in XML.
 
Back
Top