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

Reviving the Dynamic Light Recorder Script

I know some users have been looking into this about a year ago, but I can't find any active threads. I had this working a month or so ago. It's very possible when my game switched completely over to UDL its what broke this. I have a labyrinth with moving walls (walls that pop out of the ground) and deleting/redrawing lighting lines is tedious when this allowed me to drop a token out and it works. DLR 'works' as long as i drop the token out, but crashes my api the second i rotate the token, I'd prefer to use a single wall token, but if need be I can  create a 4-direction tokens and use those, but something simpler is better for me. The error I get is as follows. Error: Firebase.set failed: First argument contains NaN in property 'width'     at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:186)     at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207)     at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462)     at J.set (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:98)     at createObj (/home/node/d20-api-server/api.js:2862:26)     at Object.draw (apiscript.js:2436:28)     at apiscript.js:1632:33     at Function.map (/home/node/d20-api-server/node_modules/underscore/underscore-node-f.cjs:1342:22)     at updateDLPaths (apiscript.js:1631:47)     at Object.onChange (apiscript.js:1775:25) In the meantime I'll try the 4-token solution, since my players might be getting to this point Sunday. But having this functionality working in the future would be a huge boon, especially if/when my players get spells that create walls, 
An update for this MOD would be very useful. I've tried using it in my game and it's behavior is just too inconsistent to be useful. I wanted to use it on tokens for Darkness spells and for D&D 5e's Dearns' Instant Fortress.
1724518221
The Aaron
Roll20 Production Team
API Scripter
Are you using Jumpgate?  Jumpgate's Path objects are incompatible with prior path objects.  For one thing, they don't have a Width property, so reading it will get undefined, and doing any math on it will result in NaN.  I'm working on support for Jumpgate paths right now.
The Aaron said: Are you using Jumpgate?  Jumpgate's Path objects are incompatible with prior path objects.  For one thing, they don't have a Width property, so reading it will get undefined, and doing any math on it will result in NaN.  I'm working on support for Jumpgate paths right now. I do not use Jumpgate, I am however using the "new" UDL.