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

FSX:SE fix please

Messages
56
Country
belgium
Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons)<=if{ (K:SET_FUEL_TRANSFER_AFT) ( RightMain -> LeftMain ) } els{ (>K:SET_FUEL_TRANSFER_OFF) }


the error is "Variables must be enclosed in parenthesis" .

what am i missing there , becose i cant seem to find it .
 
Don't think there should be parentheses around the RightMan -> LeftMain and not really certain what that is aside from maybe a comment??
 
Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons)<=if{ (K:SET_FUEL_TRANSFER_AFT) ( RightMain -> LeftMain ) } els{ (>K:SET_FUEL_TRANSFER_OFF) }

the error is "Variables must be enclosed in parenthesis" .

what am i missing there , becose i cant seem to find it .
Not sure what the code should do, but there's some syntax errors

Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) <= if{ (>K:SET_FUEL_TRANSFER_AFT) ??????( RightMain -> LeftMain )????? } els{ (>K:SET_FUEL_TRANSFER_OFF) }
- missing spaces around < 
- no > in front of K:SET_FUEL_TRANSFER_AFT
- what is ( RightMain -> LeftMain) supposed to do ? Comment ?

Rob
 
if i use SET_FUEL_TRANSFER_AFT it must pump fuel from right to left , so i tought if left is less then right that the SET_FUEL_TRANSFER_AFT would kick in until the left is equal .
 
I can't understand exactly what is what you want, if you speak french, please use french. You can also use spanish if you want. Regards.
What aircraft is this gauge for? How many fuel tanks has the aircraft?
 
First: Please take more time to turn your posts into something legible. Grammar, spelling, the whole deal. We're not in the Call Of Duty chat.

Second: "SET_FUEL_TRANSFER_AFT" does not work in FSX. Control the fuel selector instead.

Third: Apart from the missing spaces for the condition, the instruction in the "if" condition is not in a valid format.

And besides, since you want to fix fuel imbalances, you need to account for all cases.

Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) <
if{ (A:FUEL TANK SELECTOR:1,enum) 3 != if{ (>K:FUEL_SELECTOR_RIGHT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) >
if{ (A:FUEL TANK SELECTOR:1,enum) 2 != if{ (>K:FUEL_SELECTOR_LEFT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) ==
if{ (A:FUEL TANK SELECTOR:1,enum) 1 != if{ (>K:FUEL_SELECTOR_ALL) } }
 
Last edited:
If you are checking your code using Infix2Postfix.exe then it oftentimes throws a wobbly if you use &lt; and/or &gt;. Use < and > when using the tool and then replace them when adding the code to a gauge
 
If you are checking your code using Infix2Postfix.exe then it oftentimes throws a wobbly if you use &lt; and/or &gt;. Use < and > when using the tool and then replace them when adding the code to a gauge

yes , i used the Infix2Postfix.exe , thnx for the info .
 
First: Please take more time to turn your posts into something legible. Grammar, spelling, the whole deal. We're not in the Call Of Duty chat.

Second: "SET_FUEL_TRANSFER_AFT" does not work in FSX. Control the fuel selector instead.

Third: Apart from the missing spaces for the condition, the instruction in the "if" condition is not in a valid format.

And besides, since you want to fix fuel imbalances, you need to account for all cases.

Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) &lt;
if{ (A:FUEL TANK SELECTOR:1,enum) 3 != if{ (>K:FUEL_SELECTOR_RIGHT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) &gt;
if{ (A:FUEL TANK SELECTOR:1,enum) 2 != if{ (>K:FUEL_SELECTOR_LEFT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) ==
if{ (A:FUEL TANK SELECTOR:1,enum) 1 != if{ (>K:FUEL_SELECTOR_ALL) } }

Thank you for the reply . Yes, Sorry for my Grammar and Spelling .
Thank you for this code , it wil be usefull when needed.
I do want to tell you that the fueltransfer does work but only for centertanks one and two and or three , a great example is the DeHavilland_Beaver_DHC2, default FSX aircraft. something has changed
"FUEL SELECTED TRANSFER MODE,enum" are " -1: off" "0: auto" "1: forward" "2: aft" "3: manual" "Settable No"
Normaly i would be able to do something when fueltransfer commands are used .

in the Event IDs list of the sdk there are no such commands but they are in ingame assignable . as they wotk with the DHC2 .
2v3572c.jpg


So when Fueltransfer aft is active it would choose left and right tanks instead of tanks center 1 and 2 .

The Selector is a fuelfeeder to the enigne , the fuel transfer does not feed the engine but transfers fuel and that is why i want to use the transfer codes.
 
I can't understand exactly what is what you want, if you speak french, please use french. You can also use spanish if you want. Regards.
What aircraft is this gauge for? How many fuel tanks has the aircraft?
All normal simple Aircraft in FSX SE with left and right FuelTanks.
Minimum 2 fueltanks.
 
Not sure what the code should do, but there's some syntax errors

Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) &lt;= if{ (&gt;K:SET_FUEL_TRANSFER_AFT) ??????( RightMain -&gt; LeftMain )????? } els{ (&gt;K:SET_FUEL_TRANSFER_OFF) }
- missing spaces around &lt;
- no &gt; in front of K:SET_FUEL_TRANSFER_AFT
- what is ( RightMain -&gt; LeftMain) supposed to do ? Comment ?

Rob
Heh , Funny it would Freeze fsx .
Trying to pump fuel from right to left when left tanks have less fuel then the right tanks when Fueltransfer AFT is active.

right now im on this
Code:
 ((>K:SET_FUEL_TRANSFER_AFT,bool) == 1 (>K:SET_FUEL_TRANSFER_AFT)RightMain -> LeftMain)
""RightMain -> LeftMain"" This space is where i struggle , Well i struggle all over the place hehe. Telling that FuelTransferAFT must use rightmain and left main instead of default centertanks 1 and 2 .
 
You can't tell it what tanks to use. Those commands are a holdover from when FS had a Concorde as a default aircraft. They only work with specific setups and tanks.
 
"FUEL SELECTED TRANSFER MODE,enum" are " -1: off" "0: auto" "1: forward" "2: aft" "3: manual" "Settable No"
The Beaver has three center tanks which normally feed in the order Center, Center2 and lastly Center3. These correspond to fuel_selector settings of 6,7 and 8.
You are saying that there are two tanks Forward and Aft, which would not work with three tanks.
Fuel tank selection numbers are 0=OFF, 1=ALL and they go up to 18 in FSX and 20 in P3D.
(>K:SET_FUEL_TRANSFER_AFT,bool)
As has been stated earlier, there is no such command/event in FSX. Where SET is used in events it is the last word in the event command not the first and you do not need to use "bool" in events. For example (1 >K:FUEL_SELECTOR_SET) would position the fuel selector to "ALL" which is position 1. If you want to select LEFT you would use (2 >K:FUEL_SELECTOR_SET) or (>K:FUEL_SELECTOR_LEFT)
You point out the Controls setting that appears to cover forward and aft. As WarpD said these would only work fully if there were two tank positions as in Concord where fuel selectors were used to cope with the change in trim when supersonic. Not a problem for the Beaver. Those commands might select Center and Center3. I cannot find any reference to what they do in the SDK.

So I hope by now you know that you can only use FuelTransferAFT if you want nothing to happen.
Roy
 
SET_FUEL_TRANSFER_AFT, SET_FUEL_TRANSFER_FORWARD undocumented events are available only for Center tanks, and are not user settable.

For Left/Right main you must use Crossfeed events.

Tom
 
Back
Top