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)

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. 
1637127541
Victor B.
Pro
Sheet Author
API Scripter
get the latest from my repo&nbsp; <a href="https://github.com/vicberg/CombatMaster" rel="nofollow">https://github.com/vicberg/CombatMaster</a>. &nbsp; This issue has been fixed.&nbsp; One step is messed up.&nbsp;&nbsp;
Thanks, I'll give it a go!
Hrmm...still running into API crashes. I try to end combat with the CM Menu in the chat, and it crashes the API.&nbsp;
1637208148
Victor B.
Pro
Sheet Author
API Scripter
New version Bug in Roll20;..<a href="https://github.com/vicberg/CombatMaster" rel="nofollow">https://github.com/vicberg/CombatMaster</a>
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&nbsp; For reference, the error message generated was:&nbsp; 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)
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.
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.&nbsp; More info... &nbsp;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:&nbsp; TypeError: Cannot read property 'pr' of null TypeError: Cannot read property 'pr' of null at apiscript.js:2086:56 at Array.sort (&lt;anonymous&gt;) 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 &lt;anonymous&gt; (/home/node/d20-api-server/api.js:168:1), &lt;anonymous&gt;:65:16)
@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?