Export Doesn't Work on Chrome

Get help using Construct 2

Post » Sun Apr 14, 2013 5:10 pm

I exported my project for the first time last night and when I run it in Chrome it just has a black screen and never starts. The strange thing is that I have been doing all my previews in Chrome and it was working fine. However, if I run the exported game in Internet Explorer it works fine. I even ran in Firefox and, aside from one tiny issue, it ran there as well. Any ideas why the export doesn't work in Chrome?
B
4
Posts: 7
Reputation: 391

Post » Sun Apr 14, 2013 5:13 pm

In Chrome, press F12 on your keyboard to open the developer toolbar and select the Console tab - Are you getting any errors?
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Sun Apr 14, 2013 5:26 pm

Yes, I am getting the following:

Viewport target-densitydpi is not supported. index.html:9
Failed to load resource file://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Uncaught Error: SecurityError: DOM Exception 18 c2runtime.js:1730


Btw, how do I suscribe to forums here so that I get notification of replies? I can't find that anywhere.
B
4
Posts: 7
Reputation: 391

Post » Sun Apr 14, 2013 5:47 pm

Are you hosting on Dropbox? They're having hosting problems at the moment. Try a different host like Google Drive.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sun Apr 14, 2013 6:08 pm

I was just trying to run the exported game locally on my machine. I wasn't hosting it anywhere at all.
B
4
Posts: 7
Reputation: 391

Post » Mon Apr 15, 2013 6:53 am

C2 games are not built to run without a host server. If index.html runs at all without a host. I'm going to guess that your FF and IE is set to allow unsafe code execution. If you want to run unsafe Chrome there might be an option for that.

However, C2 games aren't built to run locally. They are built to be served by a web server.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Mon Apr 15, 2013 1:14 pm

If you run from disk, didn't an error message pop up saying you can't run projects from disk and that you need to upload it first?

You can run projects from disk using the node-webkit exporter, but the HTML5 export requires a server.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Tue Apr 16, 2013 6:53 pm

No, I never received any errors saying I can't run projects from disk. I actually have run the project on Safari, Firefox, and IE, but not Chrome. Other browsers don't seem to care that it's not hosted somewhere. Anyway, I suppose I'll just upload it to my website and try it there.

Does anyone know how to get notifications of replies from this forum?
B
4
Posts: 7
Reputation: 391


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Solomon and 22 guests