1. This was the problem in the beginning.
PackagingResults: Error: Command failed (Result:1): E: \ ue4 \ UE_4 22 \ Engine \ Extras \ ThirdPartyNotUE \ emsdk \ Win64 \ python \ 2.7.13.1 _64bit \ python exe “E: \ ue4 \ UE_4 22 \ Engine \ Extras \ ThirdPartyNotUE \ emsdk \ emscripten \ 1.38.20 \ tools \ file_packager py” “E: \ ue4 \ project4.2
The solution is very simple, the path does not appear in Chinese.
2, UE4.24 and later versions do not support HTML packaging
Since Unreal Engine 4.24, support for the HTML5 platform has moved from the engine to a public platform extension, maintained and improved by community members. The documentation for HTML5 platform extensions is put together with the GitHub meta-library.
Some necessary configuration is required before compiling
-
Go to Project Settings > Platforms > HTML5 > Packaging Then ensure that Compress files during shipping packaging is enabled.
-
In addition, you are advised to perform the following operations: Disable the Use Pak File option by going to Project Settings > Packaging > Packaging. And disable this option by clicking the box next to the Use Pak File option name.
3. To create a packaged HTML5 project that can be deployed to the Web, make sure you do the following:
-
First, go to File > Package Project and select HTML5** from the list.
-
Select the Folder in which you want to save the project, and then click Select Folder to start the packaging process.
-
After the project is packaged, open the folder to which the project is packaged and run html5LaunchHelper.exe.
-
The html5launchHelper.exe program will start a Web server configured to serve compressed files on the local host. When you run the html5LaunchHelper.exe program, you can see the progress of the server in the command line window that displays.
-
Finally, open the 64-bit Web browser of your choice and enter the following URL: [localhost address]/[project name].html. This will load the UE4 HTML5 project in a Web browser, as shown below.
HTML5 file types
When compiling UE4 projects for development or deployment using HTML5, you can choose to compress or uncompress files. The following table lists the files required for uncompressed compilation and the information they contain.
Files required for uncompressed file deployment – The following files are created when an uncompressed compilation is created.
The file type |
instructions |
---|---|
.js |
The project is mainly Javascript code. |
.wasm |
The game’s main code. |
.data |
The game content is Javascript driven. |
.html |
Login page. |
.symbols |
Symbol (optional: used for debugging). |
Utility.js |
Tool Javascript code. |
.htaccess |
Distributed profile |
Compressed files Required for deployment – The following files were created when the compressed compilation was created.
The file type |
instructions |
---|---|
.jsgz |
Compressed project mainly Javascript code. |
.wasmgz |
Compressed game main code. |
.datagz |
Compressed game content. |
.data.jsgz |
Compressed game content Javascript driven. |
.symbolsgz |
Compressed symbol (optional: for debugging). |
Utility.jsgz |
|
Today share here, I continue to step on the pit