Hey all, Not sure anyone is seeing this in game they already have where the script is working but new games the script is not running even with being bare bones and no other scripts. I was able to get the script to run once after it loaded dependencies by deleting the script and then reinstalling it however after that it shortly breaks again. I am wondering if this has something do with the Adv fog of war being added that its having an issue reading the template properties. Note I have an existing game and that seems to work fine, hasn't crashed yet. Here is the out put: ypeError: Cannot read property 'templates' of undefined
TypeError: Cannot read property 'templates' of undefined
at getEffectNamePrompt (apiscript.js:13026:49)
at _.each.player (apiscript.js:13397:81)
at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)
at on (apiscript.js:13395:7)
at eval (eval at (/home/node/d20-api-server/api.js:146:1), :65:16)
at Object.publish (eval at (/home/node/d20-api-server/api.js:146:1), :70:8)
at checkForReady (/home/node/d20-api-server/api.js:1314:12)
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 Note I contacted Stephen l, but thought it was a false alarm I am posting this for visibility to give you all a heads up. Thanks, Mark
I thought this was just me. I was trying to run the script on a copied game and was getting the same error (well, looks the same). The script is running fine on my current games, though.
Thanks Stephen, Great work thanks for your time, I have tested in two new games no issues found so far!!! Appreciate your time and effort.