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] Star Wars FFG Dice Roller Error

1772761804

Edited 1772762576
kayo
Pro
Hello all, I have a campaign on roll20 that I've been running for about a year or so, and I am now having an issue that I've not seen before. It seems to be that none of the dice images are showing up in the chat bar, and instead are being outputted as broken images. I've tried restarting the API, deleting it and adding it again, changing API versions, creating a whole new game, clearing my browser cache, using other browsers, all to no avail. The image links for the hosting site still seems to be valid, and I can access it directly from the image. Main browser is Chrome, as it always has been for Roll20, and it is fully updated, extensions off for troubleshooting purposes.  The dice were working normally the day prior, and nothing has changed on my system since then as far as I'm aware, and I definitely didn't change any setting for the environment. The only scripts that have been added are the SWFFG Dice and Destiny scripts respectively, and no changes have been made. I hadn't even clicked the Mod API tab in many months prior to this issue.  Bummed because my players were supposed to have a game last night and I still cant figure out what's happening here. Any help would be really appreciated, because I'm kinda at a loss at this point, with nobody else seeming to have the same issue.   Edit: Additionally, I meant to add that the SW FFG Destiny script seems to be working as intended, that is until I go to "Roll Destiny," where the Force Dice show up broken. So whatever is going on with these images idk but I'm at my wits end fellas.
Hi, UK here, having exactly the same issue. I've got no idea if it's linked to the most recent update, quoted below: " 6.5.1 Updates Moved sheet icons to local images to prevent circumvent the UK blocking imgur.com and further issues in the future." I'm not sure when the update was, but that could affect it - does anyone know if we can get in contact with whoever made the update to confirm? I've accessed an old game from a couple of years ago and that one seems to be working completely fine, although the images are blocked by imgur in the UK (without using a VPN).
1772837882
Gauss
Forum Champion
Hi folks, which character sheet are you using? There are multiple "Star Wars FFG" sheets. Could you supply a screenshot of the sheet for identification if you don't know the name?
Gauss said: Hi folks, which character sheet are you using? There are multiple "Star Wars FFG" sheets. Could you supply a screenshot of the sheet for identification if you don't know the name? Good afternoon! The sheet that I'm using, as I have been since the creation of the game, is the Star Wars FFG (API-Compatible) by Author Tim P. I've never changed it, or any other settings for that matter.
1772840218

Edited 1772840686
vÍnce
Pro
Sheet Author
Looks like the mod was updated 2 weeks ago with updated image links to help with the recent imgur regional blocking issue.&nbsp; The images are not being hosted on the repo (they should), but instead are being hosted on imgbox.&nbsp; I also noticed the urls used do not link directly to the image(they do not end with an image extension like .png) but rather go to a page that displays the image for comments. This may be causing the broken images.&nbsp; previous code: <a href="https://github.com/Roll20/roll20-api-scripts/blob/master/FFG-SWRPG-Dice-Roller/6.3.0/FFG-SWRPG-Dice-Roller.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/FFG-SWRPG-Dice-Roller/6.3.0/FFG-SWRPG-Dice-Roller.js</a> latest code: <a href="https://github.com/Roll20/roll20-api-scripts/blob/master/FFG-SWRPG-Dice-Roller/6.4.3/FFG-SWRPG-Dice-Roller.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/FFG-SWRPG-Dice-Roller/6.4.3/FFG-SWRPG-Dice-Roller.js</a> Compare code around line 1310. Looks like this was brought up on github here; <a href="https://github.com/Roll20/roll20-api-scripts/pull/2181" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/2181</a> There is currently an open issue on the repo regarding this; <a href="https://github.com/Roll20/roll20-api-scripts/issues/2172" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/issues/2172</a> So hopefully it will get resolved soon.
1772841651
Gauss
Forum Champion
Thanks Vince
Wow yeah, thanks a ton Vince. I never would've picked up on that detail regarding the image links, so I appreciate it. Weird that it only stopped working for me a few days ago, rather than when it was updated, but nonetheless thanks for the insight, definitely has me less confused now.
1772934927

Edited 1772934949
vÍnce
Pro
Sheet Author
Not sure why it suddenly failed. I think the image links were actually changed a while ago... but given that the images are being served off-roll20 means you are more susceptible to outside policies and/or changes as well as Roll20's own system.&nbsp; Hosting the images on Roll20's repository and linking to those is the preferred solution.&nbsp; I've reached out to the last person to volunteer their efforts to update the mod(best intentions) to see if they are able/willing to make the necessary changes to get this resolved. Temp fix; find and fix the imgbox url's. Permanent fix; copy images to the repo and verify each to match the appropriate die type and result used in the code.&nbsp; Depending on the gihub issue's response I'll jump in if needed.&nbsp;
Thank you Vince. Kayo and I had the same experience.&nbsp; Good to know the problem. Now I need a fix for it.
1772950266

Edited 1772950632
kayo
Pro
So I took the full 6.4.3 script and replaced the broken URLS in the graphics mappings with the direct links to the assets that are already in the repo's folders. That definitely seemed to fix it for me. I appreciate your guidance and willingness to help out from the good side of the internet. I started putting together what looks like a proper repo-side fix by adding a new versioned script folder rather than overwriting 6.4.3, and updating script.json accordingly and submitted upstream as a follow-up fix for the broken image issue for others, but truly, new waters and I have absolutely NO real idea what I'm doing here, I just wanted to help after I fixed it for myself. Thanks again for everything, Vince.
1772953730
vÍnce
Pro
Sheet Author
All the dice images are already on the repo here; <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice</a> These were uploaded in 2016. Not sure why the mod is using images from imgur or imgbox... I've looked at all three versions and there doesn't appear to be any discernible differences. Are you using the repo images kayo?&nbsp; If so, and you are willing to share your updated version, I could submit a pull request to github on your behalf. Just let me know.
1772954058

Edited 1772954111
kayo
Pro
vÍnce said: All the dice images are already on the repo here; <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice</a> These were uploaded in 2016. Not sure why the mod is using images from imgur or imgbox... I've looked at all three versions and there doesn't appear to be any discernible differences. Are you using the repo images kayo?&nbsp; If so, and you are willing to share your updated version, I could submit a pull request to github on your behalf. Just let me know. I did actually end up submitting the pull request, but truthfully I don't know if I did it right haha so I wouldn't mind if you checked it out for me...forgib the messy log lol Yes, I did use the repo images.&nbsp; Pull Request:&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/pull/2190" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/2190</a>
1772957592
vÍnce
Pro
Sheet Author
That looks great!&nbsp; Hopefully it will get merged on Tuesday.&nbsp;&nbsp; Thank you for your community service. ;-)
Hopefully! Thank you so much for your support and guidance!! Cheers! :)
1773020539

Edited 1773020721
kayo said: vÍnce said: All the dice images are already on the repo here; <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller/dice</a> These were uploaded in 2016. Not sure why the mod is using images from imgur or imgbox... I've looked at all three versions and there doesn't appear to be any discernible differences. Are you using the repo images kayo?&nbsp; If so, and you are willing to share your updated version, I could submit a pull request to github on your behalf. Just let me know. I did actually end up submitting the pull request, but truthfully I don't know if I did it right haha so I wouldn't mind if you checked it out for me...forgib the messy log lol Yes, I did use the repo images.&nbsp; Pull Request:&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/pull/2190" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/2190</a> Copying your script from the pull request fixed it on my game. Much appreciated!
Hi all, I was the last person to make changes to the script, and I'm so sorry about causing problems for other folks! The images have been broken on the UK side for a while now due to imgur regional restrictions, so I published someone else's previous changes moving to imgbox links as a quick fix, only I didn't realise my change would get automatically merged and expose this new imgbox issue to everyone. Life then happened for a week so missed notifications around this. Thanks for stepping up Kayo and fixing this for us all! :)
Glad it's working for you, Manamius! Flow, likewise I appreciate your hard-work and effort put forth for all of us Star Wars TTRPG enthusiasts! Wonderful community of folk here and glad to be a part of it now.&nbsp;&nbsp;