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

Your development process?

I'm just getting started with Roll20 (been subscribing for awhile but haven't had the time), and I'm diving into the API. I'm fairly fluent with JavaScript (BackboneJS and UnderscoreJS) but when the development environment gets in the way I become a little sad. What is the process you go through when building a script? Do you use an external editor, constantly copy/paste then test your campaign? The annoying bit for me is the constant "exit campaign", edit, save, relaunch campaign flow that I'm forced to go through just to test something. Also, if you have log statements during an event, how do you see them? Are you running the campaign and editor at the same time (different windows)? If so, what happens when you save a script?
Chris, If you're just doing simple testing, you can probably just type in the editor. When you really get going and are building a large library, you'll probably want to use an external editor. I recommend keeping two tabs open, one with your game, and one with the API editor for the campaign. Or, if you have two monitors, keep two windows open, one on each monitor. Note that you don't have to exit the campaign. When you click Save Changes, it re-starts the API sandbox for your campaign and any changes you've made take effect immediately. So basically, you can just paste in the changes, click "Save", and then see your changes reflected in the other tab immediately. The log statements will show up in the console below the edit box. Again this is where having two tabs open at once is helpful.