Why when I build Html5 can Firefox not find the file "MyProject.html"?

Ideas anyone?

Hello guys,
Here I’ll describe what I have encountered with the release 4.2.

So far I have been able to build pure blueprint projects flawlessly to HTML5 with the Unreal frontend.
Only C+±based projects seem to fail in the packaging phase with error: “Unknown parameter: Projects\test\Binaries\HTML5\test.data”.

I tried Ehamloptiran’s trick (that was changing line 36 of HTML5Platform.Automation.cs to /c python {0} {1} --preload . --pre-run --js-output={1}.js), with no success. That tweak of course helps only those who have not set the python file association properly. I have also tried to create a patch for this problem from the current master branch, but it is hard to find the actual solution for this problem because there are so many changes already.

In my opinion,the most probable reason for the packagins error is that there is a bug in the HTMLPlatform.Automation tool that feeds wrong parameters into Emscripten. You could find a solution from the master branch. For me, that ordeal was taking too much time, so if you don’t want to waste so much time on solving this, it would be best to just wait for the 4.3 release.

Update:
The HTML5 build works reasonably well with 4.3 release as I suspected.

Just make sure you have FireFox Nightly 64-bit web browser installed (if not, get it from here: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/). Also, confirm that you have setup Emscripten and other required tools and their PATHS correctly.

Then, go through the following HTML5 build procedure:

  1. Open the Unreal Frontend tool and select ‘Game Launcher’-tab and choose ‘Advanced…’
  2. Project settings: Select your project file and choose build configuration. Shipping will create the most compressed JS file.
  3. Build settings: Check ‘Do you wish to build’
  4. Cook settings: Select ‘Cook by the Book’ in the drop down menu. Check ‘HTML5’ in the ‘Cooked Platforms’, and select your maps (if the tool finds them).
  5. Package settings: Select ‘Package and Store locally’ in ‘How would you like to package the build?’. This step will move the needed files in the correct location and generates the required html-file. Do not change the other settings in this section.
  6. Deploy settings: Select ‘File Server’ in ‘How would you like to deploy the build?’. Create a new Device Group if not exists. Select a device with a ‘HTML’ platform in the created group.
  7. Launch settings: Select ‘Using Default Role’ in ‘How would you like to launch?’
  8. Press Launch.

If all works like a charm your project will be built, cooked and packaged and finally, a file server script and FireFox nightly should be launched.

I have now evaluated the 4.3 release and can confirm that HTML5 build process is working like it should…

I have gone through the process and set everything up accordingly as far as I can tell. When I launch it in the nightly browser it downloads the data and just gives me a black screen.

Here is the log file:
link text

I updated my answer and added additional information about the building process that works for me. Hope that helps.

Well, I’m having problems for some reason, when packaging is about to start, for some reason the frontend finds an error and can’t find a turnaround for it.

Any ideas?

Hi , I have responded to your answerhub post you linked.

Thxs man, gonna check that out :smiley:

First, I can’t find the HTML file. If it’s supposed to be here “\UnrealEngine-46S\Engine\Binaries\Win64\HTML5” then there is no html file in that folder.
Second, in step 8 you’ve said:
Deploy: Copy to device (add a new group and tick item with HTML5 icon)
I’m using ue 4.6 and I don’t know how to add a new group in deploy area. It’s like this:

I’m working with 4.6 version and in my version there is no HTML check box in Cooked Platforms section in Frontend.
What you think I can do to make it appear?