HTML5 different errors when lunched

Hello mighty UE4 HUB,

I thought I’d find the answer within topics that are similar to mine, but instead I made it worse and now I’m here with my question.

First I want to point out that I’m total beginner in coding and only started using UE4 two weeks ago, so please be gentle.

So, my question.
When I start a new project weather it is a C# blank or FPS project with or without starter content, I’ll configure the projects settings: Packaging - shipping (tick the "for distribution), check that “All platforms” are selected, add Heap size (as some suggested in this Hub), check that under device manager Chromium and are listed (they are).

When all this is done, here is where the fun starts. when I first did some packaging tests everything went smoothly, while pressing compile, no errors were detected. Packaged the project, no errors. When launching up the the launchHelper and the html file at first it worked, when I uploaded to my server i got and SyntaxError.Unexpected Token ILLEGAL with both browsers. Then i dug a little in the Hub and found many different approaches, and here is where i lost track of my original setting for everything.
Now i’m getting and error while pressing compile - Info ERROR: Couldn’t find target rules file for target ‘-canskiplink’ in rules assembly ‘TestModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.

I’v tried with upgrading my emscripten to 1.34.1 and tried with 1.25.0 and they both gave me Uncaught RangerErrors or TypeError: abortDecorators is undefined. So i put back the 1.29.0 and then that one started giving the same error.

My HTML5Engine.ini set-up:

[Audio]
AudioDeviceModuleName=HTML5Audio

[OnlineSubsystemMcp]
benabled=false

[SystemSettings]
r.setres=800x600

[BuildSettings]
HeapSize=1024

[HTML5DevicesWindows]
(64 bit)=“C:/Program Files//firefox.exe”
(32 bit)=“C:/Program Files (x86)//firefox.exe
Firefox (32 bit)=“C:/Program Files (x86)/Mozilla Firefox/firefox.exe”
Firefox Aurora (32 bit)=“C:/Program Files (x86)/Aurora/firefox.exe”
Chrome=“C:/Program Files (x86)//Chrome/Application/chrome.exe”

;all browsers on mac are 64 bit, 64 bit browsers can allocate more than 512MB of memory to around 1.5 GB.
[HTML5DevicesMac]
Safari=“/Applications/Safari.app/Contents/MacOS/Safari”
Firefox=“/Applications/Firefox.app/Contents/MacOS/firefox-bin”
Firefox (Aurora)=“/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin”

[HTML5DevicesLinux]
Firefox=“/usr/bin/firefox”

[HTML5SDKPaths]
Mac=“/path/to/emscripten/sdk”
Emscripten=“C:/Program Files/Emscripten/emscripten/1.29.0”
Python=“C:/Python27”

So, my question is, where and what am I doing wrong or what is missing?

Thank you for your time,
Kaupo

Hey KaupoK,

Have you ran across [this thread][1] yet? There is an issue with some private servers due to the .gzip that’s used as the compression method. Some have gotten around this by uncompressing the files, you can read more on this by viewing this [AnswerHub post][2].

Looking forward to hearing back from you, thanks!

Problem with testing/opening HTML5 packed project - Platform & Builds - Epic Developer Community Forums
[2]: 4.9 Packaged HTML5 Project - b83 error - Platform & Builds - Epic Developer Community Forums

Hey ,

Thanks for the reply. I reinstalled everything, even python and Emscripten and started from scratch, that helped me to compile now and found out another thing, I up’d the HEAP too high (2048), lowering that back to 1024 let me run the HTML5LaunchHelper on local perfectly on both browsers.
And the unzipping the cooked files helped as well, but load time went up and that’s not good. This is a simple FPS project with no extras and it took so long. Is there’s a possibility to up the loading time?

Thanks,
Kaupo

The loading time would change based on your download speed from your internet if you’ve already uploaded it to a private sever. Have you taken out all unused assets from your project before packaging it? Could you please tell me how long it’s taking to load up your project on that server? Could you provide me the link as well?

Hey KaupoK,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

Hey ,

Thanks for all your help. Unpacking did help for the project to work on web, but it slowed down loading. I know why it’s doing it, it’s 1/3 project unpacking fault but mostly it’s because I’m located in Europa, Estonia but my server is somewhere in Atlanta, US. So my guess is, it’s because of the distance:

When servers are being used far away from your home location typically, the speed will slowdown a bit. Are there any closer server sites you’re able to use to test this theory out?

Thanks!