Can't run exported proj, "Javascript Alert" error.

Bugs will be moved here once resolved.

Post » Sun Jul 15, 2012 1:41 pm

Hi folks.

I just installed v99 and made a simple project because I wanted to try letterbox mode in a iFrame.

So I just:
- Created a .capx project
- Set layout size (and project) to 1024x768
- Created a sprite
- Drew some doodles (AWESOME IMAGE EDITORZZZ!!1!)
- Placed 5 of them in the layout
- Hit the export, HTML WEB, without minify.

Pretty basic, can't get more simple than that.
BUT, when I went to the folder and accessed the index.html, I get a black screen, and the alert:

Title: "Javascript Alert"
Message: "Exported games won't work until you upload them"

What could be happening?
I can upload the .capx, but I just started a new one, did the same procedures, and got the same message!

Thanks in advance Ash!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Sun Jul 15, 2012 6:23 pm

That alert only ever appears if the browser address bar starts with file:///. Are you sure your project is uploaded and online? Can you link me to it?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Mon Jul 16, 2012 1:16 am

oops, guess I didn't make myself clear.

I didn't upload it to test it, I simply double-clicked the file in the folder on my desktop.

@Ashley After I read your comment I went back to the release notes and read about the file preview being removed. I'll change change my default folder to the dropbox and it'll be fine. Sorry!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Mon Jul 16, 2012 3:54 pm

Yeah, projects don't work run from the desktop (or anywhere on disk). That's what the error message is trying to tell you! You just need to upload it then it will work :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Thu Apr 25, 2013 5:44 am

I have some problem! I upload my game to public dropbox! But the game not started of doubleclick ever by the link!
here the link of my project https://dl.dropboxusercontent.com/u/35814399/123/index.html
B
6
S
1
Posts: 14
Reputation: 464

Post » Fri Oct 17, 2014 3:03 am

By uploading do you mean putting the exported proyect on dropbox?
B
3
Posts: 2
Reputation: 177

Post » Fri Oct 17, 2014 5:32 am

Yes san6kart, Dropbox of any other hosting. If you want to try your project locally without uploading it, you can export it using the Nodewebkit option.
B
25
S
9
G
3
Posts: 487
Reputation: 3,825

Post » Mon Mar 23, 2015 3:05 pm

I`ve got the same problem.
But I did upload it, and the problem stay.

You can download it, in Goggle AppStore Play...
The name is: ZOK
https://play.google.com/store/apps/deta ... eghost.zok

Please help me...

Sorry about my bad english
B
4
Posts: 1
Reputation: 231

Post » Thu Aug 13, 2015 8:41 pm

i would like to know if this warning can be bypassed in some way so games WILL work offline.
The only way I see is to open a local webserver and run it there huh
B
27
S
7
G
3
Posts: 299
Reputation: 4,521

Post » Fri Aug 14, 2015 10:28 am

@burningcake - export with NW.js.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests