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

API Sandbox crashes frequently

Greetings eFriends! I've been dealing with this issue for long enough; it's time to figure it out. I have two campaigns that use the same variety of scripts. During the sessions for each campaign, the API sandbox frequently crashes. I restart it, and it's good for a bit but...inevitably crashes again. I believe it's related to "combat" (turn order) based scripts. Unfortunately I lack the expertise to troubleshoot this issue. I've also tried to recreate the error on my own by simulating combat, but I can't. It only seems to occur during sessions with my players. Here is a screenshot of the crash. Any help would be greatly appreciated.
1596759908
The Aaron
Forum Champion
API Scripter
The issue is in CombatMaster.  Line 1943.   announcePlayer = function (tokenObj, prev, delay=false, show) { if (debug) { log('Announce Player') } let name = tokenObj.get('name'); // <-- Line 1943 let imgurl = tokenObj.get('imgsrc'); If you add this code in, it will prevent it: announcePlayer = function (tokenObj, prev, delay=false, show) { if (debug) { log('Announce Player') }     if(!tokenObj){ return; } let name = tokenObj.get('name'); let imgurl = tokenObj.get('imgsrc');
What version of Combat Master does that refer to? I am using the one in the Script Library.  I grabbed Combat Master v2.30 and found that line to occur on Line 2323. I added it, and now the sandbox won't start at all.
1596761873
The Aaron
Forum Champion
API Scripter
Ah.  I was looking at 2.0.  2.22 has it on line 2268. Do you get an error?
1596766231
Victor B.
Pro
Sheet Author
API Scripter
I incorporated the change into CombatMaster.&nbsp; The one click won't be updated until next week.&nbsp; You can find it here&nbsp; <a href="https://github.com/vicberg/CombatMaster" rel="nofollow">https://github.com/vicberg/CombatMaster</a> &nbsp;and copy into your game.&nbsp;&nbsp;