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 Crashing (Combat Master)

November 17 (3 years ago)
Hello,

I am running into issues trying to use Combat Master in one of my games. I keep running into several issues such as a NaN error in 'rotation', as well as  cannot read 'substring' of undefined, among others. I will post most recent error code below this post. Any help is appreciated. 
November 17 (3 years ago)


November 17 (3 years ago)
Victor B.
Pro
Sheet Author
API Scripter

get the latest from my repo https://github.com/vicberg/CombatMaster.  This issue has been fixed.  One step is messed up.  

November 17 (3 years ago)

Thanks, I'll give it a go!

November 17 (3 years ago)

Hrmm...still running into API crashes. I try to end combat with the CM Menu in the chat, and it crashes the API. 

November 18 (3 years ago)
Victor B.
Pro
Sheet Author
API Scripter

New version Bug in Roll20;..https://github.com/vicberg/CombatMaster

November 18 (3 years ago)

Hi all, i was wondering if you could help me with a similar issue, my campaigns seem to be crashing the sandbox during the stop and clear cycle of the turn tracker. I have not changed anything script wise 


For reference, the error message generated was: Error: Firebase.update failed: First argument contains NaN in property 'rotation' Error: Firebase.update failed: First argument contains NaN in property 'rotation' at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:186) at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207) at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462) at Ea (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:403) at J.update (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:318) at TrackedObj._doSave (/home/node/d20-api-server/api.js:905:27) at Timeout.later [as _onTimeout] (/home/node/d20-api-server/node_modules/underscore/underscore-umd.js:1153:39) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)

November 18 (3 years ago)

This is a known issue. It should be fixed in the next pull, or you can DL the fixed version, there is a link in the Combatmaster thread.

November 23 (3 years ago)
GM
Pro

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 Script Library, you might find help in the Community API Forum.

For reference, the error message generated was: TypeError: Cannot read property 'pr' of null TypeError: Cannot read property 'pr' of null at apiscript.js:2086:56 at Array.sort (<anonymous>) at sortTurnorder (apiscript.js:2085:19) at rollInitiative (apiscript.js:1670:13) at startCombat (apiscript.js:1521:17) at commandHandler (apiscript.js:309:17) at apiscript.js:166:25 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-umd.js:1330:9) at inputHandler (apiscript.js:161:23) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)

November 23 (3 years ago)
@GM looks like there is something amiss with the turn order, can you try to clear the turn order and then restart the API Sandbox?