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

Director Mod Crashes Sandbox on Handout Add

1764161904

Edited 1764163646
The new  Director  mod is really nifty. I like it a lot. However, it is crashing my sandboxes whenever I try to add a handout. Here is what happens: Create a new game in Jumpgate using the default 2014 sheet Name the game "Director." Install the Director mod using 1-click Start the game with the default sandbox Create a new page, titled "Theater" Call the script with !director Open the Director interface Create an act, titled "Long Rest" Create a scene, titled "Campfires" Drag two image files from my library onto the desktop Add the images to the Campfires scene Create a handout, titled "Handout" Add a level 2 header in the handout, called "Header" Add a bullet point in the handout and add the text, "text" Close the handout Click the "H" in the Director interface Select the "Handout" handout  Click "Submit" Watch the default sandbox crash (the handout is not added) Exit the game Change to the experimental sandbox Wait for the experimental sandbox to load Restart the game Repeat steps 6, 7, 16, 17, and 18 Watch the experimental sandbox crash (the handout is not added) I've tried using different game rooms and differently named handouts, but the results are always the same. Here are the error messages I receive: Default Sandbox Experimental Sandbox
1764169357
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks for the report, DM Dr. Lit! I'm not sure I'll be able to investigate until after the Thanksgiving weekend, but I'll figure out what's going on. In the meantime, could you try adding the handout after using "set scene"? My guess from your steps is that you tried to add a handout, but the scene being viewed is not the scene being acted upon by the buttons. And there is not yet an active scene. That should be caught and kept from happening. But if that's the issue let me know and that'll make it easier to troubleshoot and fix once I've finished flying a thousand miles to eat a big flightless bird.
1764173111
timmaugh
Forum Champion
API Scripter
Hey, DM Dr. Lit... you might be able to help Keith narrow it down if you install ScriptInfo, regenerate the above error, then use the line number in a ScriptInfo command. For instance, from your image, the line number is 3961. After you install ScriptInfo, regenerate the error to confirm the line number, and reboot your sandbox, you should be able to send this command through chat (changing the line number to your new line number, if it's different): !scriptinfo 3961 That will report the actual line from Director that is throwing the error.
keithcurtis said: could you try adding the handout after using "set scene"?  I tried adding the handout after using "set scene," but the error persists. No hurry on a fix. 
timmaugh said: Hey, DM Dr. Lit... you might be able to help Keith narrow it down if you install ScriptInfo, regenerate the above error, then use the line number in a ScriptInfo command.  ScriptInfo says, Line 3961 corresponds to line 3944 in Director.
1764183193
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Is Director the only script installed? Timmaugh has let me know that my APIMeta line that gives the error line number was slightly off, due to overzealous cleanup of the formatting.
1764185387
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
OK, an actual fix will take some time, but here is a workaround. There is some flaw with the choosing logic. The lists of handouts, characters etc, rebuild automatically whenever the handout is updated (a button is clicked). Make sure there are at least two handouts and two characters. Re-set the scene after adding them to the game. This will force a list refresh. It might be a good measure to make sure the images are named, and that one of them is set as a backdrop (after setting the scene, if you have not already assigned one). After that, you should be able to add characters and handouts normally.
keithcurtis said: Is Director the only script installed? Timmaugh has let me know that my APIMeta line that gives the error line number was slightly off, due to overzealous cleanup of the formatting. Director was the only script installed until I installed ScriptInfo. 
keithcurtis said: Make sure there are at least two handouts and two characters.  This works, but only if I attach a character first.  If I attach a handout first, the mod crashes the sandbox in the same manner as previously.  I verified this behavior in two different games (including a sterile testing game and one of my live games). For anyone who is experiencing the same symptoms, the fix for me was attaching a character first before attaching a handout.
1764192245
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Very curious. Well, it gives me something to do next week... Glad the workaround... worked.
It's a great mod, Keith! Thank you!