Dropbox Issue?

Get help using Construct 2

Post » Sun Mar 31, 2013 3:51 pm

Hello, until recently, i've been having these errors in my console log when trying to load my game:

1. Uncaught Error: SecurityError: DOM Exception 18
2. Application Cache Error event: Resource fetch failed (-1) *link to image*

It seems to work on a separate server, but I want to be able to work through dropbox while i'm updating my game as it's easier to upload etc. Sometimes it just goes to a black screen after it's finished loading from runtime, and sometimes it gets to past one layout, and freezes. It doesn't always crash on the same cache event.

Any idea how to fix this?

Thank you, Rogalog.
Posts: 29
Reputation: 908

Post » Sun Mar 31, 2013 6:52 pm

You're not the only one getting this error. I think Dropbox must have made some changes recently.

I've been looking into it and I believe the error comes from trying to load WebGL textures from another domain which isn't allowed. The dropbox files are actually stored on dropboxusercontent.com. If the files are cached then it works okay but if you try to load a texture before the image has cached (I'm guessing) it loads the image direct from dropboxusercontent.com and gives the security error.

The easy solution is to change your url from dl.dropbox.com to https://dl.dropboxusercontent.com.

gives error:

https://dl.dropboxusercontent.com/u/8367729/construct/demo/Space%20Blaster_r119/index.htmlramones2013-04-08 00:43:11
Posts: 1,520
Reputation: 25,285

Post » Sun Mar 31, 2013 8:16 pm

Thank you for the reply.
I believe it would work, however, I am using the QueryString plugin to call json files from another folder within dropbox for testing purposes.

However, the json files can't be called if I used https://, however, the game refuses to work if I don't use https://. Any idea why that isn't working?

Thanks a lot, Rogalog.

Edit: false alarm. Sorry, I didn't change my json file addresses to the dropboxusercontent or my image URL's in the json file. Thank you for this post, fixed everything!

Much appreciated!Rogalog2013-03-31 20:21:53
Posts: 29
Reputation: 908

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests