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

Can't add CashMaster

Whenever I try to add the API script CashMaster, I keep getting this error:  TypeError: Cannot set property 'Sheet' of undefined TypeError: Cannot set property 'Sheet' of undefined at apiscript.js:4023:26 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 checkForReady (/home/node/d20-api-server/api.js:1452:12) at /home/node/d20-api-server/api.js:1532:9 at c (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:14:64) 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) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) Sadly the original thread has been shut down. What is the best course of action if I want to use this script?  Thanks in advance!
1588798866
The Aaron
Roll20 Production Team
API Scripter
If you add this at line 30: state.CashMaster = state.CashMaster || {}; Right before the line that starts with state.CasheMaster.Sheet, it should fix it.
1588803724

Edited 1588804122
Absolutely! Thank you very much!  Edit: Well, it seems the script loads now, but I can't seem to set it up as nothing happens when I try to use  !cm -menu Just gives me a blank "from CashMaster" message.
What version of CM are you using Pascal?
1588841613

Edited 1588844801
Ravenknight said: What version of CM are you using Pascal? Version 0.10.0 Copied straight from github :)
Pascal L. said: Ravenknight said: What version of CM are you using Pascal? Version 0.10.0 Copied straight from github :) Try version 0.9.1 instead and see if that works for you. There were some issues with 0.10.0 that never got resolved.
1588858645

Edited 1588860413
Ravenknight said: Pascal L. said: Ravenknight said: What version of CM are you using Pascal? Version 0.10.0 Copied straight from github :) Try version 0.9.1 instead and see if that works for you. There were some issues with 0.10.0 that never got resolved. Alright, gonna try that now :) Thanks Edit: Yay! that worked perfectly
Yay!