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

checklightlevel

I've been getting an odd error out of the API recently Timmaugh's "Fetch" Mod has started to report that "checklightlevels" script is missing. I've reached out to Timmaugh to explore what this means  via PM - in the meantime however, has anyone any idea what "checklightlevels" is?  It does not appear to be an API in the on-click mod library so for the time being I have the "Fetch" Api disabled and that has fixed the problem.  I am just rather unsure how it got broken in the first place or how to fix it :-/
1671491536
David M.
Pro
API Scripter
Here is the forum link for that script. If you decide to manually install it, you can find the code to the script by clicking the "GitHub Repo" link in that thread. 
1671491560
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's a script by Oosh. Link . I thought that there was a "don't show me this again" button.
Thanks,  I copied the checklightlvels code from GitHub Repo as a new Script.  then re-activated "Fetch"  Now I ge this error instead. 
1671502168
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. Make sure when copying a script, you click the "Raw" button, and take everything from that page. It's the most foolproof way to make sure you aren't copying any garbage characters.
1671507259
timmaugh
Pro
API Scripter
Keith has the right of it... you probably copied too much extraneous stuff. @keith -- the "opt-out" button is coming, but not yet released. Too much crud in the house at present.
1671509248
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
timmaugh said: Too much crud in the house at present. Oof. Tell me about it.
1671514994

Edited 1671515005
//Click the Raw button// Okay I will give that a try.
keithcurtis said: Hmm. Make sure when copying a script, you click the "Raw" button, and take everything from that page. It's the most foolproof way to make sure you aren't copying any garbage characters. I just tried re-copying (CTRL+A) the Raw code for CheckLightLevel from Oosh from the GitHub.  I also installed the Pathmath mods as it said they were required.  All scripts running, re-activate "Fetch" and I now get this error.  Speaking to Timmaugh in PM he has said checklightlevel was incorporated into Fetch. Without check light levels I get the OP reporting error saying checklightlevels is needed. With the Raw Code and supporting mods implimented the new error there is a syntax error around a misplaced token reference. Something about how these mods are interacting isn't working  - and probably for a very simple reason - but I am not sure what that is and turn to the expertise is in the forum for understanding. 
1671518579
Oosh
Sheet Author
API Scripter
That there in the screenshot is the readme.md file - the script itself, you'll need to click on 'checkLightLevel.js' and then on the 'Raw' button on the github page. It should take you here .
Oosh said: That there in the screenshot is the readme.md file - the script itself, you'll need to click on 'checkLightLevel.js' and then on the 'Raw' button on the github page. It should take you here . Thanks Oosh - that seems to have fixed it.   I figured it was a simple error.  Do you please think the script could be added to the one click mod library so laymen like me don't make such elementary errors in future?  Thanks.
1671523032
Oosh
Sheet Author
API Scripter
Yep, I promised Tim I would do exactly that a couple of weeks ago. So, essentially, this is all entirely my fault. Maybe a little bit Tim's fault for not just pinching the script and submitting it as his own. catstealingpizza.gif