• 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.

OMI Lights

Messages
114
I am trying to make a set of OMI Lights. I have modelled the 3 lights, and created the code below

<PartInfo>
<Name>Marker_Outer</Name>
<Visibility>
<Parameter>
<Code>(A:Outer Marker,bool) </Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>Marker_Middle</Name>
<Visibility>
<Parameter>
<Code>(A:Middle Marker,bool) </Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>Marker_INNER</Name>
<Visibility>
<Parameter>
<Code>(A:Inner Marker,bool) </Code>
</Parameter>
</Visibility>
</PartInfo>

but the lights fail to light

if I modify the code and add !

<PartInfo>
<Name>Marker_Outer</Name>
<Visibility>
<Parameter>
<Code>(A:Outer Marker,bool) ! </Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>Marker_Middle</Name>
<Visibility>
<Parameter>
<Code>(A:Middle Marker,bool) !</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>Marker_INNER</Name>
<Visibility>
<Parameter>
<Code>(A:Inner Marker,bool) !</Code>
</Parameter>
</Visibility>
</PartInfo>

then the outer marker lights, and stay lit, all the time regardless of marker status

what is wrong?
 
My FS2004 configuration

Code:
<part>
	<name>Light_Outer_Marker</name>
	<visible_in_range>
		<parameter>
			<code>
                           (A:OUTER MARKER,number) 0 &gt; 
                               if{ 1 } els{ 0 } 
                         </code>
		</parameter>
		<minvalue>1</minvalue>
        </visible_in_range>
</part>
 
ok, something odd.

I thought my code should work, so I did some testing. I have flown some ILS approaches around various airfields, in the Cessna 208 default aircraft, which has OM lights on the VC, and they are not working on that either! what causes maker lights to not work at all?
 
ok, something odd.

I thought my code should work, so I did some testing. I have flown some ILS approaches around various airfields, in the Cessna 208 default aircraft, which has OM lights on the VC, and they are not working on that either! what causes maker lights to not work at all?

At a guess I would have to say that there aren't any marker beacons at that airport and/or runway!

I do know that KGYY rwy 30 has all three markers present and operational. I use that as my test airport when coding avionics.

BTW, there's nothing at all wrong with your first set of scripts.
 
Dont you love it when you find out your code was right all along, but the conditions were wrong?!

:D
 
At a guess I would have to say that there aren't any marker beacons at that airport and/or runway!

I do know that KGYY rwy 30 has all three markers present and operational. I use that as my test airport when coding avionics.

BTW, there's nothing at all wrong with your first set of scripts.

ok, i am going to use that rwy for testing, will report back
 
well, my FSX KGYY only has an OM, but the good news is, my OM light triggered, so the code is good:)

so I am going to manually add markers to it and test again
 
well, my FSX KGYY only has an OM, but the good news is, my OM light triggered, so the code is good:)

so I am going to manually add markers to it and test again

Since KGYY is my real "home airport" I probably modified it some years ago to update the facilities to reflect reality...

In any case, at least it's confirmed now that the airport you were using doesn't have any markers at all, eh? :D
 
I just tried UKMIL's original code on my OMI lights and they worked in so much as they came on when close to the beacon and went off once the aircraft passed the beacon.

Research has led me to believe that the OMI lights should actually flash rather than be a static light so I tried to make them flash and hit issues. I found the Wiki here (http://www.fsdeveloper.com/wiki/index.php?title=XML:_Timer ) that has code to flash a light but when I tried to incorporate that code into my OMI light code I ended up with all the OMI lights flashing on/off all the time regardless of how close they were to the beacons.

This is my code as it stands at the moment to flash the outer marker light on/off in 0.5 second cycles (i.e. 0.5 seconds on, 0.5 seconds off):

Code:
<PartInfo>
	<Name>Marker_Outer</Name>
	<Visibility>
	  <Parameter>
		<Code>(A:Outer Marker,bool) (P:Absolute time,seconds) 1 % 0.5 1 * > ! </Code>
	  </Parameter>
	</Visibility>
  </PartInfo>

Can anyone see where I've gone wrong? I am guessing that I can't just add the flash code in the way I did it but I don't know of another way at the moment.

Edit: After some thought I am now wondering if an 'if...els' statement would work along the lines of 'if the light is lit then make it flash'.
 
Last edited:
Code:
<Code>(A:Outer Marker,bool) if{ (P:Absolute time,seconds) 1 % 0.5 1 * > ! }</Code>
 
Larry, you'd already suggested the actual answer yourself. I've no doubt whatever you'd have (eventually) tried it out yourself... :D

Believe me, I get stuck myself more often that I'd like to admit! ;)
 
Back
Top