• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

FS9 & FSDS 3.5 makemdl.parts xml code question

this4dave2

Members +
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.:banghead::banghead:

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 > (A:AILERON RIGHT DEFLECTION PCT,percent) 1 > &&
</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 < (A:AILERON RIGHT DEFLECTION PCT,percent) 1 < || ;
</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 > (A:AILERON LEFT DEFLECTION PCT,percent) 1 > &&
</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 < (A:AILERON LEFT DEFLECTION PCT,percent) 1 < || ;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


thank you
David
 
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.
 
Back
Top