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

[Debugging] Roll20 API emulation for offline debugging

As awesome as the Roll20 API is, coding in the web UI is cumbersome and quite annoying. I've taken to doing my work locally and testing using Node.js. This poses a few challenges, since the underlying Roll20 API isn't available. To work around this, I've stubbed out some of the API into a simple to load library. Now I just need to include this script (and the Underscore.js library) while working locally and can test my scripts before uploading to my Campaign. Hope this is useful for others or starts a conversation about how you do your development and debugging! <a href="https://gist.github.com/goblinHordes/67628467854bd" rel="nofollow">https://gist.github.com/goblinHordes/67628467854bd</a>...
Neat idea! Yeah, the "coding editor" for the API was never really meant to be something people used to write some of the massive 1,000 line scripts people are writing now. I definitely recommend working locally and using a version control system like Git to make sure you don't lose work in that case. So good idea on making a tool to make that easier to at least spot simple syntax errors.