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

Adding spotlights

Messages
201
Hi Arno, hi everybody!
When i attach a spotlight, it creates the .fx in the model folder, then i move it in the effects folder, et voilà it works perfectly.
But the name of the fx is something like "fx_spotlightFFFFFF96_100_10_15_2_0_1.fx"
Can i rename it?
i do not see where in the MDL it links to THAT effect.
Thanks!
 
Hi,

You have to move them indeed.

If you rename them, you have to update the attachpoint in the mdl as well. But some MCX functionality relies on the naming.
 
i see. so i should put the .fx file name here?
(attachment)
sounds strange, that is the NAME... not the file... i'm confused
 

Attachments

  • Senza-titolo-1.jpg
    Senza-titolo-1.jpg
    69.1 KB · Views: 418
No, when they are light objects and not attachpoints you can't set their effect filename.

Only when you read back the mdl with the effects (and the option to convert back to lights off).
 
Thanks it worked.
The intensity seems to be related to the filename indeed. Not a big problem, i can adjust it inside the .fx
 
With only empirical evidence, it seems apparent that LM implemented spotlight functionality, through the effects generator, specifically via the effects name. I.e., if an effect has the required name parameters and the requisite file content sections, the effect renders as a spotlight. Experimentation has shown that these effects can be interchanged, more or less, however if you rewrite a P3Dv4 spotlight effect with the contents of a legacy effect that does not have the sections that relate to P3Dv4 spotlight effects, the spotlight parameters simply become part of the effect name and do not render as such. The converse is that there are no "standard" or default spotlight effects, every composition/compilation cycle requires a new batch to be written, which will all have to be distributed with any scenery; eventually the P3D flight sim world will be filled with effects for each and every possible combination of spotlight parameters.
 
Yes, but on the contrary if every developer saves his effect as spotlight.fx we also have a problem because the cone angles or colors can be different. So then we have more chances of conflicts between addons.

But I'm considering to add an option to overwrite the default name with a custom specified one. Of course to be used at own risk.
 
I think it is more risky the way it is nowadays. There is the possibility to overwrite other fx used by other addons, remote possibilitt, but there is.
 
I think it is more risky the way it is nowadays. There is the possibility to overwrite other fx used by other addons, remote possibilitt, but there is.
Why? Only effects with the same parameters get the same name. So no conflicts. Only when the developer tries different settings he needs to get track of the old ones and remove them.
 
Yes ok. But what if someone from aerosoft do an effect exactly like mine, and then you.... Oh wait, im an idiot.... It would be the same exact effect and every mdl will share it! Stupid me.
So as rk said, soon we will have the effects folder filled :D
 
True, it might create many files. But if every developer wants different parameters we need different files any way :)

The only problem I see is keeping track while testing different settings.

I'll add an option to specify your own name if you want, but the default will remain like it is now.
 
I changed the attachpoint name to something shorter specifying the object it was attached to.
The .fx file kept its original name and it still worked. And it also kept working when I modified the .fx name in the effects folder to the name I gave it in MCX(something which amazed me!?).
But I do have a number of undefined .fx files in the effects folder of which I am not sure any longer which objects they belong to :(.
See pic:
spotlights.jpg
 
Last edited:
Hi,

I have changed how the attached lights and spotlights work. You can now specify your own filename if you want, but by default it will use the auto generated name.

upload_2018-1-10_21-5-53.png


If you set UseAutoGeneratedName to false it will use the name from the CustomFileName property, see the example below.

upload_2018-1-10_21-6-38.png


I'll push a new build with this change in about an hour from now.
 
Back
Top