PDA

View Full Version : My own gauge and Units Question.



aircraft_ozone
March 15th, 2009, 13:37
Hello every body

i should like to know why the unit "percent" do not work with the variable "L"
i have made a full animation :

<PartInfo>
<Name>switch_sparrow</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:switch_sparrow,bool) 50 *
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>(L:switch_sparrow,bool) ! (>L:switch_sparrow,bool) ! (>L:sparrow1,percent) </CallbackCode>
</MouseRect>
</PartInfo>


<PartInfo>
<Name>sparrow1</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:sparrow1,percent) 100 *
</Code>
</Parameter>
</Animation>
</PartInfo>



the sparrow is linked to ghost and ghost must not been visible at the end of the animation ( 95 percent)



<PartInfo>
<Name>ghost</Name>
<Visibility>
<Parameter>
<Code>(L:sparrow1,percent) 95 &gt; if{ 0 } els{ 1 } </Code>
</Parameter>
</Visibility>
</PartInfo>

It's not ok but if the code is :

<PartInfo>
<Name>ghost</Name>
<Visibility>
<Parameter>
<Code>(L:sparrow1,percent) 0 &gt; if{ 0 } els{ 1 } </Code>
</Parameter>
</Visibility>
</PartInfo>

It's ok
ghost is not visible but there is no time.

if this code is for example

<PartInfo>
<Name>ghost</Name>
<Visibility>
<Parameter>
<Code>(A:Turb eng1 CORRECTED N1, percent) 95 &gt;; if{ 0 } els{ 1 } </Code>
</Parameter>
</Visibility>
</PartInfo>


it's ok !
with "A" and "percent" no problem and with "L" my own code it'do not work , if anyone know and can help me ? is it possible to use percent ?Thank you http://www.fsdeveloper.com/forum/images/smilies/frown.gif

http://www.fsdeveloper.com/forum/images/misc/progress.gif

Milton Shupe
March 15th, 2009, 14:04
I am sorry that I cannot help you, however, one of the xml gurus may be along anytime. You can also post your question over at FFDS where there are several very knowledgeable XML coders.

http://www.aerodynamika.com/cgi-bin/yabb/YaBB.cgi

aircraft_ozone
March 16th, 2009, 01:33
Thanks Milton , now if anybody else know .....:help:
however ,How do you do to register on FFDS web site ? i don't find.

Milton Shupe
March 16th, 2009, 05:04
If you click on the Logon button at the very top, I suspect you will be offered the chance to register there.

aircraft_ozone
March 16th, 2009, 08:10
ok thank you ! i am going to try :typing:

n4gix
March 17th, 2009, 10:48
The answer has been posted to your thread at FS Developer.

Milton Shupe
March 17th, 2009, 18:33
Thanks Bill :wave: