Recently I have decided on trying to move one of my projects to HTML5, so that it can be used on our company site.
Before doing anything more I just did a new project, blank blueprint /w starter, removed the chairs and setup a basic box for a floor.
When packaging, both /w and without the chairs, table, etc. after waiting for 5-10 minutes it finishes and in the designated folder I can see a HTML5 subfolder created, but no files whatsoever, 0bytes.
I also tried launching it. Didn’t work, here’s the log. Both packaging and launching got me unknown errors.
Version: Standard 4.11.2 /w editing symbols.
LogPlayLevel: CommandEnvironment.SetupBuildEnvironment: WARNING: ERROR: NOTE: Please ensure that 64bit Tools are installed with DevStudio - there is usually an option to install these during install
LogPlayLevel: CommandEnvironment.SetupBuildEnvironment: WARNING: Assuming no compilation capability.
This sounds like an issue we saw quite a few version ago. Please check out this [AnswerHub post][1] and see whether or not the suggestion fixes the issue.
If that does not work, install 4.12.5 or 4.13 and see if you’re still having HTML5 complications.
I think this part of your original error log looks similar to UE-36717 error log I saw:
LogPlayLevel: HTML5Platform.Package: Setting Emscripten SDK for packaging..
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: Could not find file 'D:\Epic Games\4.11\Engine\Intermediate\Build\HTML5\.emscripten'.
Do you happen to have HOME environment variable on your PC? That seems to make Html5 packaging fail(in 4.11 and later), so if you have HOME env var, could you test if deleting the env var make a difference?
Hello,
I do not know, I checked and the error really was from the .emscripten and so on. Could you still explain about the HOME var ? I don’t think I have.
I installed a clean 4.13.1 on my other PC and managed to pack it there.
Hi, you can check what environment variables are defined for your pc in:
Windows Control Panel > System > Advanced system settings > Environment Variables
Or running “set” command in command prompt.
So far it seems HOME or EM_CONFIG environment variables can cause .emscripten not found error. In that case, .emscripten folder gets created in HOME or EM_CONFIG folder - which is not ‘D:\Epic Games\4.11\Engine\Intermediate\Build\HTML5.emscripten’ - then there will be .emscripten not found error.
Well, if you do not have HOME nor EM_CONFIG, then the cause would be different…