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.
<PartInfo>
<Name>HangarDoorLeft</Name>
<AnimLength>140</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, SECONDS) 28800 > (E:LOCAL TIME, SECONDS) 64800 < and (L:LIGHTING_NAV_1,Bool) 1 == or if{ 140 } els{ 0 }
</Code>
<Lag>10</Lag>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>HangarDoorRight</Name>
<AnimLength>80</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, SECONDS) 28800 > (E:LOCAL TIME, SECONDS) 64800 < and (L:LIGHTING_NAV_1,Bool) 1 == or if{ 80 } els{ 0 }
</Code>
<Lag>10</Lag>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>HangarDoorLeft</Name>
<AnimLength>140</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, SECONDS) 28800 > (E:LOCAL TIME, SECONDS) 72000 < and (A:LIGHT NAV,bool) 1 == or if{ 140 } els{ 0 }
</Code>
<Lag>10</Lag>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>portaDXEst</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, Seconds) 28800 > (E:LOCAL TIME, Seconds) 64800 < and (L:LIGHTING_NAV_1,Bool) 1 == (L:LIGHTING_NAV_0,Bool) 1 == or or if{ 100 } els{ 0 }
</Code>
<LAG>20</LAG>
</Parameter>
</Animation>
</PartInfo>
Hi Guys!
I am totaly noob for xml syntax. What I do not understand is how to combine together the conditions.
Do I understand well when I place two condition like part 1 in the picture the "and" or the "or" operator at the end is refenced for the "day of year". Same with part two where after the "Local Time" thing the and is valid. But where do I connect these two together?
What I want to achieve here is to show the object only between day 90 and 310 and when it is daytime.
Other silly question. What if I want to display the object / nod all the time?
Thanks a lot!
View attachment 85495
<Code>(E:LOCAL TIME, Seconds) 25200 >= (E:LOCAL TIME, Seconds) 75600 <= and (E:LOCAL MONTH OF YEAR, Number) 4 <= (E:LOCAL MONTH OF YEAR, Number) 10 >= || and (A:AMBIENT TEMPERATURE, celsius) -10.0 > and if{ 1 } els{ 0 } </Code>
Anybody wondering the solution was 2x and at the end.Hi Guys!
I am totaly noob for xml syntax. What I do not understand is how to combine together the conditions.
Do I understand well when I place two condition like part 1 in the picture the "and" or the "or" operator at the end is refenced for the "day of year". Same with part two where after the "Local Time" thing the and is valid. But where do I connect these two together?
What I want to achieve here is to show the object only between day 90 and 310 and when it is daytime.
Other silly question. What if I want to display the object / nod all the time?
Thanks a lot!
View attachment 85495
(E:LOCAL DAY OF YEAR, Number) 90 >= (E:LOCAL DAY OF YEAR, Number) 310 <= and (E:LOCAL TIME, Seconds) 39600 >= (E:LOCAL TIME, Seconds) 61200 <= and and if{ 1 } els{ 0 }
<?xml version="1.0" encoding="UTF-8"?>
-<ModelInfo guid="{6a39f4bb-6bda-4f13-9308-ec8705d5750b}" version="1.1">
-<LODS>
<LOD ModelFile="H120 Colibri.gltf" MinSize="10"/>
</LODS>
-<Behaviors>
<Include ModelBehaviorFile="Asobo\Misc\SimObjects.xml"/>
-<Component Node="H120 Colibri" ID="H120 Colibri">
-<Visibility>
-<Parameter>
<Code>(E:LOCAL TIME, Seconds) 28800 >= (E:LOCAL TIME, Seconds) 29800 <= and (E:LOCAL TIME, Seconds) 64800 >= (E:LOCAL TIME, Seconds) 65800 <= and or if{ 1 } els{ 0 } </Code>
</Parameter>
</Visibility>
</Component>
</Behaviors>
</ModelInfo>
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo guid="{6a39f4bb-6bda-4f13-9308-ec8705d5750b}" version="1.1">
<LODS>
<LOD ModelFile="H120 Colibri.gltf" MinSize="10"/>
</LODS>
</ModelInfo>
<ModelBehaviors>
<Include Path="Asobo\Misc\SimObjects.xml"/>
<Component Node="H120 Colibri" ID="H120 Colibri">
<Visibility>
<Parameter>
<Code>
(E:LOCAL TIME, Seconds) 28800 >= (E:LOCAL TIME, Seconds) 30600 <= and (E:LOCAL TIME, Seconds) 64800 >= (E:LOCAL TIME, Seconds) 66600 <= and or if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</Component>
</ModelBehaviors>
XML:<?xml version="1.0" encoding="UTF-8"?> -<ModelInfo guid="{6a39f4bb-6bda-4f13-9308-ec8705d5750b}" version="1.1"> -<LODS> <LOD ModelFile="H120 Colibri.gltf" MinSize="10"/> </LODS> -<Behaviors> <Include ModelBehaviorFile="Asobo\Misc\SimObjects.xml"/> -<Component Node="H120 Colibri" ID="H120 Colibri"> -<Visibility> -<Parameter> <Code>(E:LOCAL TIME, Seconds) 28800 >= (E:LOCAL TIME, Seconds) 29800 <= and (E:LOCAL TIME, Seconds) 64800 >= (E:LOCAL TIME, Seconds) 65800 <= and or if{ 1 } els{ 0 } </Code> </Parameter> </Visibility> </Component> </Behaviors> </ModelInfo>
You must rewrite characters that have special meaning in XML syntax if you want to use them in normal text between tags.Thank you for your help. Unfortunately, it's not working. I've no idea what's wrong.
Character | Notation in XML | |
---|---|---|
< | < | |
> | > | |
& | & | |
" | " | |
' | ' |
<Code> (A:LIGHT BEACON,bool) 1 == or if{ 1 } els{ 0 } </Code>
<Code> (L:LIGHTING_BEACON_0,Bool) OR (L:LIGHTING_BEACON_1,Bool) == if{ 1 } els{ 0 } </Code>