• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    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.

MetVis Condition not working

A

Aviasim

Guest
Hello all! been a while!

Getting straight to the point, I have ground lights controlled by SODE, at the moment I have only successfully added a condition so they only display at Dawn, Dusk and Night.. However - I would like a second condition for MetVisibility, I am aware I need a EDP in the XML.

So far I have this (EDP and one light placement instance)

Code:
<SODE>

   <!-- Data Probe serving its clients -->
    <SimObject Name="Newcastle_EGNT">
        <Placement Lat="55.0368097051978" Lon="-1.70722424983978" Alt="0#AGL" Hdg="0"/>
        <Model SimTitle="12bPilot_SODE_Environmental_Data_Probe">
            <EnvironmentalDataProbe ClientList="LightSplash"/>
        </Model>
    </SimObject>

   <!---Main Apron Lights--->
   <SimObject Name="LightSplash">
       <Placement Lat="55.0368097051978" Lon="-1.70722424983978" Alt="0#AGL" Hdg="0"/>
       <Model SimTitle="GND_LightSplash">
                 <ConditionalVisibility Variable="TimeOfDay" Value="DAWN;DUSK;NIGHT"/>
              <ConditionalVisibility Variable="MetVisibility" Value="5000-60000"/>
       </Model>
   </SimObject>

</SODE>

Trouble is the TOD condition seems to be working, but the visibility doesn't, I want the model to only display at dawn, dusk and night with a metvis between 5000 and 60000 meters.

Kind Regards all
 
Messages
181
Country
germany
Hello,

I have a similar problem.

Code:
<SimObject Name="runwaylightsbasedonvisibility">
        <Placement Lat="41.953873" Lon="45.507431" Alt="0#AGL" Hdg="0.0"/>           
        <Model SimTitle="runwaylightson">
            <ConditionalVisibility LogicExpression="A|B">
                <Condition ID="A" Variable="MetVisibility" Value="0-3000"/>
                <Condition ID="B" Variable="TimeOfDay" Value="DAWN;DUSK;NIGHT"/>
            </ConditionalVisibility>
        </Model>
        </Model>
        <Model SimTitle="runwaylights">
            <ConditionalVisibility LogicExpression="A|B">
                <Condition ID="A" Variable="MetVisibility" Value="3001-10000"/>
                <Condition ID="B" Variable="TimeOfDay" Value="DAY"/>
            </ConditionalVisibility>
        </Model>
          </Model>
    </SimObject>

I want the runway lights to show up, when it is dawn,dusk,night or when visibility is between 0-3000 meters.

The Time of day part works fine but the metvisibility part does not seem to work at all.

I tried also a simple version, where it checks only the visibility and no lights show up at all:

Code:
<SimObject Name="runwaylights">
        <Placement Lat="41.953873" Lon="45.507431" Alt="0#AGL" Hdg="0.0"/>           
        <Model SimTitle="runwaylightson">
            <ConditionalVisibility Variable="MetVisibility" Value="0-3000"/>
        </Model>
        </Model>
        <Model SimTitle="runwaylights">
            <ConditionalVisibility Variable="MetVisibility" Value="3001-100000"/>
                        </Model>
          </Model>
    </SimObject>

The Environmental Data Probe should be fine, I have a working windsock.

Does someone know a payware airport where this is working? I checked few of mine, but mostly they use SODE for the jetways.
 
Messages
181
Country
germany
Perhaps the duplicate </Model> tags are causing this?

Oh my God... Thank you. I guess I read this 20 times to check what I did wrong and I really missed that...

But in the first case there are still no runway lights even with "fogged in" conditions :/
 
Messages
181
Country
germany
Hello ianj,

I have it working now. It seems like this:

<ConditionalVisibility Variable="MetVisibility" Value="3001-100000"/>

is not really working. I don't know what kind of value the sim has for visability if the visibility is good. But in the smaller ranges (0-5000) It is working fine.

I just seperated the actual lights from their "shell" and now there is no need anymore for this condition.
 

RicherSims

Resource contributor
Messages
567
Country
dominica
Hello ianj,

I have it working now. It seems like this:

<ConditionalVisibility Variable="MetVisibility" Value="3001-100000"/>

is not really working. I don't know what kind of value the sim has for visability if the visibility is good. But in the smaller ranges (0-5000) It is working fine.

I just seperated the actual lights from their "shell" and now there is no need anymore for this condition.

Old thread but I figured out how to get a condition specifically for High Visibility.
Since FSX is a 32 bit sim. The highest possible value it could take is 2^32 = 4294967296.
So setting:
Code:
<ConditionalVisibility Variable="MetVisibility" Value="3001-4294967296"/>
will handle everything else.
 
Top