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

Effects Parameters - DAY, NIGHT etc.

JonPatch

Resource contributor
Messages
443
Country
ca-britishcolumbia
Folks, I'm missing something I believe here. Check out these XML code fragments:

<Effect effectName="marine_strobe_red_4s.fx" effectParams="DAY=0"/>

.. results in the effect occuring all the time! This one:

<Effect effectName="marine_strobe_red_4s.fx" effectParams="DAY=0;"/>

.. results in the same thing. (I don't know whether to end with the semicolon or not) And this:

<Effect effectName="marine_strobe_red_2s.fx" effectParams="DAWN=1;DAY=0;DUSK=1;NIGHT=1;"/>

results in the effect never appearing!

What am I missing?

Jon
 
Hi Jon.

A bug in the sim's scenery engine requires the pairing of some of these parameters... meaning you need 2 entries:

<Effect effectName="marine_strobe_red_2s.fx" effectParams="DAWN=1;DUSK=1;"/>
<Effect effectName="marine_strobe_red_2s.fx" effectParams="DAY=0;NIGHT=1;"/>

DAWN and DUSK are paired, DAY and NIGHT are paired.

Dick
 
Thanks, Dick. That would have been a hard one to find!!!!

So, now here's what I have found:

- you cannot have more than one effectsParam per effect
- I get an error message if I try to put more than one effect on at a time, "Nested scenery objects detected"

So I cannot seem to specify all four periods. And:

- DAY=0 (which implies that the effect should be on all other times), results in the effect on at all times
- DAWN=1;DAY=0; results in the effect on dawn and dusk, off day and night (!)
- DUSK=1;DAY=0; same as DAWN=1;DAY=0
- NIGHT=1;DAY=0; only on at night, off all other times
- NIGHT=1; on at night only, off all other times
- 3 or 4 parameters; results in effect off at all times

So how do I have the effect on dusk, night and dawn?

Jon
 
Last edited:
Hi Jon.

As I wrote, you need 2 entries, 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="47 25.89" lon="-122 18.43" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
    <Effect effectName="fx_strobe.fx" effectParams="DAWN=1;DUSK=1;"/>
  </SceneryObject>

  <SceneryObject lat="47 25.89" lon="-122 18.43" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
    <Effect effectName="fx_strobe.fx" effectParams="DAY=0;NIGHT=1;"/>
  </SceneryObject>

</FSData>

Each pair is treated as a separate Scenery Object.

Dick
 
Got it, Dick, thanks for your patience and help. As I have many objects this applies to, I was looking for an easy way out! :)

Jon

EDIT: So after all this shenanigan I was down in the harbour today, and noticed that the *+^@%#& blinking (literally) lights are on the daytime as well. :rotfl:
 
Last edited:
Don't you also have to pair DAWN with DUSK as well as DAY with NIGHT (as well as it all being in caps)?
 
Hi all!
I found little bit different rule for an effect.
It dislike just one parameter with =0.
For example: DAY=0.

I made 3 effect attach points in the same place with parameters:
1 - DAWN=1
2 - DAY=1
3 - DUSK=1

And... IT WORKS!!!
 
If I had known... :o

Just at the time you discussed this problem here, I was working hole nights at solving that thing. It didn't occur to me first, that it could be a bug... :o

I solved it by placing two effects, one with:
effectParams="DUSK=1;"
and the other with
effectParams="NIGHT=1;"
With that the fx apperes from dusk til dawn.

But now I want to place an effect, that only appears while dusk, which is most realistic for a little airport, which isn't in use at night or in the morning.

But how can I separate dusk an dawn? :confused:
 
Hi Thorsten,

Would it not work if you set 0 for the times of day you don't want?

This is the code I used for my lighthouses:

Code:
<SceneryObject lat="53.48166666" lon="6.13833333" alt="44" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
		<Effect effectName="nl2000_beam1.fx" effectParams="day=0;NIGHT=1" />
	</SceneryObject>
	<SceneryObject lat="53.48166666" lon="6.13833333" alt="44" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
		<Effect effectName="nl2000_beam1.fx" effectParams="DUSK=1;DAWN=1" />
	</SceneryObject>

So what if you used something like this (I have not tested it):

Code:
<SceneryObject lat="53.48166666" lon="6.13833333" alt="44" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
		<Effect effectName="nl2000_beam1.fx" effectParams="day=0;NIGHT=0" />
	</SceneryObject>
	<SceneryObject lat="53.48166666" lon="6.13833333" alt="44" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
		<Effect effectName="nl2000_beam1.fx" effectParams="DUSK=1;DAWN=0" />
	</SceneryObject>

Might be the first line is not needed, you would have to test that.
 
Maybe you're right. I'll test it. I only tried dusk=1;dawn=0, and that didn't work. I still don't get the idea of the pairs. I'll keep on tryin...
 
Is there anyone who can give a round up of this problem?

I want my lights to shine DUSK, DOWN and NIGHT with only ONE effect ... some say, it is possible, some say it isn't ... :scratchch
 
I think that will not work. You need two effects, one for DAY=0;NIGHT=1 and the other for DUSK=1;DAWN=1.
 
Yes, I tried every combination, and the only way it worked was by using two effects, one for night and one for dusk/dawn. :(
 
Georg, maybe you could explain why you want one effect, I'm curious. Having two is quite simple . . .

Jon
 
The reason is, that it get's a bit messy in SGX if I place one effect over another ... :rolleyes:

If I want to move one of them afterwards, it's quite difficult.
 
That's the reason I'm thinking of placing my effects with Arnos OPXML. It's not as easy as with SGX of course, but I can create different XMLs and within the xml I simply double the fx-entries by using a WORD-macro. ;)
 
Got it Georg, I'm used to hand-coding XML, and am only now exploring the wonderful world of automated object placing tools.

Jon
 
Back
Top