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

Powercards not outputting to chat window all of a sudden

I've been developing Powercard script in macros for a couple of weeks now, with no issues.  In the middle of an editing session tonight, I was testing my PC macros, and they would fire off, but won't output to the chat window.  I've tried other macros without PC script and they work fine. Why did the scripting for Powercards suddenly stop working??
1683595219
Gauss
Forum Champion
Hi Alan A.,  I suggest relocating this thread to the Mods (API Scripts) forum. It might get a more rapid response from folks knowledgeable about API scripts. 
1683597090
David M.
Pro
API Scripter
Curious how you know the PC macro fired off if there is no chat output? Have you checked if your sandbox has stopped/crashed? Also, if you've only been using powercards for a couple weeks, I'd recommend transitioning to Scriptcards rather than diving deeper into PC. SC has way more functionality and a more active userbase.
David M.: There was a modifier request in the macro, and the dialog window popped up when the macro was initiated.  However, there was no output in the chat. I want to use Scriptcards, but I'm stuck because I'm designing macros for someone else's campaign that I'm a player in.
1683668850
David M.
Pro
API Scripter
All queries get processed by the parser  before the msg is lobbed over the fence to mod scripts. So, even though you see a query prompt, that doesn't mean that the script is actually running. I would definitely double-check if the sandbox is still running. In another browser window, go to your game page (outside the vtt), --> Settings -->Mod (API) scripts. If you see a big pink bar underneath your installed scripts, you'll need to restart the sandbox.
Damn, that did it.  Thanks for your help.   One question though...why does this happen?  I'm afraid to create a bunch of macros with Powercard scripting in my friends campaign, only to have the sandbox bork on me there.
1683675124
David M.
Pro
API Scripter
The sandbox can crash or become inactive because of: improper or incomplete error handling by script writers unintended interactions between user-written scripts keeping a game session open for a long time without any vtt interaction (sandbox goes dormant) a butterfly flaps its wings 6yrs ago in Cambodia (inexplicable sandbox non-responsiveness with no error message is not as uncommon as you'd hope) I usually keep another browser tab open to the sandbox page to have the restart button readily available. You might also be interested in the API Heartbeat script written by TheAaron (available for 1-click install). It gives a handy little animation on your macrobar that tells you if the sandbox is still running.
Brilliant!  Thanks again for your help.