Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to package project for HTML5 platform #13

Closed
Siphonn opened this issue Mar 13, 2020 · 5 comments
Closed

Unable to package project for HTML5 platform #13

Siphonn opened this issue Mar 13, 2020 · 5 comments
Labels
python issues related to python usage, version, etc.

Comments

@Siphonn
Copy link

Siphonn commented Mar 13, 2020

Hello,
I have been able to downloaded and run the UnrealEngineHTML5 but when I go the package the project

  • File > Package Project > HTML5

The Unreal doc for developing HTML5 Projects page opens (https://docs.unrealengine.com/en-US/Platforms/HTML5/GettingStarted/index.html).

In Project Settings - Platforms, there is no section for HTML5.

I have followed the documentation til this point (Using Git Bash, running Setup.bat, HTML5Setup.sh, GenerateProjectFiles.bat, then building UE4 with VS2017) and am unsure what to do next.
To make sure the engine is working correctly I built the project out to windows with no issue.

Any advice on what to do next would be appreciated.

@Mosel3y
Copy link

Mosel3y commented Mar 15, 2020

Hi,
Check the help here:

https://github.com/UnrealEngineHTML5/Documentation/blob/master/Platforms/HTML5/HowTo/README.4.faq.UE4.HTML5.md#attempting-to-package-for-html5-instead-brings-up-the-help-page

I am also having this issue, so I will let you know when I solve it.

@Mosel3y
Copy link

Mosel3y commented Mar 17, 2020

Hi @Siphonn
This is working for me now. I started with a fresh clone of this repository.

Using git bash:

  1. Run Setup.bat
  2. Run Engine/Platforms/HTML5/HTML5Setup.sh
  3. At this point I open Platforms\HTML5\Source\Programs\UnrealBuildTool\HTML5SDKInfo.cs and at line 27 change PYTHON_VER, to match the version at Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python, which is "3.7.4_64bit".
  4. Run GenerateProjectFiles.bat
  5. Compile engine
  6. Package Project > HTML5

Works fine.

@Siphonn
Copy link
Author

Siphonn commented Mar 17, 2020

I performed the same steps as those you listed above and was able to package to HTML5.
Thanks you Mosel3y you're a gent. I appreciate your help with this issue. 😄

As someone who is new to HTML5 builds are their any sites you could recommend to test a HTML5 build? I made a mistake in assuming I could run the .html file on computer to test the build.

@Mosel3y
Copy link

Mosel3y commented Mar 17, 2020

@Siphonn Cool, glad it worked for you.

You can run it locally actually, Nick explains it here

However since you seem to be on Python 3, the command is different, it's now:

python -m http.server 8000

If you run that command in the folder containing your packaged game, then open your browser and go to http://localhost:8000/, and select your html file.

@Siphonn
Copy link
Author

Siphonn commented Mar 17, 2020

@Mosel3y
Looks like Firefox has some issues running the build but I can confirm that it works in Chrome.
Thank again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python issues related to python usage, version, etc.
Projects
None yet
Development

No branches or pull requests

3 participants