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

Update section overload

Messages
300
Country
unitedkingdom
Hi guys,

Sorry if this is a gauge xml newbie question but here goes....

I have set out to control mouse clicks with custom Lvars so that i can assign external switches.
I now see that there is a problem if i add too much into an update section (I ran out of VAS !). Is there a better way of doing it that doesn't use up so much VAS?

I created a new update section in a vc gauge to contain my new Lvar operated code.
There are already 2 update sections in the gauge. Would it help to put my code inside one of the existing update sections, or does that not make any difference?

Thanks
Keith

Sent from my SM-T813 using Tapatalk
 
Some extra info which I have uncovered. I have been programming an external switch box which
is a Garmin GCU477. It has 64 different switches as it has an aplha and numeric keypad along with
various function buttons. I have managed to program all but two (The Enter button and the FMS knob)
I started programming the FMS knob and before I added the code for the Enter button FSUIPC was reporting approx 2.5mb
of available VAS. After including the code FSX will crash (I think due to lack of VAS) as soon as I choose
this aircraft from the menu. Why is this code using so much VAS when the start of the code shows an "if the switch is
operated" statement?. The sim crashes to desktop even before the switch is operated.

Would it help if I put this code (which is for the Enter button) in a new gauge?

Unfortunately I cannot share the code as part of it is the code from a mouse click macro
from the Carenado Gauge of the aircraft I am dealing with.

thanks
Keith
 
I think that I have worked this out but I still need some help. It appears my original mouse click routine was dependant on a
Visibility statement.

my code for operating the mouse routine looks like this
Code:
(L:GCU477_ENT,bool) 1 == if{ 1 (>L:blabla,bool) }

How do I make it dependant on this code
Code:
<Visibility>
     (L:Popup,bool)
</Visibility>

Thanks
Keith
 
Here is the code I use for a visibility-dependent mouse spot:


Code:
        <Area Left="20" Width="50" Height="96">
              <Visible> @Types 1 &gt; </Visible>
                  <Tooltip>Aircraft Select: %((L:AC_Type, number))%{case}%{:5}@Type6 %{:4}@Type5%{:3}@Type4%{:2}@Type3%{:1}@Type2%{:0}@Type1%{End}</Tooltip>
            <Cursor Type="Hand"/>
            <Click> @Types 1 &gt; if{ (L:AC_Type, number) @Types 1 - &lt; if{ (L:AC_Type, number) 1 + (&gt;L:AC_Type, number) } els{ 0 (&gt;L:AC_Type, number) } }</Click>
        </Area>
 
Many thanks for your reply, I sometimes think i'm talking to myself, although it helps
my thought process even if I get no replies. :)

I am progressing well now with want I am hoping to achieve.

regards
Keith
 
Back
Top