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

FSX Gmax; Code for Visibility Selectables

Messages
10,163
Country
us-arizona
Hey all,


I run this code in FS2004 and it runs good, (in FS9 XML). I converted to FSX code for FSX Gmax, and found the primary fuselage does not show up, and clicking on the 'selector' the does allow the secondary optional fuselage to show, but the primary remains hidden.

Any advice or ideas on how to get this functioning? Works brilliant in FS2004.


<PartInfo>
<Name>lhc_fuseselector_two</Name>
<Animation>
<Parameter>
<Code>
(L:lhc_pushfuselage,bool) 10 *
</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Fuselage Selector System (%((L:LHC_FUSELAGE_DISPLAY,enum))%{case}%{:0}Rear Windows)%{:1}No Rear Windows)%{End}</TooltipText>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>(M:Event) 'LeftSingle' scmp 0 == if{ (L:LHC_FUSELAGE_DISPLAY,enum) 1 + 2 % (>L:LHC_FUSELAGE_DISPLAY,enum) 1 (>L:XMLSND37,enum) 1 (>L:lhc_pushfuselage,bool) } (M:Event)
'LeftRelease' scmp 0 == if{ (>L:lhc_pushfuselage,bool) }</CallbackCode>
</MouseRect>
</PartInfo>

<PartInfo>
<Name>lhc_fuselage_eins</Name>
<Visibility>
<Parameter>
<Code>(L:LHC_FUSELAGE_DISPLAY,enum) 1 ==</Code>
</Parameter>
<MinValue>-1</MinValue>
<MaxValue>0</MaxValue>
</Visibility>
</PartInfo>

<PartInfo>
<Name>lhc_fuselage_zwei</Name>
<Visibility>
<Parameter>
<Code>(L:LHC_FUSELAGE_DISPLAY,enum) 1 ==</Code>
</Parameter>
<MinValue>1</MinValue>
</Visibility>
</PartInfo>

You will see 3 code blocks here. One is the switch. Default fuselage shows up (should, does in FS9). The second and third code blocks are 'visibility' Nodes; fuselage selection one, fuselage selection two.



Many thanks,

Bill
LHC
 
Last edited:
FSX XML Schema doesn't support <MinValue> and <MaxValue>, as I reported at FFDS about, oh four years ago or so...

Code:
  <PartInfo>
    <Name>lhc_fuselage_eins</Name>
    <Visibility>
      <Parameter>
        <Code>
          (L:LHC_FUSELAGE_DISPLAY,enum) 0 ==
          if{ 1 } els{ 0 }
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>


  <PartInfo>
    <Name>lhc_fuselage_zwei</Name>
    <Visibility>
      <Parameter>
        <Code>
          (L:LHC_FUSELAGE_DISPLAY,enum) 1 ==
          if{ 1 } els{ 0 }
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>
 
It was a long day... with lots of stress.. I sometimes think in German and it bleeds out sometimes..

Dreisig fuselages! ack!
 
It was a long day... with lots of stress.. I sometimes think in German and it bleeds out sometimes..

Dreisig fuselages! ack!

Wanna swap minds? I mostly think in english...and sometimes in french.
 
simple: you should stop talking to these German fellows :p
 
It was a long day... with lots of stress.. I sometimes think in German and it bleeds out sometimes..

Dreisig fuselages! ack!

I mostly read and write in English, but think (especially when modeling) in Profane... :rotfl:
 
Back
Top