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

Wrath & Glory Die Roller Not Loading

1541682224
MrBS
Pro
Sheet Author
API Scripter
Hi, I just released version 2 of the Wrath & Glory Die Roller this week.  In my private sandbox - tested in several different games - the Die Roller API works when copied in from source.  It does not work if I select the die roller  (Latest, 2.0, or 1.0) from Campaign setup as it appears to not load.  Here is the error displayed on loading API scripts: Spinning up new sandbox... Failed to load WH40k Wrath & Glory Die Roller No such file or directory @ rb_sysopen - /home/symbly/www/d20-app/apiscripts/Wrath And Glory/2.0/WrathAndGlory_DieRoller.js This appears to be an issue with how it was setup after I submitted it through GitHub.  Can this please be addressed as at this time the API does not function which is called directly from the character sheet? Thanks, BTS
1541774923
MrBS
Pro
Sheet Author
API Scripter
Can I please get someone from Roll20 staff to look at this?  Detailed description of the problem When a sandbox is spun up with the Wrath & Glory Dice Roller - I have selected latest version, version 1, and version 2 - it throws an error in the console log. This is a copy of the output: Spinning up new sandbox... Failed to load WH40k Wrath & Glory Die Roller No such file or directory @ rb_sysopen - /home/symbly/www/d20-app/apiscripts/Wrath And Glory/2.0/WrathAndGlory_DieRoller.js "Starting webworker script..." "Loading 0 translation strings to worker..." "-=> TokenMod v0.8.41 <=-  [Wed Sep 26 2018 00:30:10 GMT+0000 (UTC)]" "-=> ForbiddenLands v1.1 <=-  [April 11th, 2018]" "-=> TalesFromtheLoop v1 <=-  [April 11th, 2018]" "-=> PowerCards v3.6.1 <=-  [Wed Mar 07 2018 11:23:21 GMT+0000 (UTC)]" API calls to the Wrath & Glory Dice Roller - whether through command lines in chat (aka type in !wag) or calls from the character sheet (dice buttons) do not work after my code was officially deployed to the official Roll20 GitHub. When I delete the WH40k Wrath & Glory Dice Roller and click New Script and add the code I submitted the API Roller works.  This is the output from the code when I copy and paste it vs selecting it from the Roll20 API Script Library. Spinning up new sandbox... "Starting webworker script..." "Loading 0 translation strings to worker..." "-=> TokenMod v0.8.41 <=-  [Wed Sep 26 2018 00:30:10 GMT+0000 (UTC)]" "-=> ForbiddenLands v1.1 <=-  [April 11th, 2018]" "-=> WrathAndGlory v2 <=-  [November 10th, 2018]" "-=> TalesFromtheLoop v1 <=-  [April 11th, 2018]" "-=> PowerCards v3.6.1 <=-  [Wed Mar 07 2018 11:23:21 GMT+0000 (UTC)]" Minimum number of steps to reproduce the problem 1. Go a campaign -> Settings -> API Scripts 2. Select WH40k Wrath & Glory Dice Roller from the Roll20 API Script Library 3. Click Add Script 4. API Output Console will report Failed to load WH40k Wrath & Glory Die Roller Description of setup Firefox 63.01, Chrome 70.0.3538.77 Colorzilla on Firefox, none on chrome Win10 I have done all three steps of the triage - SOP for me.
1541776223
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi MrBS, I can confirm that this is happening on my end as well. I will escalate this for you.
1541776387
MrBS
Pro
Sheet Author
API Scripter
Thanks!
1541784580
Caden
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Greetings MrBS, The new update was submitted in the root instead of the required version directory. The result is your api script is referencing a dir that does not exist. Luckily we were doing a code push this morning so I was able to update your directories and we included it in our deploy. The changes are now live and I was able to complete a roll in testing. Be sure to pull down the changes to your local files and let me know if you run into any further issues. Thanks, Cassie
1541786580
MrBS
Pro
Sheet Author
API Scripter
I didnt do anything different from version 1 and didnt run into this issue then; I have three API's that I have released and all were done the same.  What was the issue?