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

P3D v2 Engine Starter Increment/Decrement

Messages
10,163
Country
us-arizona
Hey guys,

How does FS know how to animate this starter? Where is the code hiding that causes this action? Just (terribly) curious. Right now, to me, it looks like magic. Must be something simple.

and.......... Start will stay on temporarily and then flips back to 'on' position, a cool animation feature. How does FS know to do this? Where is the programming hiding? Is this something directly wired into the FS sim engine?

This is the regular key switch like on the Cessna 172.


Code:
  <PartInfo>
        <Name>switch_ignition_magnetos</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code>(A:OLD ENG STARTER:1, enum) 0 max 4 min 25 *</Code>
                <Lag>200</Lag>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <HelpID>HELPID_GAUGE_MAGNETO_SWITCH</HelpID>
            <TooltipID>TOOLTIPTEXT_MAGNETO_SWITCH</TooltipID>
            <MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
            <CallbackJumpDragging>
                <XMovement>
                    <Delta>10</Delta>
                    <EventIdInc>MAGNETO_INCR</EventIdInc>
                    <EventIdDec>MAGNETO_DECR</EventIdDec>
                </XMovement>
            </CallbackJumpDragging>
        </MouseRect>
    </PartInfo>


EDIT: I take it its something hard wired into FS. Thinking on this, its like knob animation inputs for radios, etc. It must be built into the main sim engine code.
 
Last edited:
It's "magic" Bill. Pure Pixie Dust. Seriously, if you look at the (A:OLD ENG STARTER:1, enum) variable you'll note that it is a 5 position enum. The sequence is:
  • 0 = off
  • 1 = left magneto
  • 2 = right magneto
  • 3 = both magnetos
  • 4 = starter engage
The (K:events) simply increase or decrease the "magneto" (A:OLD ENG STARTER:1, enum), with the special case of 4 triggering the starter. Internally, FS will reset the (A:OLD ENG STARTER:1, enum) back to 4 when combustion occurs.

Caution: the presence of the (A:OLD ENG STARTER:1, enum) means that this should only be used for FS9, as this token is not honored by FSX or P3D.
 
Back
Top