Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Dynamic Lighting Tool issue

Hello, I wasn't sure where exactly to share an issue since the mod post was closed by the time I installed and started playing around with this. <a href="https://app.roll20.net/forum/post/11316788/script-dltool-a-dynamic-lighting-control-panel-and-troubleshooter/?pagenum=2#newtopic" rel="nofollow">https://app.roll20.net/forum/post/11316788/script-dltool-a-dynamic-lighting-control-panel-and-troubleshooter/?pagenum=2#newtopic</a> My issue seen in here is a similar issue I have seen before with similar tools. The bright light and dim light emitted from a token using this tool fully overlap. I believe this is more of an issue with roll20 programing light in dynamic lighting. In short: if a torch has 20 ft bright light and 20 ft dim light, the token needs the bright light emitted 20 ft and the dim light emitted 40 ft. Both lights originate from the token center and bright light isn't simply added after any dim light ends. Everything else so far has been fantastic and I already have my own script with token mod to set lights, but I liked this menu so wanted to make sure anyone else using it could get the dim light to set correctly. oh, my light source script is here:&nbsp; !token-mod --set ?{Light|On, emits_bright_light#on emits_low_light#on light_angle#360| Off, emits_bright_light#off emits_low_light#off light_angle#360| Candle, emits_bright_light#on emits_low_light#on bright_light_distance#5 low_light_distance#10 light_angle#360| Lamp, emits_bright_light#on emits_low_light#on bright_light_distance#15 low_light_distance#45 light_angle#360| Torch, emits_bright_light#on emits_low_light#on bright_light_distance#20 low_light_distance#40 light_angle#360| Lantern of revealing, emits_bright_light#on emits_low_light#on bright_light_distance#30 low_light_distance#60 light_angle#360| Hooded Lantern, emits_bright_light#on emits_low_light#on bright_light_distance#30 low_light_distance#60 light_angle#360| Lantern covered up, emits_bright_light#off emits_low_light#on bright_light_distance#0 low_light_distance#5 light_angle#360| Bullseye Lantern, emits_bright_light#on emits_low_light#on bright_light_distance#60 low_light_distance#120 light_angle#90| Light Cantrip, emits_bright_light#on emits_low_light#on bright_light_distance#20 low_light_distance#40 light_angle#360| Dancing Lights, emits_bright_light#off emits_low_light#on bright_light_distance#0 low_light_distance#10 light_angle#360| Daylight Spell, emits_bright_light#on emits_low_light#on bright_light_distance#60 low_light_distance#120 light_angle#360| Faerie Fire, emits_bright_light#off emits_low_light#on bright_light_distance#0 low_light_distance#10 light_angle#360| Gem of Brightness, emits_bright_light#on emits_low_light#on bright_light_distance#30 low_light_distance#60 light_angle#360| Crown of 4+ Stars, emits_bright_light#on emits_low_light#on bright_light_distance#30 low_light_distance#60 light_angle#360| Crown of 1-3 Stars, emits_bright_light#off emits_low_light#on bright_light_distance#0 low_light_distance#30 light_angle#360| Sunblade 10/10, emits_bright_light#on emits_low_light#on bright_light_distance#10 low_light_distance#20 light_angle#360| Sunblade (1st)15/15, emits_bright_light#on emits_low_light#on bright_light_distance#15 low_light_distance#30 light_angle#360| Sunblade 20/20, emits_bright_light#on emits_low_light#on bright_light_distance#20 low_light_distance#40 light_angle#360| Sunblade 25/25, emits_bright_light#on emits_low_light#on bright_light_distance#25 low_light_distance#50 light_angle#360| Sunblade 30/30, emits_bright_light#on emits_low_light#on bright_light_distance#30 low_light_distance#60 light_angle#360} I got it from Klaus and edited it for the dim light stuff and added a covered lantern option.
1707326650

Edited 1707328723
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Ryan! Script author Keith here. Can you give me specific repro steps? I placed a torch on the VTT, then duplicated it and set it with DLTool. I tried with both entering numerical values and using the torch preset. Both report 20 bright, 20 dim, and display a total of 40 feet of illumination. Here is the token mod macro the script produces: !token-mod --set emits_bright_light|on emits_low_light|on bright_light_distance|20 low_light_distance|20 has_directional_bright_light|off directional_bright_light_total|360 dim_light_opacity|0 Are you using the latest versions of Token-mod and DLTool from One Click install?
Upon reattempting this, the scripts seem to be correct now.&nbsp; I did refresh my Tokenmod yesterday after fiddling around with these, but I didn't for any issues after that since I was mostly looking for a way for players to turn lights on/off. I may have inadvertently fixed my issue with those updates, thanks for replying though. It is a fantastic tool that I look forward to using more. I took this snip just to show players how to use the tool before I realized it was DM only for editing settings. Glad I have at least something to show I am not crazy, but it seems to be working fine now on a fresh page. Even though it was frustrating at the time, the Tokenmod update that broke my lighting script temporarily for players did lead to discovering this, so I can't complain. My script works again after updating Tokenmod and now I can change lighting and vison all form one pretty UI.
1707346050
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Excellent! The design choice for DLToolis that it is primarily a GM Tool. It could potentially ruin too many scenarios if players had control. Instead, if a player issues the !dltool command, they get the "Why can't this token see?" feature, again without controls, so that they can communicate the most likely DL problem with the GM.