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

Please help

I have a problem. I am starting a session in 30 minutes and my campaign is broken. The API is caught in an infinite loop. Even if I copy the campaign and start a brand new script it is still caught in an 'inifinite loop' Any Dev's able to look at my campaign? Campaign name is : Pathfinder using the 'Forgotten Realms Campaign Setting' Thanks
All good. State object has reset and it has restored itself.
Nope. Still broken.. Unexpected identifier & infinite loop keep occuring.
This is weird.... Now it is all working. Meh... I wish I knew what it was that caused it.
1386871713

Edited 1386871728
Gauss
Forum Champion
Moved to the API forum. Is this still an issue?
1386871857

Edited 1386871887
Riley D.
Roll20 Team
If the state object is having to reset itself and then an infinite loop is occurring, it's probably not a bug, you may have a race condition or something else bad happening in your code.
Thanks Riley. I am trying to figure it out... We got through our session last night. The code was working without a glitch the day before. It must have been something that I changed and now I have the task of tracking it down.
Some feedback for the devs... I created a brand new campaign without changing any of my scripts. Instantly everything is working perfectly. I think my campaign was too large for it to cope (maybe there were some corrupted tokens/images or handouts? I am not sure. I have transmogrified a limited number of characters & maps across from the old campaign and all is well. I noticed that I was experiencing a great deal of lag and the API was becoming very slow to respond in my old campaign. In future I will keep my campaigns more compact or maybe split them into seperate modules (multiple campaigns).