aaron h. said: i tried installing this script via one click and also via raw. neither way allowed the script to start up without giving an error about save undefined. anyone else seen this issue, or am i maybe missing a prereq? i have all of these installed: HTML Builder, Matrix Math, Path Math, Vector Math & splitArgs. any help would be greatly appreciated. here is the error in full: TypeError: Cannot read property 'saved' of undefined
TypeError: Cannot read property 'saved' of undefined
at getEffectNamePrompt (apiscript.js:10079:44)
at apiscript.js:10235:65
at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)
at _updateShortcutMacros (apiscript.js:10229:7)
at apiscript.js:10286:5
at eval (eval at (/home/node/d20-api-server/api.js:144:34), :65:16)
at Object.publish (eval at (/home/node/d20-api-server/api.js:144:34), :70:8)
at checkForReady (/home/node/d20-api-server/api.js:1205:12)
at /home/node/d20-api-server/api.js:1284:9
at c (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:14:64) i also have the following scripts installed: tokenmod, trackerjacker, 5th ed. ogl companion, pagefx, mark, chatsetattr, shell, groupinit. i have tried deleting the scripts and readding them ( i believe i added splitargs after 1st installation so just troubleshooting ). no love.... here is the api sandbox output: Spinning up new sandbox... "-=> TokenMod v0.8.23 <=- [Thu Nov 10 2016 19:21:57 GMT+0000 (UTC)]" TypeError: Cannot read property 'saved' of undefined TypeError: Cannot read property 'saved' of undefined at getEffectNamePrompt (apiscript.js:10079:44) at apiscript.js:10235:65 at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9) at _updateShortcutMacros (apiscript.js:10229:7) at apiscript.js:10286:5 at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:70:8) at checkForReady (/home/node/d20-api-server/api.js:1205:12) at /home/node/d20-api-server/api.js:1284:9 at c (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:14:64) I wasn't getting this error with an upgraded copy of the script, but in a fresh new game, I was immediately able to reproduce your error. I'll look into fixing that soon. For now follow the steps for this work-around: 1. Disable the AreasOfEffect script. 2. Create a script with the following contents: _.defaults(state, {
AreasOfEffect: {}
});
_.defaults(state.AreasOfEffect, {
saved: {}
}); 3. Re-enable the AreasOfEffect script.