Easily done, but you need to be a bit of a dab hand with 'slew' mode to get the lat/long and altitude you want the effect placed at, here's a very quick how-to:
1) Download and install the effects SDK from Tom's link to start
2) Here's the basic effect code to place a red light at night (using the aircraft red nav light effect),copy and save it as a text (XXX.txt) file (name it something memorable for y
ou) then use slew mode 'in sim' to get the numbers you require to put in where I've put the letter '
X' (note when reading the lat/long you don't put the * symbol in!) and you may need to put letter
F with the altitude for 'feet' or '
M' for meters like so
, leave pitch, bank and heading as '0'
Basic effect code ---->
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject lat="N[COLOR=#ff0000]XX[/COLOR] [COLOR=#ff0000]XX[/COLOR].[COLOR=#ff0000]XX[/COLOR]" lon="W[COLOR=#ff0000]XX[/COLOR] [COLOR=#ff0000]XX[/COLOR].[COLOR=#ff0000]XX[/COLOR]" alt="[COLOR=#ff0000]X[/COLOR]" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_navred.fx"
effectParams="DAY=0;NIGHT=1" />
</SceneryObject>
</FSData>
3) Once you've filled in the numbers (notepad for text files editing) rename the file to XXX.xml
4) In the effects SDK folder find the folder called 'effects placement' ; within that folder is the bgl compiler, BGLC.exe, then the tricky bit, you have to drag the XXX.xml to the BGLC.exe (or you can right click the .xml and use 'open with' option then browse to BGLC.exe). All being well BGLC will then create a file XXX.bgl
5) Cut/paste (or copy/paste) your newly created XXX.BGL to your add-on scenery 'scenery' folder, start sim, select 'night' and enjoy.
To place more than one effect with only one bgl add another scenery object line like this
---->
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject lat="NXX XX.XX" lon="WXX XX.XX" alt="X" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_navred.fx"
effectParams="DAY=0;NIGHT=1" />
</SceneryObject>
[COLOR=#008000]<SceneryObject lat="NXX XX.XX" lon="WXX XX.XX" alt="X" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_navred.fx"
effectParams="DAY=0;NIGHT=1" />
</SceneryObject>
[/COLOR]
</FSData>
If you want a different light effect (there are many in fs9/effects folder to choose from); simply change the name of the effect in this section
Code:
Effect effectName="fx_navred.fx"
to, for example
Code:
Effect effectName="fx_strobe.fx"
Hope this helps, have fun
more detailed info in FSDeveloper forums -->
http://www.fsdeveloper.com/forum/th...-i-have-no-excludes-there.357180/#post-558850
ttfn
Pete