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

New Pro subscriber; one game supports the API, another one doesn't?

Just subscribed to Pro. I made a new test game to try out some API scripts, but I can't make it do anything. I've added a few different scripts, tried different !-commands, nothing ever happens; no command output in the VTT's chat window and no script effects taking place. No output on the script consoles in the game settings either. Slightly baffled, I added a script to my existing game instead and... it worked first time. What could be wrong, here, to cause this? Something I've done or a server-side thing?
1579461374

Edited 1579461394
Nicholas
Roll20 Team
Heya Richard G. -  We're excited to have you as part of our Pro community! If you haven't already, I would highly recommend reading up on some of our API documentation here . Also, we have some absolutely amazinggggg community scripters who frequent our API Forum - they are always a great go-to if you need anything API related! :) For the issue at hand, have you already tried to restart your API Sandbox for that game perchance? If so, what were the results?
I have, yes - not only does the Restart Sandbox button not fix it, it doesn't do anything. I don't even get any output on the console log below it. In the game where API scripting works, I see initialisation output there from the scripts. I also tried disabling all the scripts I have loaded in, in case it was one problem script that was breaking it. That didn't work either.
Hey Richard G. - Hmmm, very strange. Would you mind providing me with the exact name or a link to the game in which this is occurring, please? We appreciate your patience as we work through this!
Sure! Thanks Nicholas. My normal game, where it all works fine, is&nbsp; <a href="https://app.roll20.net/campaigns/details/3429864/beardyrun" rel="nofollow">https://app.roll20.net/campaigns/details/3429864/beardyrun</a> My test game, where the API seems broken, is&nbsp; <a href="https://app.roll20.net/campaigns/details/5694688/test-game" rel="nofollow">https://app.roll20.net/campaigns/details/5694688/test-game</a> &nbsp;
Hi Richard G. -&nbsp; Thanks for providing that info! It seems like the API crashed in that particular provided test game - were working on a fix for that issue. In the meantime, as a workaround, I went ahead and copied that test game, reinstalled your API scripts, and they now seem to be working. Would you mind testing the scripts in that same copied game and letting me know the results, please? Here is the link to the copied game:&nbsp; <a href="https://app.roll20.net/campaigns/details/5722761/test-game-copy" rel="nofollow">https://app.roll20.net/campaigns/details/5722761/test-game-copy</a> .
Ah, yes, that's now working fine. Thanks for your help!
Hmmm. It's broken again, and this time it's on my main game, not a little test one. This game has tons of stuff in it I rely on. And I have a game coming up this week, eep! Here's the game: &nbsp; <a href="https://app.roll20.net/campaigns/details/3429864/beardyrun" rel="nofollow">https://app.roll20.net/campaigns/details/3429864/beardyrun</a> While experimenting, I added two scripts from the one-click library; GroupCheck and GroupInitative. This seemed to put the game into the same state as my test one: &nbsp;no API calls work any more, and no output appears on the console in the game settings. I deleted those scripts again (not just disabled), and nothing changed, it's still broken. Any ideas? Do I need to clone the whole game now? Will that cause any issues.
Heya&nbsp;Richard G. - Unfortunately, we've been having some general problems with the API due to our servers, but they should be fixed now. However, the API for some games might have gotten "stuck" during that whole process. To fix, I went ahead and made a full copy of your game and reinstalled those scripts; they seem to be working on the copied game now. Would you mind testing it on your end and letting me know the results, please? Apologies for the trouble; we really appreciate your patience as we work through this!
Thanks Nicholas. That does seem to work. Actually, my old game also now has working API scripts too so&nbsp; ¯\ _(ツ)_/¯&nbsp;