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

I can't make dynamic light work anymore

Hi everyone, i've been using dynamic lightning for a while but for some reason i can't make it work anymore. I tried to import one of my Dungeon Alchemist maps and it made walls on its own but now it seems like i can't add new walls, doors, nothing. I mean, i can physicall draw the lines but they just don't work. I also tried to make very thick lines, rectangular lines.. everything. I tried to draw a circle around the torch.. it just doesn't work, i can see trough those lines. What am i doing wrong? The blue lines are those made by dungeon alchemist, the green line is the one i'm trying to add to create doors (The automatic door function doesn't work either).
1761229196
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Master! Does DL work again if you use a private/incognito browsing window? Specifically if you remove VTTES from the equation? You can also try  deleting cache and cookies ( Chrome  |  Firefox ), to ensure that the browser is not holding on to old data.
If i create a new map and draw the lines, it works. It just doesn't work in the map with the lines drawn pasting the txt in the chat.
1761234759
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It might come from mixing old style paths with pathv2s from Jumpgate, but I wouldn't have thought that would be an issue. I'll see if I can summon brighter minds.
Thank you. To give more infos, i saved from Dungeon Alchemist the map and it gave me both the jpg and the txt (Export for Roll20, Lights and VTT). I loaded the image on roll 20 and it automatically resized it correctly. I pasted in the chat the txt and i receved the "succesful...." message. I went to the dynamic lightning layer and i saw 2 different lines, the blue lines were the rooms and the cave, those lines were working. The green lines were doors, those automatic doors lockable and unlockable from roll 20. I noticed that the doors were letting the light pass through, so i tried to remove one and replace it with regular lines, rectangulars, shapes, new doors, etc and it wasn't working, so i tried to draw a circle around the torch and the circle wasn't working as well. So basically everything i try to do in that map (Related to the dynamic lightning) it's not working. The only thing that works are the original lines drawn by pasting the txt. I did try, as suggested, to log in with an incognito tab and it wasn't working, as well as deleting cache and cookies. Thank you.
Hey Master,  I'm QA for the VTTeam. Would you mind DMing the name of your game and the name of the map where you're running into this issue? I'm not able to reproduce with one of my Dungeon Alchemist maps. If it's fine with you, then I could poke around in your game (or make a copy of it) and see if there's a simple fix.
Sure
As far as I can tell, this seems to be a performance issue caused by a very large map with a huge number of lighting lines, however if the issue persists after reducing the size or scale of the map, please let me know and I can dig in deeper.
1761324839
Gauss
Forum Champion
Master,  If you need help with the reducing the size or scale of the map part of Hales's recommendation please let me know. 
I've run into this many times, and often the performance problems don't become evident until several players log on at the same time. I try to keep my maps less than 100 grid squares in any dimension and keep individual light sources to a minimum. Use simple polylines instead of curves and do not under any circumstances use the freehand tool for creating light barriers. For areas that have many light sources, like a room with lights lining the walls, I'll place one "real" central  light source on the lighting layer that illuminates the whole area while the visible lights, lanterns, torches, etc. are just stage dressings. Also, I've broken up large maps into smaller ones; this can get cumbersome when the players split the party, but that gets easier with practice. Dynamic lighting uses up a lot of resources, and even having a device with a high-end graphics processor doesn't help if the browser, site or network can't handle the load. Hales [] said: As far as I can tell, this seems to be a performance issue caused by a very large map with a huge number of lighting lines, however if the issue persists after reducing the size or scale of the map, please let me know and I can dig in deeper.
Thank you everyone for replying. I'll split the map, no problems with that. 
Hales [] said: ... this seems to be a performance issue caused by a very large map with a huge number of lighting lines, ... Hales, is there any guidance as to what counts as a sensibly-sized map (or maximum number of lighting lines) that the lighting system will support without issues? Thanks, Jim
1761418090

Edited 1761425090
Gauss
Forum Champion
Jim R. said: Hales [] said: ... this seems to be a performance issue caused by a very large map with a huge number of lighting lines, ... Hales, is there any guidance as to what counts as a sensibly-sized map (or maximum number of lighting lines) that the lighting system will support without issues? Thanks, Jim Unfortunately there is no hard and fast rule here because different groups have different levels of hardware.  One of my Saturday group uses a tablet that cannot handle Dynamic Lighting at all. So we don't use it.  Other groups have players that can handle Dynamic Lighting, but not Explorer Mode. Etc.  The general advice I stick with:  No Dynamic Lighting: 100x100 is fine (maybe even larger) Dynamic Lighting with NPCs with Vision turned OFF, a moderate amount of light sources. 75x75 is probably fine.  Dynamic Lighting with a lot of light sources, NPCs with vision, and/or Explorer Mode, keep it under 50x50.  But even then you will need to check with your players to see if it runs ok on their hardware.  Also, the map image itself will make a difference. Large high quality  high resolution maps add a lot of overhead. Use smaller sections (15x15 to 20x20 grid sections assuming between 70 to 140pixels per grid square).  Then add a poor quality  low resolution large map underneath the sections so that the players have something to see while the smaller sections load and to act as a thumbnail in the Page Toolbar. (fixed as per Keith's comments)
1761422306
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Gauss gives some good rules of thumb. I follow similar rules of thumb. The only adjustment I would make is in the last paragraph, substitute "low resolution" for "poor quality". And like seriously low resolution. 200px by 200px total is probably enough for this purpose.