Local project file: Access denied

Get help using Construct 3!

Post » Tue Jun 13, 2017 12:58 pm

Hi folks,

In the loading screen I make an AJAX call to request a project file (json). This works fine in Preview, Remote Preview and when exporting to a Window 10 phone. However, when exporting to an Android mobile phone or to Web (hosting on itch.io) I get an "Access denied" error.
Am I missing something?

Greetings from Brazil,
Ueli
B
21
S
5
Posts: 23
Reputation: 1,207

Post » Thu Jun 22, 2017 6:49 am

Consider posting a proper bug report for it to be investigated by the devs : https://github.com/Scirra/Construct-3-bugs
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

Post » Sun Jun 25, 2017 6:35 pm

Well, I did file a bug report, but Scirra just answered that the problem is itch.io's server.
I found this a little bit odd, because you could expect an absolutely bare bone test project to run with the market leader for HTML5 game hosting without any problems. And why it's not working on Android neither is strange and remains unanswered. This can obviously not be itch.io's fault.

So I'm kind of stuck. Scirra doesn't even try to get to the bottom of the problem, and I have no clue where to dig to make this work. But maybe some other user has managed to read a local project file successfully on Android or Web, or both?
B
21
S
5
Posts: 23
Reputation: 1,207

Post » Mon Jun 26, 2017 10:14 am

If you're talking about this issue, the problem was the itch.io server, and as Iain suggested at the end you should file a separate issue for the Android problem which sounded unrelated.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Sat Jul 29, 2017 12:18 pm

@Ashley, the problem was not the itch.io server. It's a C3 bug, and he causes the problem on Android, too. The itch.io founder brought me on the right track.

C3 doesn't handle the local text file creation correctly. When you create a new file or rename an existing one to "MyFile.txt" C3 actually creates "myfile.txt", while maintaining the intern reference "MyFile.txt".
In Windows this doesn't matter, but on Android or the itch.io server (they are case sensitive) the AJAX-Call goes down in a ball of fire.

I updated the bug report so you can look into that.
B
21
S
5
Posts: 23
Reputation: 1,207

Post » Sun Jul 30, 2017 8:45 am

Nicely done Tiradentes, wish I was a student in your class.

Chris
B
21
S
6
Posts: 126
Reputation: 1,771

Post » Tue Aug 01, 2017 4:22 am

The same has happened to me with a JSON array that I built on C3. When I use it on local preview everything's fine, but whenever I load the arrays from the hosted version it fails... HELP! :ugeek: :mrgreen:
B
15
S
4
Posts: 25
Reputation: 1,125

Post » Tue Aug 01, 2017 2:23 pm

Until they fix it, just make sure that you rename all file names with lower-case. Then it should work.
Hth.
B
21
S
5
Posts: 23
Reputation: 1,207

Post » Tue Aug 01, 2017 6:39 pm

Tiradentes wrote:Until they fix it, just make sure that you rename all file names with lower-case. Then it should work.
Hth.



Thanks, man. It worked in Construct 3, both in web and as an APK.
B
15
S
4
Posts: 25
Reputation: 1,125


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests