PDA

View Full Version : Working with Ambient Light - Custom Presets?



obiter
August 2nd, 2025, 14:51
I have ambient light conditions set for sun elevation (3 Bands), and set/rise, 3 for twilight, night, and 9 for moon phases and elevation. I cannot find a way to customize the presets so I can quicky adjust the outdoor map.

Is it just best to have a table of the settings and cut and paste on each map as I go (which is extremely tedious), or is there a sneakly fix I am missing.

Any help or suggestions would be greatly appreciated.

pindercarl
August 2nd, 2025, 16:14
The ambient light presets are defined in the ruleset. You can redefine these using an extension. Unzip the attached file into your extensions folder: ../Fantasy Grounds/extensions/ and open the file extension.xml in a plain text editor. You'll see a new ambient preset has been added to the bottom of the list. You can use this to add your ambient light presets. Extensions can be loaded from folders, so just make sure that the .zip file is not in the extensions folder with the extension. This is extension overwrites the existing ambient presets, so I have included them in the extension. If you don't want the default ambient light presets, just delete these from the list.

When loading your campaign, be sure to include the Custom Ambient Lights extension.

obiter
August 3rd, 2025, 23:04
Brilliant, thanks! All of the presets appear as "Lighting preset" in the drop down menu rather than the key "name". Is there a way to have the names of the ambient light preset in the drop down menu?

pindercarl
August 3rd, 2025, 23:45
Brilliant, thanks! All of the presets appear as "Lighting preset" in the drop down menu rather than the key "name". Is there a way to have the names of the ambient light preset in the drop down menu?

<ambientpreset key="customambientlight" name="Custom Ambient Light" color="ff00ff00" shadowcolor="ffff0000" shadowangle="45" shadowlength="3" />

The key should be a unique string identifier that is used by the API to reference the preset. The name displayed is specified with name="Your Name Here." Make sure you are using name and not nameres. The built-in presets point to a name resource, which is a little different. If you use name, you should be okay.

obiter
August 4th, 2025, 08:02
Thanks again. Completed and working.