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

FSXA XML Ground Equipment Visibility

Messages
19
Country
newzealand
Hey Gentlemen,

Would anyone know if it is possible or have any XML code to make ground equipment such as wheel chocks, remove before flight tags etc. appear on such a command such as Shift + 3?

Thanks for your time. :)

Jamessx
 
It would be best, in my opinion, to use a visibility tag. It would look like this:
Code:
<PartInfo>
 <Name>Show engine covers</Name>
  <Visibility>
   <Parameter>
    <Code>
     (A:PLANE ALT ABOVE GROUND, feet) 10 &lt; (A:GENERAL ENG RPM:1, rpm) 0 == and if{ 1 } els{ 0 }
    </Code>
   </Parameter>
  </Visibility>
</PartInfo>

The code means: "if Radar altimeter is less than 10ft and engine 1 rpm is(==) 0 produce a result of 1 else 0"
Embedded in a <Visibility> section, this should make the parts appear when Engine RPM is 0 and disappear when RPM is more.
The Radar altimeter<10ft (A:PLANE ALT ABOVE GROUND) part should make sure that the effect would be visible only when the aircraft is on tarmac. Replace "10" with the radar altimeter readout of the aircraft when wheels are fully decompressed.

Alternatively, you could use (A:SIM ON GROUND, bool), but this will cause the game to crash on multiplayer.

The second way (that requires no coding on your part) would be to hide all the covering items in the aircraft fuselage and animate them with an exit, concorde visor or water rudder. At keyframe 0 they'll be hidden in the fuselage, at keyframe 1 they'll be in place.
 
Thanks for the very prompt reply Alexis. :)

The reason I wish to have it connected to a door command was so it would be visible in multiplayer for formation team purposes. I have tried using a visibility tag such as the one you provided however the equipment it is not visible to other members while in the session. Would what I'm aiming to do be plausible?

Thanks
Jamessx
 
Shift 3 is a subpanel command, not a door command. I assume you mean Shift E 3?

If so, you can quite easily have those objects set up to use a Visible code structure. I don't know the format for FSX, though and I don't know if they would show up in Multiplayer.

The line of code to use as a test for visibility would be something like:

Code:
(A:EXIT OPEN:2, percent) 99 &gt;

My code for chocks uses parking brake on and engines off (FS9 code):

Code:
<part>
     <name>L_chocks</name> <!-- visible when brake is on and LH engines are stopped -->
                 <visible_in_range>
                      <parameter>
                           <code> (A:BRAKE PARKING POSITION, bool) 1 == (A:GENERAL ENG1 COMBUSTION, bool) 0 == (A:GENERAL ENG2 COMBUSTION, bool) 0 == &amp;&amp; &amp;&amp; </code>
                       </parameter>
                       <minvalue>1</minvalue>
                 </visible_in_range>
</part>

<part>
     <name>R_chocks</name> <!-- visible when brake is on and RH engines are stopped -->
                 <visible_in_range>
                      <parameter>
                           <code> (A:BRAKE PARKING POSITION, bool) 1 == (A:GENERAL ENG3 COMBUSTION, bool) 0 == (A:GENERAL ENG4 COMBUSTION, bool) 0 == &amp;&amp; &amp;&amp; </code>
                       </parameter>
                       <minvalue>1</minvalue>
                 </visible_in_range>
</part>

Hope this helps,
 
Hi Tom,

My apologizes I did mean Shift E 3 :o

I tired the following XML and it works perfectly for the standard Shift E...

Code:
<PartInfo>
    <Name>L39_vis</Name>
    <Visibility>
      <Parameter>
        <Code>
        (A:CANOPY OPEN, percent) 90 &gt;

 </Code>
      </Parameter>
    </Visibility>
  </PartInfo>


I then went on and tried substituting
Code:
(A:CANOPY OPEN, percent) 90 &gt;

with

Code:
(A:EXIT OPEN:2, percent) 99 &gt;

but nothing would happen when it was in the state with exit 2 open.

Any ideas??

Thanks
Jamessx
 
Last edited:
Do you have a properly defined "exits" in the "aircraft.cfg"?
 
That line I wrote is from FS9; perhaps it's different for FSX?

And try 90 rather than 99.

Hope this helps,
 
Back
Top