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

Excluding an effect not attached to an object

Messages
310
Country
us-washington
Hi folks,

I need to exclude an effect that is not associated with an object. Is there a trick to this? An exclusion rectangle in IS3 will exclude a light that is attached to an object, but it will not exclude an effect not so attached.

I don’t see a likely exclude candidate in SBuilder X either. I have the GUIDs of the problem effects if that's a help.

Here's the specific problem. For a number of Holger's marine lights for PNW, the effects are assigned independent of the model so that one model can be used for a number of different lights with different periods, 1 sec, 2 sec, 4 sec etc. I need to exclude some of these lights and replace them with the same but higher off the water. Because the light is up on a platform, the problem light shines through underneath my hopefully accurate model.

Thanks much,

Larry
 
Messages
7,450
Country
us-illinois
Hi Larry:

Could you attach to a PM or to this thread, a saved flight (*.Flt) file in a ZIP, at a location in either the freeware demo or the payware installation of FTX PNW, that shows an example of such a light object which displays the associated (BglComp-XML placed ?) 'Effect' light in question ? ;)

GaryGB
 
Last edited:
Messages
310
Country
us-washington
Hi Gary,

Maybe I can do you one better in the morning if I can refresh my memory of how it works; I should be able to attach the XML that generates the effect in question. I figured out how it's generated from the raw data (the Light List) once upon a time... so he says.

Larry
 

GHD

Messages
12,243
Country
england
If it is an individually placed effect, an ExclusionRectangle with excludeEffectObjects = "TRUE" should remove it.
 
Messages
7,450
Country
us-illinois
Hi Larry:

George is indeed correct (Happy Holidays, George ! :santahat:).

However, care must be used when determining what FS scenery library Area layer in which one shall position the BGLComp-XML-type "Exclude Rectangle", or what alpha-numeric BGL filename is used ...relative to the BGL that places the 'replacement' or 're-placed' Effect (either 'directly' via BGLComp-XML, or 'indirectly' via an AttachPoint on a MDL; otherwise that "Exclude Rectangle" may also exclude a 'replacement' or 're-placed' Effect too. :alert:


If you would be so kind as to indicate the Effect name we are discussing (via PM if preferred), and/or could attach a saved *.FLT file in a ZIP that positions the user aircraft adjacent to an example of such a marine light scenery object which displays the associated 'Effect' light in question, I could reply with more specific info and perhaps also 1 or more "worked example" of how one might 'place' the Effect in question.


You may recall that if a 'default flight' is used in FS, or if a saved flight is manually end-user-generated, such saved *.FLT files", are stored in:

C:\Users\[user account or profile name]\Documents\Flight Simulator X Files\


I just wanted to be more certain as to what scenario and scenery object type we are dealing with, since the terms "GUID", "attach" and "XML" have all been used above in your description of- and/or the placement of- ...the Effect 'light' in question.


PS: An additional SDK reference pertinent to BGLComp-XML placement of Effects is here: :idea:

https://msdn.microsoft.com/en-us/library/cc526969.aspx#Step1CreateanXMLFile


Hope this helps ! :)

GaryGB
 
Last edited:
Messages
310
Country
us-washington
Hi Gary,

Using your example to find my silly typos, I managed to do what I want but far more generally.

I had forgotten how the lights worked; the effects not attached to objects don't use GUIDs. It's been a while since I played with this.

Here's an example that will place a light effect, one line for each effect:

<SceneryObject lat="51.5" lon="-127.99" alt="9.00M" altitudeIsAgl="TRUE" pitch="0.0" bank="0.0" heading="0.00" imageComplexity="NORMAL"> <Effect effectName="fx_my_test_effect" effectParams="DAWN=1;DUSK=1"/> </SceneryObject>

This line is generated from a spreadsheet with rows for each light.

And this line will exclude a single light

<ExclusionRectangle latitudeMinimum="49.11675" latitudeMaximum="49.21675" longitudeMinimum="-123.980972222222" longitudeMaximum="-123.880972222222" excludeAllObjects="FALSE" excludeEffectObjects="TRUE"/>

This line also is generated from a copy of the spreadsheet where the max and min lat and lon are computed from the lat lon of the light I want to exclude. Getting the concatenation just right was a pain. Just tested it; it works! This means I can exclude as many lights as I wish by adding more lines to the spreadsheet; just fill in the lat lon of the light.

I would assume that once I exclude the light, I can then replace it in another file using the pattern above and that part is simple -- copy and paste. I'll have to check the alpha numeric file naming if that's an issue.

These light adjustments have been something I've wanted to do for a long time, but never really tried to figure out how to do it easily.

Larry
 
Messages
7,450
Country
us-illinois
http://www.fsdeveloper.com/forum/th...not-attached-to-an-object.436042/#post-731150

I would assume that once I exclude the light, I can then replace it in another file using the pattern above and that part is simple -- copy and paste. I'll have to check the alpha numeric file naming if that's an issue.

These light adjustments have been something I've wanted to do for a long time, but never really tried to figure out how to do it easily.

Larry

AFAIK, alpha numeric file naming is an issue only when a "Exclude" BGL is included in the same folder (and therefore in the same FS scenery library Area layer) as that containing the BGLs which place the original and 'replacement' or 're-placed' Effects (and IIRC, regardless of whether that Effect is placed 'directly' via BGLComp-XML, or 'indirectly' via an AttachPoint on a MDL).


Hope this helps a bit more ! :)

GaryGB
 
Top