Jump to content
Sign in to follow this  
gpxe

Alabeo C421 - Magneto bar

Recommended Posts

Hello there !

Fed up with the magneto bar not functioning properly ? Like, you can't even switch off all the magnetos at once...

Proceed as follows :

1/ Please add the following line in the panel.cfg file for the C421, in the [VCockpit04] section

gaugexx=GAUGE_C421!Gauge_UPDATE_DIG_GP,            0,  0, 1,  1

where you will replace xx by the number immediately after the last gauge of the section (most probably xx=06)

If you are not sure of what you are doing, please keep a backup of your panel.cfg before making any change here.

2/ create a GAUGE_C421 folder in the panel folder for the C421

3/ create a GAUGE_UPDATE_DIG_GP.xml file in that new folder and edit it with Notepad

4/ insert following code in the newly created xml file :

<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document
        Type="AceXML"
        version="1,0"
        id="Gauge_UPDATE_DIG_GP">
    <Descr>AceXML Document</Descr>
    <Filename>Gauge_UPDATE_DIG.xml</Filename>
    <SimGauge.Gauge id="Gauge_UPDATE_DIG_GP" ArtDirectory=".">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>1,1</Size>
        <Image id="Gauge_UPDATE_DIG_GP" Name="Gauge_UPDATE_DIGNOP_GP">
            <Transparent>True</Transparent>
        </Image>

        <Update id="GANG_BAR_BOTTOM">
            <Script>
            (P:local time,seconds) (L:ASD_LEVER_C421_GANG_BAR2_TIMER,number) 0.5 - 0.1 + &lt; if{
            (A:Recip eng left magneto:1,bool) (A:Recip eng right magneto:1,bool) or if{
                (A:Recip eng left magneto:1,bool) if{ 1 (&gt;L:BUFFER_CLICK1_METALIC,number) }
                (A:Recip eng right magneto:1,bool) if{ 1 (&gt;L:BUFFER_CLICK1_METALIC,number) }
                (&gt;K:MAGNETO1_OFF) }
            (A:Recip eng left magneto:2,bool) (A:Recip eng right magneto:2,bool) or if{
                (A:Recip eng left magneto:2,bool) if{ 1 (&gt;L:BUFFER_CLICK1_METALIC,number) }
                (A:Recip eng right magneto:2,bool) if{ 1 (&gt;L:BUFFER_CLICK1_METALIC,number) }
                (&gt;K:MAGNETO2_OFF) }
            }
            </Script>
        </Update>
    
 </SimGauge.Gauge>
</SimBase.Document>

 5/ save

6/ reload your aircraft in the sim

7/ enjoy !

If that does not work for you or if I speak Chinese, let me know in a message and I'll send you the files.

Have fun and contribute to the community !

G.

 

 

 

Edited by gpxe
  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites

Hi,
I've noticed for a long time that the battery bar is working and the magneto bar does not.

So your mod is pretty cool to fix that.

BUT unfortunately it does not work for me, i don't know why. Under investigation...


Win 10 Pro | P3Dv4.5 | X-Plane 11 | MSFS 2020 | I5-9600K @ 4.8GHz | RTX 2070 8GB | 32GB RAM | SSD | T.16000M

Share this post


Link to post
Share on other sites

Excellent! Thank you very much, it works perfectly :smile:

On 8/25/2019 at 9:41 AM, Raller said:

BUT unfortunately it does not work for me, i don't know why. Under investigation...

Don't forget to save the XML file in the correct format (UTF-8) after editing it with the Notepad.

  • Upvote 1

Greetings
Tim

My files in the Avsim File Library | Flightsim.to

i5 12600K | 32Gb | RTX 4080

Share this post


Link to post
Share on other sites

I found the solution. Believe it or not, if i copy and paste the code to Notepad++, after the last letter in this row ".......0.5 - 0.1 + &lt; if{ " there is a hidden sign (mayby a line feed or carriage return).

After i deleted this hidden sign from the code, everything works fine.
Thanks for this mod.


Win 10 Pro | P3Dv4.5 | X-Plane 11 | MSFS 2020 | I5-9600K @ 4.8GHz | RTX 2070 8GB | 32GB RAM | SSD | T.16000M

Share this post


Link to post
Share on other sites

Works nicely.. Thanks! :smile:

Just a question... is

0.5 - 0.1 + &lt;

not the same as

0.4 - &lt;

??

Edited by Bert Pieke

Bert

Share this post


Link to post
Share on other sites
On 8/27/2019 at 12:30 AM, Bert Pieke said:

Works nicely.. Thanks! :smile:

Just a question... is

0.5 - 0.1 + &lt;

not the same as

0.4 - &lt;

??

Indeed it should be... thta's the result of many  tryouts !

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...