Hello folks,
I've hit a bit of a problem trying to create multiple windsocks to go with Runway Control Caravans on an airfield.
The idea is that, as per the real world, the airfield has one or more "primary" windsocks which are fixed in location, plus secondary windsocks attached to a runway control vehicle or caravan which is parked at the downwind end of the active runway. The problem is that, while I can get a windsock to appear with the two conditions necessary (wind direction to define active runway and wind strength to determine the type of sock model called), if I then add additional lines for different windspeeds, the object will no longer appear.
It doesn't break the XML file, because objects called by later lines still work, the smaller windsocks just don't appear at all. I've tried different models and locations and it always works for the first model entry, but not if I add more than one.
The following is the code for what I'm trying to achieve for a single runway... Hunsdon has four of these (02/20 and 07/25) but most airfields will have six (e.g. Halfpenny Green has 04/22, 10/28 and 16/34...) to deal with.
Any suggestions, please, or should I just call a single model for these locations (i.e. always use the 15kt+ windspeed sock model).
Thanks in advance.
Ian P.
Edit: Attached full XML file for people to be rude about how inefficient it all is!
I've hit a bit of a problem trying to create multiple windsocks to go with Runway Control Caravans on an airfield.
The idea is that, as per the real world, the airfield has one or more "primary" windsocks which are fixed in location, plus secondary windsocks attached to a runway control vehicle or caravan which is parked at the downwind end of the active runway. The problem is that, while I can get a windsock to appear with the two conditions necessary (wind direction to define active runway and wind strength to determine the type of sock model called), if I then add additional lines for different windspeeds, the object will no longer appear.
It doesn't break the XML file, because objects called by later lines still work, the smaller windsocks just don't appear at all. I've tried different models and locations and it always works for the first model entry, but not if I add more than one.
The following is the code for what I'm trying to achieve for a single runway... Hunsdon has four of these (02/20 and 07/25) but most airfields will have six (e.g. Halfpenny Green has 04/22, 10/28 and 16/34...) to deal with.
XML:
<!-- Runway 02 -->
<!-- Runway Caravan 02 -->
<SimObject Name="RunwayCaravan02">
<Placement Lat="51.79928167" Lon="0.062996002" Alt="0#AGL" Hdg="022"/>
<Model SimTitle="RunwayCaravanBlack">
<ConditionalVisibility Variable="WindDirection" Value="318-047"/>
</Model>
</SimObject>
<!-- Windsock 02 -->
<SimObject Name="Windsock6ft02">
<Placement Lat="51.79928167" Lon="0.062996002" Alt="0#AGL" Hdg="000"/>
<Model SimTitle="Windsock_6ft_00k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="0-2"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="Windsock_6ft_03k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="3-5"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="Windsock_6ft_06k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="6-8"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="Windsock_6ft_09k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="9-11"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="Windsock_6ft_12k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="12-14"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="Windsock_6ft_15k">
<VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>
<ConditionalVisibility LogicExpression="(A$B)">
<Condition ID="A" Variable="Windspeed" Value="15-35"/>
<Condition ID="B" Variable="WindDirection" Value="318-047"/>
</ConditionalVisibility>
</Model>
</SimObject>
Any suggestions, please, or should I just call a single model for these locations (i.e. always use the 15kt+ windspeed sock model).
Thanks in advance.
Ian P.
Edit: Attached full XML file for people to be rude about how inefficient it all is!
Attachments
Last edited:
