In UE 4.10.0, I am able to successfully use the Open Level BP node in an HTML5 Development build. However, when I build for HTML5 in Shipping mode, the browser crashes after loading (when the game starts playing).
Steps to reproduce:
-
Create a new project from the Blueprint First Person template.
-
Create a duplicate map by selecting File ==> Save As: Map2. (Feel free to change some of the material colors, etc. before saving your copy, it will make it easier to tell when you’ve successfully changed levels.)
-
Open up the Level Blueprint. Set up 2 input keys that trigger Open Level nodes when Pressed. One Open Level node should have Level Name: FirstPersonExampleMap, the other Open Level node should have Level Name: Map2. Make sure to copy these nodes to the Level Blueprints for both of your maps!
-
Make sure all your maps are set to be packaged: Edit ==> Project Settings ==> Packaging ==> (expand Packaging section using drop-down arrow) ==> List of maps to include in a packaged build: add FirstPersonExampleMap and Map2.
-
In the Project Settings ==> Packaging menu, set Build Configuration: Development.
-
File ==> Package Project ==> HTML5. Select output location,. Once packaging has finished, go to the output location, run HTML5LaunchHelper, go to localhost:8000, and click on projectname.html. You should be able to use the hotkeys you set in the Level Blueprint to swap between maps. (Or, you can use ~ to bring up the console, then type Travel mapname.
-
Now, back in Project Settings ==> Packaging, change the Build Configuration to Shipping. Feel free to enable Full Rebuild, it doesn’t seem to matter either way.
-
Finally: File ==> Package Project ==> HTML5. Select output location, run HTML5LaunchHelper, go to localhost:8000, click on projectname-HTML5-Shipping.html. Once the project has loaded, the browser hangs and crashes.
Let me know if any further information or reproduction steps are required.
Please note that this is NOT the same bug outlined here: Open Level doesn't work in standalone game - Blueprint - Epic Developer Community Forums
The linked question deals with the Open Level node when launching a standalone game from within the editor. I am having issues with the Open Level node specifically when packaging Shipping builds for HTML5.