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

FS2004 Bell 429 Starter idea... pfew! (SOLVED)

Hmmm..I suspect you might need to add <MouseFlags>in the 3D mouse area:

Code:
  <mouserect>
     <cursor>Hand</cursor>
     <tooltip_text>Starter Switch</tooltip_text>
     <MouseFlags>LeftSingle+RightSingle</MouseFlags>
     <callback_code>
         (M:Event) 'LeftSingle' scmp 0 ==
         if{ (L:429_Starter_switch_control, number) ++ 1 min (&gt;L:429_Starter_switch_control, number) }
        (M:Event) 'RightSingle' scmp 0 ==
         if{ (L:429_Starter_switch_control, number) -- -1 max (&gt;L:429_Starter_switch_control, number) }
     </callback_code>
</mouserect>

It seems 'LeftSingle' is always recognized by default; rest of the flags (including RightSingle) must be expressely defined.

Tom
 
Hi Tom

Yes!!!! How could I miss that? I have attention deficit and I always pay the price for that... I will try that again right away!

Thank you!!!
:D :D :D
 
Last edited:
Hello Tom

As a side note, you are right about mouse flags. Nevertheless, for FS9 must be in this case:
<mouse_flags>LeftSingle+RightSingle</mouse_flags> ;)

Thank you very much :wizard: :wizard: :wizard:

All the best,
Sergio Kauffman.
:wave:
 
Hello!!!

We have a winner today!!! All works like a charm, now communication between 2D and VC is perfect. This is the final version of the entire code:

2D gauge:
HTML:
       <!-- Starter Switching -->
     <Element>
     <Position X="527" Y="29"/>
       <Select>
             <Value>(L:429_Starter_switch_control, number)</Value>
                 <Case Value="1">
                    <Image Name="429_switch_red_LFTsm.bmp"/>
                 </Case>
                 <Case Value="0">
                    <Image Name="429_switch_red_CTRsm.bmp"/>
                 </Case>
                 <Case Value="-1">
                    <Image Name="429_switch_red_RTsm.bmp"/>
                 </Case>
       </Select>
     </Element>

Mouse areas in the 2D gauge:
HTML:
     <!-- Starter Switches -->
         <Area Left="490" Top="30" Width="35" Height="35">
                <Cursor Type="Hand"/>
                <Click Repeat="Yes" MouseWheelFlip="No">
                    1 (&gt;L:429_Starter_switch_control, number)
                </Click>
         </Area>

         <Area Left="527" Top="30" Width="35" Height="35">
               <Cursor Type="Hand"/>
               <Click Repeat="Yes" MouseWheelFlip="No">
                   0 (&gt;L:429_Starter_switch_control, number)
                </Click>
         </Area>

         <Area Left="564" Top="30" Width="35" Height="35">
               <Cursor Type="Hand"/>
               <Click Repeat="Yes" MouseWheelFlip="No">
                    -1 (&gt;L:429_Starter_switch_control, number)
               </Click>
         </Area>


And lastly, the 3D switch part code:
HTML:
     <part>
          <name>bell429_starter_switch</name>
               <animation>
                  <parameter>
                      <code>
                        (A:Turb eng2 N1, percent) 55 &gt; (L:429_Starter_switch_control, number) 1 == and
                        (A:Turb eng3 N1, percent) 55 &gt; (L:429_Starter_switch_control, number) -1 == and
                        or
                            if{ 0 (>L:429_Starter_switch_control, number) }
                     
                        (L:429_Starter_switch_control, number) 1 ==
                            if{ (L:Eng3Running,bool) if{ (A:General Eng3 Master Alternator, bool) 1 == (A:Turb eng3 N1, percent) 60 &gt; and if{ (>K:TOGGLE_STARTER2) } }
                            els{ (A:Electrical Master Battery,bool) if{ (>K:TOGGLE_STARTER2) } } }
                     
                        (L:429_Starter_switch_control, number) -1 ==
                            if{ (L:Eng2Running,bool) if{ (A:General Eng2 Master Alternator, bool) 1 == (A:Turb eng2 N1, percent) 60 &gt; and if{ (>K:TOGGLE_STARTER3) } }
                            els{ (A:Electrical Master Battery,bool) if{ (>K:TOGGLE_STARTER3) } } }

                        (L:429_Starter_switch_control, number) s0 0 &lt; 50 * l0 0 == 25 * +
                      </code>
                      <lag>100</lag>
                  </parameter>
              </animation>
        <mouserect>
        <cursor>Hand</cursor>
        <tooltip_text>Starter Switch</tooltip_text>
        <mouse_flags>LeftSingle+RightSingle</mouse_flags>
        <callback_code>
            (M:Event) 'LeftSingle' scmp 0 ==
                if{ (L:429_Starter_switch_control, number) ++ 1 min (>L:429_Starter_switch_control, number) }
            (M:Event) 'RightSingle' scmp 0 ==
                if{ (L:429_Starter_switch_control, number) -- -1 max (>L:429_Starter_switch_control, number) }
        </callback_code>
        </mouserect>
      </part>

I learned a lot of things and I haven't enough words to express my gratitude. Thank you all for being side by side with me.

Affectionately,
Sergio Kauffman.
:D:D:D:D:D:D
 
Sergio,

I´m glad that you finally got it working!.

As a sidenote, if you want to stick to reality, you should remove the code that checks for eng3running as a conditional to enable eng2 startup.
According to that code, if eng3 is running but eng3 generator is off or eng3 n1 < 60 eng2 starter won't engage. AFAIK that logic does not coincide with real world startup of a 429 helo, unless I'm missing something. I don't see any harm if you remove that entire check and leave the second one.

Tom
 
Hi Tom!

Sure, I will test it as soon as I'm able. Thanks for the head up!

Cheers,
Sergio.
:)
 
As a sidenote, if you want to stick to reality, you should remove the code that checks for eng3running as a conditional to enable eng2 startup.
According to that code, if eng3 is running but eng3 generator is off or eng3 n1 < 60 eng2 starter won't engage. AFAIK that logic does not coincide with real world startup of a 429 helo, unless I'm missing something. I don't see any harm if you remove that entire check and leave the second one

Tom, you are right; it doesn't. However, I will not open the worms can (it involves to revise and rewrite a big part of I already have done! :duck: :duck: :duck:). The 429 is a toy for me; ;)
 
Back
Top