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

Just a quick question about the Radar API and fog of war setting.

I've installed the Radar API by David M, and it I amazing.  I have two campaigns of CoS running right now, one of which uses UDL, the other (due to vision issues with one player) uses old school Fog of War. Radar works flawlessly in the UDL enabled game, but in Fog of War it isn't stopped by the dynamic lighting layer (which kinda makes sense).  My questions: is Radar only available for UDL? And, is there a way to trick the API to work for Fog of War settings?
At the very bottom of the dynamic lighting tabs on page and token, there is a hidden section that you have to expand that turns on the old dynamic lighting system, which I use for EVERYTHING and have radar installed with it.  It works perfectly and runs on very old dated machines well also.  I've never had a player have issues with LDL.  There are 2 things you can do to mirror the explorer mode of UDL in LDL.  Either use "Advanced Fog of War" or use breadcrumb light tokens(I use breadcrumbs for many things besides memory of where they've been.  Advanced fog of war will cause a 1-5 second delay on token drops depending on each players pc's strength fyi.  
1644927762

Edited 1644927910
David M.
Pro
API Scripter
Radar is not dependent on UDL (I still use LDL in my games), but it does currently require that dynamic lighting is enabled on the page. This was a safety check to avoid crashes if the api attempted to get the paths on the DL layer for games hosted by Free accounts. In hindsight, I never actually tested if that would be a problem or not. I was just being cautious.  In the meantime, you could eliminate that check by manually installing and changing line 2021 from this if ( losBlocks && pageDL ) { to this:  if (losBlocks) { That should allow the LoS code block to run even if your dynamic lighting system of choice was disabled for that page.
Thank you both for your quick replies!  Editing the line worked perfectly. And I should have been more specific, I'm not using LDL on my game with the visually challenged player, I'm using the Free account option (we started with UDL, but it did not work out for this player, and as I have been married to them for 20+ years, it seemed only fair to accommodate their needs). My other instance of the game uses UDL, as that group is significantly younger, and adapts to the features I add a bit more readily. Thank you again!