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 and API/ Macro Failure

1572430197

Edited 1572439320
Hey all, I had a complete game failure last night due to two issues: Dynamic Lighting and API.  I explain the issue below but thought it useful to explain my setup first.  The DL issue was the real problem.  I mentioned the API issue (now seemingly resolved) in case there is any connection. Setup:   I have recently added the Sunless Citadel Add-On (from Tales of the Yawning Portal).   For DL, the page settings were: Line of Sight, Update on Drop and Restrict Movement On.   Global Illumination On for Page 1 Off for Page 2.   Fog of War Off.   Each player  "Has Sight" Off initially. For API I had the  Group Initiative and  Torch scripts running. (Bonus Side Question:  Why would you use Fog of War if you are using DL?  DL seems to render FoW redundant? DL Issue: So on Page 1 (Fortress Top),  Players 1 and  2 could see nothing (correctly as Has Sight was off).  Player 3, however, could see everything, including stuff outside the dynamic light area, (because Global Illumination was On).  I double-checked and Has Sight was Off.  I turned it on and set the light source but this made no difference.   This was not a major issue on this page (except it made me nervous about moving Player 3 to Page 2, (Fortress Bottom).  I turned Has Sight on for the other Players and they could see what they should see. Things got really odd when I moved the players to Page 2.  Players 1 and  2 again could see what they were supposed to see (nothing initially and then the landing room when I gave them a light source).  Player 3, however, could now see nothing.   I checked again and Has Sight was on.  I set them to Emit Light.  I also set so it so that light was visible to all players.  I checked the Player had control of the Token.  All fine.  Moreover, Player 3 could move their token around the room (but not further) and their light source moved with them (and visibly changed for the other players).  Further still, when I opted to view from Player 3's perspective (Cntrl L) I could see what they were supposed to see.  Throughout, they could only see Black.  I've found no solution. API Issue: The Group Initiative and Torch commands (and associated Macros) suddenly stopped working (they had worked fine earlier in the day).  I checked they were set up ok, and it said they were.  However, I checked back this morning, and there was a message saying the API Scripts had been shut down as there was an infinite loop.  I restarted the Sandbox and all now working fine. I'm a Noob at running Roll20 (previously just used it as a dice roller).  This was my first proper game using the VTT and it was an epic fail.   Any help would be greatly appreciated.  Thanks for reading.
1572442271
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What browser was Player 3 using? It sounds like everything was working correctly for 1 & 2? How computer savvy is player 3? That level of the Sunless Citadel starts in the lower right, but most pages load on the upper left. Could they have just been zoomed in to a dark part? Did you try shift-pinging to drag #3 to the lit area? API should not have had anything to do with the API issue.
Hi Keith, thank you for the reply.  I don’t know what browser they were using (but will check) but they are pretty computer savvy.  They were definitely zoomed in on the correct area as they could see their token and move it within the room (but no further).
They were using Firefox.  Could that be the issue?
1572450289
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
No. Many users use Firefox. It might require hands-on investigation, as your setting seem to be fine from the description you gave. I just ran that module this summer, so it's unlikely to be anything involved with the general setup.
Thanks Keith. That’s very much appreciated.