x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

mscorlib exception when building for HTML5

Whenever I build for HTML5 from Frontend, I get a "build failed" with this exception:

Program.Main: ERROR: Exception in mscorlib: Could not find file 'D:\Unreal Projects\UnrealEngine\Engine\Binaries\HTML5\UE4Game.js'.

I guess it failed to produce the UE4Game.js file, which is why it's throwing this exception at me. It's also preceded by this line: CommandUtils.Run: Run: C:\Windows\system32\cmd.exe /c python "C:\Program Files\Emscripten\emscripten\1.21.0\tools\file_packager.py" "C:\Users\Smike\Documents\Unreal Projects\MyProject\Binaries\HTML5\MyProject.data" --preload . --js-output="C:\Users\Smike\Documents\Unreal Projects\MyProject\Binaries\HTML5\MyProject.data.js"

Could it be a problem with Emscripten?

*Log attached.

[1]: /storage/temp/11262-7-27-2014.txt

Product Version: Not Selected
Tags:
7-27-2014.txt (129.1 kB)
more ▼

asked Jul 27 '14 at 08:08 PM in Packaging & Deployment

avatar image

Smike
21 2 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Thanks for the help. I found out what the problem was. It turns out the solution to my problem was simply to build my game project in Visual Studio with the "Development" setup for the Windows platform. Then I could package my game for HTML5 without errors!

more ▼

answered Aug 02 '14 at 01:13 AM

avatar image

Smike
21 2 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can compile UE4Game.js manually from Visual Studio by

  1. Choosing HTML5 in the "Solutions Platforms"

  2. Choosing Development in the "Solutions Configurations"

Compiling UE4Game.js

more ▼

answered Aug 02 '14 at 01:01 AM

avatar image

Alexandre Pretyman
6 1 4

avatar image Zaeran24 Jan 23 '15 at 05:22 PM

Worked for me with UE 4.6 but not 4.5. What do you have to build exactly?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Actually, it looks like you need to make sure you have "Do you with to build " checked in the UnrealFrontend before launching. That solved the issue for me.

more ▼

answered Sep 29 '14 at 09:20 PM

avatar image

blurdot
53 5 6 26

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question