4.14 and 4.15 HTML5 packages not working?

Hey guys:

I am able to get a successfully built package for HTML5 using 4.14 and 4.15, but for some reason, I test it in Nightly browser and nothing begins loading… I have had successful builds on past UE4 versions and those still deploy on Nightly, but anything new that I try is not working for me.

Is anyone else having this problem or is it just me? I am happy to get you any information you would like to help, but there are no errors, the package builds fine and then attempting to open the HTML file just doesn’t load; it stays static with a loading bar forever.

To walk you through my process. I can start a new project with a first person template for mobile. I disable all plugins and prepare the project package settings for compressing packages and development builds. Then I build successfully for html5. Then I open the folder where everything just packaged, select the html file, right click and open with Nightly. Then static page.

Any help is greatly appreciated. I have a feeling I have just forgotten something…

Thanks

UPDATE: I noticed that even going back to my old projects that worked and updating them to the newer engines (4.14) still built a successful package, but does not load anything when the HTML file is opened in Nightly.

firefox nightly needs to be looked at as “work in progress” – somethings will change “every day” – it might work one day and then not the next…

mozilla is very busy plowing, fixing, and making some new and cool things in for firefox nightly – that we are all excited to see …^_^… it in the coming weeks.

stay tuned!

I do not think that this is the answer to this particular problem. I have tried chromium, nightly, and chrome as a test browser and it all results the same. The only time that I can get the project working is through launch, but anytime i try to deploy a build, it is always the initial screen and nothing loading.

It seems like there is something wrong with the file links from the HTML, not knowing what to load without the engine launching. Please see the below images, titled with the browser tested.

127480-nightly.png

127501-chromium.png

127502-chrome.png

127503-nightlylaunch.jpg

You can see the same results with the launch being the only working HTML file. In the older UE4 versions (4.12 and down), I was able to build HTML from the editor and then go into the generated files and right click the HTML file and open with Nightly or another 64 bit browser to test it and it worked fine. This is what I am trying now and nothing (4.14 and 4.15). Would you mind taking a look again and seeing what the problem may be?

Also, I have tried hosting all of the correct files on github and linking to a site (which worked with the lower versions of UE4), but this still results in nothing. Please help :).

you need to run a “web server” – there’s one included (for testing) in your packaged folder (what you’re calling a deployed build)

  • Package the project for HTML5
  • Navigate to the folder where the packaged project was placed
  • Locate the HTML5LaunchHelper.exe file
  • Double Click the helper file
  • A DOS prompt/command window will open
  • Open browser to location (listed next to Starting Server at:… e.g. http://localhost:8000)

for more details, please see:

Like Nick mentions, the problem here is not specific to Firefox, but the same issue appears in e.g. Chrome. You cannot use file:// URLs to load up .gz-compressed assets in browsers. Chrome doesn’t actually support file:// at all except for single individual files, but Firefox does, as long as the page did not use gzip compression.

This reminds me to see if we can improve the error reporting on the page to better tell when people attempt this, so that the page could diagnose the issue directly for the user with a better error message. That would remove a lot of head scratching.

On 4.14 and 4.15 the main issue is caused by lightmap data files which are not getting included into the PAK files.