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

Obplacer XML Effects parameter

Messages
25
Country
netherlands
Hi Arno,

I used OBPlacer XML for adding smoke effect. What parameter do I have to change to get smoke in autum and winter? Will that be possible?

Thanks in advance
Rob
 
Hi Rob,

Details about how to use these parameters are described in the Fs2004 effects SDK. See a copy of the Effects Parameters.txt file below:

Effects Parameters.txt said:
Effects Parameters

The options on the dialog are mostly self explanatory. The only one that
needs further explanation is the "Parameters" option. Parameters are semi-
colon delimited. The available parameters are:

RANDOM=random_range,random_threshold;

Specifies that the effect occurs randomly. A random number is
generated between 0 and random_range; if the number generated
is less than random_threshold, the effect is not created.


x = random number from 0 to "random_range"
if (x < random_threshold) do nothing

For a 10% chance of seeing a certain effect:

RANDOM=10,9

40% chance:

RANDOM=10,6



YEAR=year_begin,year_end;

Specifies that the effect occurs only if the sim time is within
the year range, inclusively.
To have an effect play for the year 1989, the parameter would be written as:

YEAR=1989,1989


MOY=moy_begin,moy_end;
DOM=dom_begin,dom_end;
HOD=hod_begin,hod_end;
MOH=moh_begin,moh_end;
SOM=som_begin,som_end;

Specifies the months of the year (MOY), days of the month (DOM), hours of the
day (HOD), minutes of the hour (MOH), and seconds of the minute (SOM) for which the
effect occurs. All ranges are inclusive. Any combination of these
ranges may be used; the more used, the fewer valid date/times the
effect occurs. All times are in the local timezone.
MOY range: 1,12;
Where "1"= January, and "12"= December
DOM range: 1,31;
Where "1"= first day of the month, and "31"= last possible day of the month
HOD range: 0,23;
Where "0"= would be midnight
MOH range: 0,59;
Where "0"= would be the start of the duration of 60 minutes
SOM range: 0,59;
Where "0"= would be the start of the duration of 60 seconds

DAWN=1|0;
DAY=1|0;
DUSK=1|0;
NIGHT=1|0;

Specifies that the effect should only occur during certain periods
of the day. If the value is 1, the effect will occur. If the value
is 0, it will not. If none of these parameters are specified, the
effect will occur the entire day.

DURATION=seconds;

Specifies, in seconds, the duration of the effect. This parameter
my be a non-integer; i.e. 2.5.

Parameter precedence:

"RANDOM" takes highest precedence, then "DAWN," etc., and then "HOD," etc.

"RANDOM" is determined when the scenery is first loaded. If the random
check fails, the effect will not occur at all until the scenery is
completely reloaded (at which point it may fail the random check again).

It is possible to set up an effect's parameters such that the effect never
occurs. If any of the "DAWN," "DAY," etc. parameters are specified, they
take precedence over "HOD," "MOH," and "SOM." Therefore if you set
"NIGHT=0;" and "HOD=22;", the effect will not show at 10:00PM because it
should not appear at night.
 
Dank je Arno,

Gonna work on it. Still another question with regard to sca. files. I like to have an object banked or pitched. In OBPlacer there are several user parameters. Which user parameter (with which variable) do I have to enter/change to make an api object pitch/bank (a construction cone)

Thanks,
Rob
 
Hi Rob,

By default there is no parameter for pitch and bank in an API macro. You would have to adjust the RotatedCall command to be able to do that. Now this command looks like:

Code:
RotatedCall( :label 0 0 %5 )

If you change it to the line below then the first user parameter is the pitch and the second the roll. Of course you need to make sure they are not already used in the API :).

Code:
RotatedCall( :label %6 %7 %5 )
 
How about with ObPlacer XML?

Arno,

I know this thread been inactive for a while, and I do know how to use the Effect Parameters in XML and compile them with BGLComp, but is it possible to include them in an effect using ObPlacerXML?

The effectParams box is there, but it only accepts numeric inputs (0 through 9). Anything we can do to use that effectParams box in ObPlacer XML?

Thanks

Fern
 
Hi Fern,

The effectParams box is there, but it only accepts numeric inputs (0 through 9). Anything we can do to use that effectParams box in ObPlacer XML?

Oops, that must be a bug. I'll fix that in the next release. It surprises me that you are the first to find out, I guess effects are not that often placed :).

For now a workaround would be to type the text in notepad for example and then copy-paste it into the text box. If you right click in the box in ObPlacer XML you can do a paste action. But I will solve this bug of course.
 
Aha!

Thanks, Arno

I placed all the effects I wanted (in this recent case they where a bunch of pools of light around the aprons) for dusk, night and dawn using an xml file and BGLComp, but the ObPlacerXML is so incredibly convenient that it would be much easier to use it instead.

Thanks!

Fern
 
Back
Top