FS9 & FSDS 3.5 makemdl.parts xml code question
Results 1 to 2 of 2

Thread: FS9 & FSDS 3.5 makemdl.parts xml code question

  1. #1

    FS9 & FSDS 3.5 makemdl.parts xml code question

    Can someone please help me with makemdl.parts xml code.

    I am trying to have a special effect on a model that will have a part visible on the left side when flaps are down and left aileron is up OR that will have a part visible on the right side when flaps are down and right aileron is up.

    This code works correctly for the right side but not for the left. What is happening is the left_part_up becomes visible when the right aileron is up but not visible when the left aileron is up.

    Here is the code i am using


    <part>
    <name>right_part_up</name>
    <visible_in_range>
    <parameter>
    <code>
    (A:TRAILING EDGE FLAPS0 RIGHT PERCENT, percent) 95 &gt; (A:AILERON RIGHT DEFLECTION PCT,percent) 1 &gt; &amp;&amp;
    </code>
    </parameter>
    <minvalue>1</minvalue>
    </visible_in_range>
    </part>


    <part>
    <name>right_part_down</name>
    <visible_in_range>
    <parameter>
    <code>
    (A:TRAILING EDGE FLAPS0 RIGHT PERCENT, percent) 95 &lt; (A:AILERON RIGHT DEFLECTION PCT,percent) 1 &lt; || ;
    </code>
    </parameter>
    <minvalue>1</minvalue>
    </visible_in_range>
    </part>


    <part>
    <name>left_part_up</name>
    <visible_in_range>
    <parameter>
    <code>
    (A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 &gt; (A:AILERON LEFT DEFLECTION PCT,percent) 1 &gt; &amp;&amp;
    </code>
    </parameter>
    <minvalue>1</minvalue>
    </visible_in_range>
    </part>


    <part>
    <name>left_part_down</name>
    <visible_in_range>
    <parameter>
    <code>
    (A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 &lt; (A:AILERON LEFT DEFLECTION PCT,percent) 1 &lt; || ;
    </code>
    </parameter>
    <minvalue>1</minvalue>
    </visible_in_range>
    </part>


    thank you
    David

  2. #2
    Hi David,

    Did you get this resolved?

    Just FYI, deflection percent will be positive when the aileron moves in either direction, I believe, since it is at zero when neutral position. The pct will be of the total deflection regardless of degrees animated. So, either 95% down or up would meet the criteria.

    Secondly, verify the ; code in the right side down statement that has a space before it. If that is incorrect, it may cause problems with code that follows.

    Thirdly, use the right side working code for the left side as well; just reverse the test and/or action.
    Milton Shupe
    FS9/FSX Modeler Hack

    My Uploads at SOH - Here
    Video Tutorials - Gmax for Beginners

Members who have read this thread: 0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •