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

FSXA Oil consumption

Lagaffe

Resource contributor
Messages
994
Country
france
Hi,
Here is my problem: I want to simulate an excessive oil consumption in order to damage the engine.
I found in the SDK the variable GENERAL ENG OIL PRESSURE: Index which is "settable".

But the type of this variable is A: ... so if indeed this is realizable how can we achieve this?
I try this code but without success:

Code:
<Gauge Name="Test_OilPress" Version="1.0">
<Element>
  <Select>
    <Value>
          (L:ENG1_OIL_LEVEL, gallons) 0.5 <= if{ 0.05 (&gt;A:GENERAL ENG OIL PRESSURE:1, psf) }
    </Value>
  </Select>
</Element>
</Gauge>
 
Hi
there are a few oil related failures in fsx but they are only settable by simconnect and the failure screen in fsx

you can come up with something via L:vars this is something I did to simulate oil pressure drop if inverted for a time

gauge code
Code:
<PartInfo>
    <Name>needle_oil_press</Name>
    <AnimLength>200</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:ELECTRICAL MASTER BATTERY,bool) 1 == (L:upside, number) 0 == and if{ (A:GENERAL ENG OIL PRESSURE:1, psi) } els{ 0 }</Code>
    <Lag>10</Lag>
      </Parameter>
    </Animation>
  </PartInfo>

hidden controller gauge
Code:
<Gauge Name="oils arnt oils" Version="1.0">
<Update Frequency="7"/>
  <Element>
    <Select>
      <Value>(A:PLANE BANK DEGREES,degree) abs 100 &gt;
              (A:REALISM,percent) 95 &gt; &amp;&amp;
      if{ (L:upside,number) 1 &lt; if{ 1 (&gt;L:upside,number) } }
      els{ (L:upside,number) 0 &gt; if{ 0 (&gt;L:upside,number) } }
      </Value>
    </Select>
</Element>

  <Element>
    <Select>
      <Value>(L:upside,number) 1 ==
              (A:REALISM,percent) 95 &gt; &amp;&amp;
              if{ (G:Var6) 0 == if{ 1 (&gt;G:Var6) (P:Local Time, seconds) 20 + (&gt;G:Var7) } }
             els{ (G:Var6) 0 &gt; if{ 0 (&gt;G:Var6) } }
      </Value>
    </Select>
</Element>

  <Element>
    <Select>
      <Value>(G:Var6) 1 ==
              if{ (P:Local Time, seconds) (G:Var7) &gt; if{ 1 (&gt;L:oil_dry,number) } }
      </Value>
    </Select>
</Element>
</Gauge>

the L: oil_dry,number was used to trigger a engine failure....the above is more complicated than it needs to be or a simple oil pressure drop, but it was part of a larger gauge which linked to different types of failures and systems but should give you an idea :)
 
Back
Top