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 .
×

[Help] Doors script, strange error, little to no instructions, and no video tutorial to be found.

So I stumbled upon this 'Player-controllable doors script' and I'm trying to get it working. Thread here:&nbsp; <a href="https://app.roll20.net/forum/post/636123/script-do" rel="nofollow">https://app.roll20.net/forum/post/636123/script-do</a>... It looked too good to be true not having to: 1. Select a closed door's graphic 2. Hide it in the GM layer &nbsp;3. Go to the GM layer and unhide the open door graphic 4. Go to the lighting layer and move the line for the door so players can then walk through it.&nbsp; (Why isn't this door function stuff just built into Roll20 in the first place? Seems like a huge omission.) Anyway, the main problem so far is this error after pasting the script in.&nbsp; --------------- 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. More info... For reference, the error message generated was: events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE at errnoException (net.js:904:11) at Server._listen2 (net.js:1023:19) at listen (net.js:1064:10) at Server.listen (net.js:1132:5) at Sandbox.start (/home/symbly/www/d20-api-server/sandcastle/lib/sandbox.js:35:15) at Object.&lt;anonymous&gt; (/home/symbly/www/d20-api-server/sandcastle/bin/sandcastle.js:11:9) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) --------------- No idea what that even means because I know nothing about Javascript but even if I wasn't getting this error there's pretty much no clear instruction on how to fully set this up. (At least none on the level of someone who just upgraded from Plus to Pro today to be allowed to use API stuff.) I understand it's supposed to use rollable tables and I more or less know how those work (there are plenty of tutorials in any case) but the way the thread is written feels more like a "look at my proof of concept" thing rather than "here, this is how you can do this." Is the script outdated or something? Was there something I'm supposed to change in it? Has anyone made a tutorial on this that I just can't find? Any help would be appreciated greatly.
1455500524
The Aaron
Pro
API Scripter
The EADDRINUSE error is a sandbox error. &nbsp;If you see it, just save the script again and it should go away. As for the how to use it, Matt is pretty active on the forum and I've PMed him a link to this thread.
Oh okay, yeah saving it again worked, thanks. I'll be around then. Edit: &nbsp;Huh, well I kind of got at least the open/close part of it to work on a static door just by messing with it. Could still use help on the whole 'switching from one graphic to the other' part though.
1455503210
The Aaron
Pro
API Scripter
If I recall from the demo Matt gave me, you set the doors up in pairs in the RollableTable. &nbsp;You create a Rollable Table Token of the Doors Rollable Table, then set it's side to be the closed door for the pair you want to use. (I'm not sure if the order between the two matters, but the 1st and 2nd go together, the 3rd and 4th go together, etc). &nbsp;Hopefully Matt can jump in and clarify.
Okay well I can't get the graphic to switch but the open/close function itself works... for me. My players are getting "Please set your 'AS' drop option to a character first."
1455509664
The Aaron
Pro
API Scripter
Right. &nbsp;It integrates with a character's ability so pick the lock, detect traps, etc. &nbsp;I believe it's setup for 1st edition and I'm afraid I don't really know much about configuring it.
Oh, oh damn I think I see. You're saying I have my game set to 1st Ed. rules or something? So uh my friends and I play D20 Modern and we don't use the ingame thing for our sheets, we just generate them and paste them into the character bio area so if this goes off the built in character sheet deal I may have a lot of work to do(or just be screwed.) Also I thought I had this set to D&D 3.5 since that's basically the rule set D20 Modern uses.
1455513163
The Aaron
Pro
API Scripter
No, sorry to confuse. &nbsp;I was talking about the Doors Script. &nbsp;I'm pretty sure Matt plays 1st/2nd ed DnD, so the script is somewhat designed around that concept. &nbsp;Here's the post where he talks about that: &nbsp; <a href="https://app.roll20.net/forum/permalink/645879/" rel="nofollow">https://app.roll20.net/forum/permalink/645879/</a> Basically, if you want to use the automatic detection and picking stuff, you'd just need to create those attributes on the character (no need to deal with a character sheet) and fill them in with percentage chances of success. &nbsp;However, you don't need to do that if you don't plan on using the automated detection/picking stuff. &nbsp;You just have to have a character selected in the drop down or the script complains.
Oh, no I don't need any fancy detection stuff, the player testing it for me just didn't have his character selected apparently. Only thing I still can't get is the graphics switching but I'll do that tomorrow after I draw up some doors of my own in GIMP. Thanks for all your help Aaron.
1455514353
The Aaron
Pro
API Scripter
No problem! &nbsp;Definitely post back if you have any other questions/comments/requests! Happy Rolling!
@UnderhandDread - Glad to see you've made some progress on the script. &nbsp;Feel free to PM me and I'll go through the entire setup process with you, and answer any questions I can. &nbsp;It was a bit daunting the first setup, even for me. &nbsp;I'm in the process of updating the script, and I'll be sure to include more defined instructions for setup when it's complete. &nbsp; If you start your door images before we get the chance to speak, be sure to check out the post on creating the images.(&nbsp; <a href="https://app.roll20.net/forum/permalink/643201/" rel="nofollow">https://app.roll20.net/forum/permalink/643201/</a> ) &nbsp;I go into a little bit of detail on how I created my images to make changing doors simple. @The Aaron - As always, your expertise is greatly appreciated. &nbsp;Thanks for directing me to this post.