4.9 Packaged Project - illegal character

Hello,

I have updated to 4.9, created a new C++ empty project and launched it in Firefox. It worked great. Then I packaged the project, copied all files to my localhost and an error appeared 3 times in the browser console “SyntaxError: illegal character”. The game obviously did not start.

Here is the log window content:
*Starting downloads
Starting download Utility.js.gz
Starting download HTML5Test.data.js.gz
Starting download HTML5Test.js.gz
Utility.js.gz downloaded
HTML5Test.data.js.gz downloaded
downloading symbols file
downloading symbols file
symbols file downloaded, demangling…
callstack ready …
symbols file downloaded, demangling…
callstack ready …
HTML5Test.js.gz downloaded
downloading symbols file
symbols file downloaded, demangling…
callstack ready … *

I will appreciate any help!

// Edit
I have found a difference. “downloading symbols file” does not appear in Launch mode…

// Edit2
I tried using “HTML5LaunchHelper.exe” to host a server… it works. I don’t get it. My Wamp server seams to be configured wrong somehow?

SOLUTION for Wamp Server

add .htaccess file with:
*<files .gz>
AddType “text/javascript” .gz
AddEncoding gzip .gz
</files>

you are awesome :slight_smile: thx!

Hi,
I have the same problem as You, but I don’t understand Your SOLUTION. Could You explain me, step by step what should I do to run html project from hard drive or from web server?
Best regards, and thanks for Your help.

Hey ,

the easiest way to run your HTML5 packaged project is to find “HTML5LaunchHelper.exe” in the packaged folder and run it. It will host a local server. Just enter the address in your browser the console window says it’s running at, something like “http://localhost:8000/XXX.html”. I’m using firefox, it works best.

If you already have a localhost, then you have to find out how to make it decode .gz files as javascript. The solution I wrote about is for Wamp Server. The packaged project folder contains a readme.txt file with instructions, though they did not work for my localhost, hence the solution. :slight_smile: So when your localhost is configured, copy all the files to it and run the .html file ex. “http://localhost/asd/XXX.html

If you still have problems running the project, try to describe your situation as best as you can. Cheers. :slight_smile:

is there no way to get this to work on a hosted IIS server? it seems the html helper that comes with it is only localhost…

I’m sure there is a way, because I need to make it work, probably on monday, so stay tuned. :slight_smile:

Check out once again hope little mistake solve it and your game will be start.

Hi,

I’ve same problem. It’s works with ‘launcher’ and ‘HTML5 Launch Helper.exe’ but when I upload my game to Kongregate, the preview doesn’t work!

Please help me