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

piston engine starter

Messages
56
Country
belgium
[FSXA] piston engine starter

it seems al my piston engine start switches are on for 2 seconds for all piston planes i have . on the re clicking the engine drops its rpm and i am unable to reach the rpm that i want to.

is there a way to edit the starter runtime lenght?
or the toggler stays on start untill i click it to stop.

this code is from the dc3 in fsx




Code:
<Element>
        <Position X="381" Y="22" />
        <Select>
            <Value>(A:General eng starter:1, bool) (A:General eng starter:2, bool) +</Value>
            <Case Value="0">
                <Image Name="top_popup_start_switch_off.bmp" />
            </Case>
        </Select>
    </Element>
    <Element>
        <Position X="381" Y="22" />
        <Select>
            <Value>(A:General eng starter:1, bool)</Value>
            <Case Value="1">
                <Image Name="top_popup_start_switch_left.bmp" />
            </Case>
        </Select>
    </Element>
    <Element>
        <Position X="381" Y="22" />
        <Select>
            <Value>(A:General eng starter:2, bool)</Value>
            <Case Value="1">
                <Image Name="top_popup_start_switch_right.bmp" />
            </Case>
        </Select>
    </Element>
 
Last edited:
The part of the gauge you want to look at in the DC-3 gauge is the Mouse section.

In your starter gauge instead of actually activating the starter (FS Magneto Increase variable), change the value of a custom variable instead. Then have the starter activate constantly and it will run forever. Change the variable back when you get engine combustion to stop the commands.

if custom L: variable is set, then (&gt;K:MAGNETO1_INCR)
if engine combustion, then reset L: variable.

Hope this helps,
 
Last edited:
thnx , MAGNETO_INCR or MAGNETO1_INCR or MAGNETO2_INCR , i can set that keyswitch in my fsuipc with repeat on and with that i can let the starter run as long i push my switch . but how to write the code , omg i have been reading and searching for hours , and stil dont now how to write it in the mouse section.
is L: Lvars code and A: fsx default code?
wel to write "if custom L: variable is set, then (&gt;K:MAGNETO1_INCR)
if engine combustion, then reset L: variable" in code :eek:

Code:
<Mouse>
<!-- Starter L/R -->
        <Area Left="371" Top="19" Width="66" Height="22">
            <Area Right="32">
                <Tooltip ID="TOOLTIPTEXT_ENG1_STARTER_SWITCH" />
                <Cursor Type="Hand" />
                <Click Event="TOGGLE_STARTER1" />
            </Area>
            <Area Left="33">
                <Tooltip ID="TOOLTIPTEXT_ENG2_STARTER_SWITCH" />
                <Cursor Type="Hand" />
                <Click Event="TOGGLE_STARTER2" />
            </Area>
</Mouse>
 
Well, it's something like this:

Code:
<Element> <!-- this codes the moving magneto switch - you can do the same 
thing with a Rotate command.  Note the use of a custom L: variable - probably 
not necessary in your case, but I include it so you will understand the code 
below. -->
      <Position X="6" Y="8"/>
    <Select>
       <Value>(L:mag1, enum) </Value>
       <Case Value="0">
          <Image Name="MAG_SWITCH2_OFF.bmp"/>
       </Case>
       <Case Value="1">
          <Image Name="MAG_SWITCH2_R.bmp"/>
       </Case>
       <Case Value="2">
          <Image Name="MAG_SWITCH2_L.bmp"/>
       </Case>
       <Case Value="3">
          <Image Name="MAG_SWITCH2_B.bmp"/>
       </Case>
    </Select>
  </Element>

<!-- the section below gives the (&gt;K:MAGNETO1_INCR) command 
continuously, as long as the (L:Start Control1, bool) variable is set to 1.  
Once the engine starts, set that variable to 0 -->

 <Element> 
      <Select>
       <Value>
		(L:Start Control1, bool) 1 == (A:General Eng1 Combustion, bool) 0 == &amp;&amp; if{ (&gt;K:MAGNETO1_INCR) }
		(L:Start Control1, bool) 1 == (A:General Eng1 Combustion, bool) 0 != &amp;&amp; if{ 0 (&gt;L:Start Control1, bool) }
      </Value>
      </Select>
   </Element>

<Mouse>

<!-- this section is for moving the switch from right to left, i.e. from 
BOTH to OFF.  Nothing special here. -->

    <Area Left="28" Top="22" Width="40" Height="40">
       <Tooltip>ENG 1 MAGNETO SWITCH</Tooltip>
      <Area Right="21">
         <Cursor Type="DownArrow"/>
         <Click Repeat="Yes"> 03 (&gt;L:km_xml_sound_id, number) 
            (L:mag1, enum) 0 &gt; if{ (L:mag1, enum) 1 - (&gt;L:mag1, enum) (&gt;K:MAGNETO1_DECR) }
          </Click>
      </Area>

<!-- this section is used to increase the magneto from OFF to BOTH.  
When it reaches BOTH and is clicked beyond that, that is START.  -->

      <Area Left="20">
         <Cursor Type="UpArrow"/>
         <Click Repeat="Yes"> 03 (&gt;L:km_xml_sound_id, number)
            (L:mag1, enum) 3 &lt; (L:Start1, enum) 1 != &amp;&amp; if{ (&gt;K:MAGNETO1_INCR) }
            (L:mag1, enum) 3 &lt; if{ (L:mag1, enum) 1 + (&gt;L:mag1, enum) }
            (L:mag1, enum) 3 == (A:General Eng1 Fuel Pump On, bool) 1 == (L:Start1, enum) 1 == &amp;&amp; &amp;&amp; if{ 1 (&gt;L:Start Control1, bool) }

<!-- the section above says: 1.  If the L: mag variable is less than 3, 
then increase the mag variable.  If it is equal to 3, then if the boost 
pump is on and the start switch is activated (separate controls on 
this plane), then set the special variable L:StartControl1 to 1.  This 
triggers a section of the code above. -->

         </Click>
      </Area>
    </Area>
</Mouse>

Hope this helps,
 
Last edited:
Back
Top