HTML5 Download maps on the fly

Currenly I’m trying to understand how html5 map streaming works in browser. I’m talking about the “Download maps on the fly” option in export settings, and not about the UE4 jargon of “streaming levels”.

I have 6 level files, with the whole game logic, characters, animations, etc everything has a total of ~100 mb. I can see that the files are called and downloaded via browser. But when a level changes no other calls are made. So I assume that the file gets loaded as whole, and all levels are loaded. So on the fly seems not working for me…

How can I download maps on the fly? Are textures (images) are also downloaded on the fly? How does this feature work? I can see that it is not possible to generate single files and everything is packed into a single data file. So what is getting downloaded on the fly?

Can a staff member please explain or point me to an answer how to use these packaging options for HTML5?

i feel like nobody has an answer for this question. anyone?

also interested in this… anyone?

This feature seems to be broken in 4.9. It also has a packaging bug on osx, yet I’d still like to learn how this was supposed to work. How level transitions work, how the delta packs are created for html export?

Ok so, I’ve been checking the code of the “download maps on the fly” for a few days now. And was able to replicate what I needed. “MapPakDownloader” class was a great help on understanding how to download the pak files generated by this setting.

To share what I’ve accomplished, I’ve created a simple tutorial and released my c++ code on github:
[You can check the repository from here…][1]

This is a blueprintable and simplified version of the MapPakDownloader that I’ve changed to my desires. Currently I’m able to download multiple maps in the same time and open/stream when I need them.

The repository also includes a simple first person shooter template to show how a simple blueprint actor can be used to download and serve as a portal to other maps.

Check out the code, and if you like it, use it.

69541-i.jpg

That’s awesome!! Thanks for sharing your code.
I’m having problems compiling it though… using VS2013 and all versions of UE4 including 4.10.1.
When I open the project it says I should compile manually, so I right click the project and “generate VS project files”, then compile the solution and it throws external errors, it cannot generate the dll.
I’d really appreciate if you could help me out in getting this up and running. My email is vicdelacroix@gmail.com
Thanks!!

sorry but git repository contains a VS2015 project. but this might work: try deleting the vs project file (.sln) and the index file (.sdf). There might also be a hidden folder “.vs”, delete it too. Delete everything from the Binaries folder. Right click the UE’s “.uproject” file and “generate visual studio project files”. Open the project. Drag drop H and CPP files from the source folder to your solutions screen if they are missing. First, clear the project. Do not build yet! Open Unreal Engine project using “.uproject” file, let it compile required game.exe files for you.