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

Statusinfo script

I'm having issues getting this script to work. I had it up and running but when I began our game yesterday, somehow it broke and stopped working. I went into the API Script and this is what it says, " Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.   More info...   If this script was installed from the Mod Library, you might find help in the Community API Forum. For reference, the error message generated was:  Possible infinite loop detected, shutting down." I deleted out all of my scripts except for Token Action. I then went out, came back in, reloaded the StatusInfo script, went back into the game and deleted the old macro and created a new Status macro and it still didn't work. Went out of the game and back into the API Scripts and didn't have any error message anymore. Restarted the script sandbox, everything seemed to load just fine, went back into the game and tried again and nothing. The box comes up in the game when I hit the "status" button, and it let's me choose a status, but then nothing happens. No message in the chat box, no status appears on the token selected. If anyone has any ideas, I'm all ears. Thanks for the help!
I have noticed an uptake in the number of occurrences of this error, across a variety of my and other peoples games. The roll20 implementation of loop detection seems to be spuriously triggered by: - the transition from an inactive game to an active game (player joining) - some unexpected wait time that is infrastructure related (slowness/timeout of firebase connection or firebase connection pool?) - load on the sandbox server (???) which means each sandbox gets a smaller slice of CPU and thus takes longer to execute, pushing the execution time over a certain threshold. It would be very beneficial if a developer explains how this works and how MOD scripters can prevent this error.
Personally i do not use StatusInfo, but i have looked at the code (less than 800 lines) and do not see any loop that should cause this the possible inifinite loop error. If it does i would love to know where it is - might fix some of my own scripts.
Thanks Martin. I fixed it yesterday but now the infinite loop error is back today. Not sure what to do at this point.
Well shoot, was really hoping to get this fixed before today's game. Anyone able to help?
It's a known widespread issue (separate from any specific script) that the devs are investigating. <a href="https://app.roll20.net/forum/permalink/11392717/" rel="nofollow">https://app.roll20.net/forum/permalink/11392717/</a>
Thanks Jarren!
It seems as though the infinite loop error isn't happening anymore, however, I still can't get this script to work. I reinstalled it and restarted the sandbox but when I get in game, the status window pops up when I click on the "Status" macro, however, nothing happens when I choose a status. Any help is greatly appreciated.