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

Airport Lights with effect - another solution

Messages
3
Hi guys,

long time ago since you discussed within this topic, but now I have to reactivate it :)

Actually we are trying to do some lights for our new Rescue Helicopter Scenery in FS9, but it doesn't work really well.
The lights I added are correctly displayed in FS9, but there are two problems:

- The lights disappear when I move away about 100 meters and appear again when I get closer to them.
- The lights are displayed at day and night. I just want them at night, dawn and dusk. The settings "day=0, Night=1" etc.
in the XML file make the lights disappear all time.

Who can tell me, which parameters I have to edit to solve the problems?

Thanks a lot.


.fx code
Code:
[Library Effect]
Lifetime=5
Version=2.00
Display Name=edtq_lights_white
Radius=100
Priority=1

[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1

[Emitter.0]
Lifetime=0.50, 0.50
Delay=0.00, 1000.00
Bounce=0.00
No Interpolate=1
Rate=1.00, 1.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=0.00, 0.00
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.0]
Lifetime=0.00, 0.00
Type=19
X Scale=0.75, 0.75
Y Scale=0.75, 0.75
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=0.00, 0.00
Color Rate=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Static=1
Face=1, 1, 1

[ParticleAttributes.0]
Blend Mode=2
Texture=fx_2.bmp
Bounce=0.00
Color Start=200, 200, 255, 255
Color End=200, 200, 255, 0
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.50
uv2=0.50, 1.00
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00

.xml 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="N48 51.9326" lon="E9 13.2545" alt="1.3" pitch="180" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
		<Effect effectName="edtq_lights_white" />
	</SceneryObject>

</FSData>
 
Last edited:
Messages
3
Hi Georg, thanks.

No I didn't use any controller. I have never tried this because I don't know what it is or how it works.
Could this be a solution for the problems? Do you have any link / tutorial for using controllers?
 
Messages
535
Country
germany
As written in the first posting of that thread, you have to use a controller. That's a fx-file as well.

Example from EDDK:


File cntrl_EDDK_apron.fx
Code:
[Library Effect]
Lifetime=5
Version=2.00
Radius=200

Priority=0

[controller.0]
lifetime=0.0, 0.0
type=3
distance=8000.00, 8000.00
delay=7200.00, 7200.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=fx_EDDK_apron, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

File fx_EDDK_apron.fx
Code:
[Library Effect]
Lifetime=5
Version=2.00
Display Name=Lamp Spot effect
Radius=100
Priority=0

[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1

[Emitter.0]
Lifetime=0.50, 0.50
Delay=0.00, 0.00
Bounce=0.00
Rate=1.00, 1.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=0.00, 0.00
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.0]
Lifetime=0.00, 0.00
Type=19
X Scale=60.00, 60.00
Y Scale=60.00, 60.00
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=0.00, 0.00
Color Rate=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Ground Normal=1
Shade=0
Static=1
Face=0, 0, 0

[ParticleAttributes.0]
Blend Mode=2
Texture=fx_EDDK_spot.bmp
TextureSize=256
Bounce=0.00
Color Start=60, 60, 60, 100
Color End=16, 16, 16, 128
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.00
uv2=1.00, 1.00
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00

You place only the controller-file, one for night and on for dusk. That worked for me. But I did not have a problem with 100m ...

Another thing: There is a bug in the night/day/dusk setting - only one parameter is really used, so you have to place to files - one for night and one for dusk (and that is for dawn, too).
 
Messages
3
Hi Georg, thanks.

The lights are working well right now. Day and night setting is also perfect.
Just the problem with disappearing of the lights will not get fixed.

Is there any parameter in the code where I can set the distance the effect is shown?
 
Messages
535
Country
germany
Um ... it's a long time since I worked on these files, but as the Effects SDK Doc says, it's the following line
Code:
distance=8000.00, 8000.00

The SDK says:
The [Distance] parameter tells the scenery engine how close you have to be before this effect is either visible or audible. You can use this parameter to create location specific sound effects. Use this parameter with the Distance controller.

If you find my old thread where I discussed this issue with Scorpio9999 (I think HE did most of the solution), you can read about it:
http://www.fsdeveloper.com/forum/showthread.php?t=830&highlight=Distance+Controller

But as you did not have a controller before, but had the problems, it seems not to be the solution of your problem.
 
Top