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 think I broke the API script console

Last night, I was just starting to play around with the API. I made two small scripts that worked fine. But when I made some changes to them, the script console did not give me the normal "loading sandbox..." message. Instead, it just say "1" (or lowercase L, maybe). I removed the script, but the console remains broken. This is on a copy of a campaign, so I have no concern with dumping it all and starting again. But I am more interested in what I did that caused the problem. I don't know what information you need in order to take a look at it. Let me know and I'll get you the links.  Thanks for your help and for creating this product. It's great.
1374241878
Alex L.
Pro
Sheet Author
It would help to see the scripts.
Hmm...what happens when you just put a simple script in like log("Hello!") and click "Save" while you are in the campaign in another tab?
OK. Here is my script after I tried to disable it and comment out the lines doing the work: &lt;script src="<a href="https://gist.github.com/anonymous/aa7ffc0d1aa8b86e31fb.js&quot;&gt;&lt;/script" rel="nofollow">https://gist.github.com/anonymous/aa7ffc0d1aa8b86e31fb.js"&gt;&lt;/script</a>&gt; My idea was to make it look like torches were flickering by randomly modifying their light radii within bounds. I realize that once per second is likely too much, but that was the idea. Whenever I go to the campaign, now all my tokens look like they're emitting light, even if they weren't before and are not named "torch". And there are no scripts running now, supposedly, because I deleted it. The console still shows the basically blank output. Here's a screenshot. I think the script has gone rogue. I just want to kill it... kill it with fire.
Hahaha. You could make a copy of the Campaign with Copy/Extend Campaign. It doesn't transfer over any API data, so you would start from scratch script-wise. Might be the easiest thing to do.
I actually made a completely new campaign, but my output console looks the same. If they are in completely different sandboxes, then I fear that I have broken reality.
Well, I'm not sure what you guys did, but the console is working again. And, as an aside, I was also able to get my script to work properly. Thank you for looking into it.&nbsp;
Aaron G. said: Well, I'm not sure what you guys did, but the console is working again. And, as an aside, I was also able to get my script to work properly. Thank you for looking into it.&nbsp; No problem!