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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Bug in CombatMaster? TypeError: Cannot read property 'get' of undefined

Hi all,  Thanks for this great API. I am receiving an error that stops the API. It seems related to CombatMaster and tokens that have no association to players or NPC, appering in the initiative turn order, but I am not sure if this is the only case. I don´t have a Minimal Working Example yet, but here is the error. "Get or Create Marker" "Check Marker Turn" "Get or Create Marker" TypeError: Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined     at announcePlayer (apiscript.js:7352:41)     at doTurnorderChange (apiscript.js:7060:13)     at handleTurnorderChange (apiscript.js:7098:13)     at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16)     at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8)     at TrackedObj.set (/home/node/d20-api-server/api.js:1047:14)     at updateLocalCache (/home/node/d20-api-server/api.js:1345:18)     at /home/node/d20-api-server/api.js:1635:7     at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560     at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
1601337813
Victor B.
Pro
Sheet Author
API Scripter
Did you use a custom token marker?  If so, that's the issue.  Revert to the default one.  At some point I'll remove the option for a custom one.  Roll20 is a bit tricky in how it deals with images and everyone trying to use custom token marker icons ends up getting this error.