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

Matt's Door Script Stopped Working

So, I was using Matt's Door Script updated with TheAaron's code ( <a href="https://app.roll20.net/forum/post/5019325/script-update-matts-door-script-i-made-a-few-changes-to-add-some-error-detection-of-common-problems-as-well-as-distance-checks-to-the-nearest-matching-speaking-token" rel="nofollow">https://app.roll20.net/forum/post/5019325/script-update-matts-door-script-i-made-a-few-changes-to-add-some-error-detection-of-common-problems-as-well-as-distance-checks-to-the-nearest-matching-speaking-token</a> ) and as of last night it started throwing errors. Not sure if something broke when the API engine got hosed last night, but all of a sudden, I'm getting the following errors and was wondering if anyone else is seeing this problem. Wasn't sure how to even troubleshoot this. ================================================================================ Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your scripts and click the "Save Script" button and we'll attempt to start running them again.&nbsp; More info... For reference, the error message generated was:&nbsp; TypeError: Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined at apiscript.js:20427:43 at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:191:9) at apiscript.js:20424:15 at eval (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:154:1), &lt;anonymous&gt;:65:16) at Object.publish (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:154:1), &lt;anonymous&gt;:70:8) at /home/node/d20-api-server/api.js:1648:12 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)
1586581365
The Aaron
Roll20 Production Team
API Scripter
What are you doing immediately prior to this error popping up?
The Door-Script is still working for me. (Not very helpful, I know)
I did get an error stating that two of the door objects didnt load. I did a !DoorsCount and that works, and then everything goes to hell. Ive tried deleting the script and readding but still that api error shuts down my sandbox. Do I need to go around the map and delete all my door and switch tokens?
1. I got a very similar error that went away when I disabled the Hit Dice Helper script. 2. You should really just switch to Scott's DoorKnocker script. It's so good.
1586583624
The Aaron
Roll20 Production Team
API Scripter
It's a problem with one of the door or key objects, but I can't really tell which from the error message.&nbsp; Wish I could give you more.
UPDATE - I disabled the API, deleted all switch and door tokens, restarted the API and then started from scratch, pulling the door token from the table, relinking, realigning, and everything seems to be working OK again. Really odd. I do think something happened when the servers burped the other night, but it was with the tokens. Thanks for the assist. I am curious though. I like the power of this door script with support for passive searching, built in traps, etc. Does the Doorknocker script support the rest of that functionality?
Deegan, DoorKnocker doesn't have that level of functionality. But I find it absolutely wins on ease of use and portability to new maps. All I want is a script to toggle open doors on maps quickly and efficiently, and that's where it shines.
Hello, how are you, So I installed the script I did all the settings, but the players can't open the door, locate the door or trap, neither disarm the traps, I don't really know where I'm going wrong, I use 5ed Ogl. please can you guide me on this. Lidia cannot open the door because it is locked. Lidia does not possess the skill to unlock this door.
1588702569

Edited 1588702643
Ravenknight
KS Backer
Its hard to say what is wrong without seeing your settings. Can you post an example on how you set up your doors. Also what attributes you've set up in the first lines of the script: statusDoors.attribFindHidden = "Perc"; statusDoors.attribOpenLocks = "TT"; statusDoors.attribFindTraps = "FT"; statusDoors.attribRemoveTraps = "TT";