Package Project - HTML5 - Big size files

Hi,

So I have a really simple scene with some floating cubes, the player can click the cubes to offset them. I’m only using a few assets in the level as you can see:


So I went to the File menu to package the project in HTML5, and what’s my surprise when it finished… the sum of the files is more than 400 megs for a super simple game like this.


Makes no sense? I have the starter content there, but I’m only using a cube and a plane from it.

Well maybe it does, but I hope I’m missing something, downloading 400 megs to play this doesn’t seem right.

Hi,

The way that packaging works currently is that if not map is given to the cooker (the default currently when packaging for any platform) all uasset files under the Game/Content folder are cooked and packaged even if they are not used. The simple fix is to remove the start content that you don’t use as the starter content is large (400MB+ but it gets compressed for html5 which saves some space)

Also, package a shipping build. That will reduce the size of UE4Game and speed up downloads.

I see, thanks. Is there no way then to specify a map to the cooker so it will only cook it with the assets used in the specified map?

In the editor have a look at Edit->Project Settings->Packaging and try enabling “Cook only maps”. - its a hidden option, you’ll need to expand an arrow
There should be a way to tell the cooker which maps to cook but I can’t remember of the top of my head… sorry

Cook only maps doesn’t seem to be around now :frowning:


Anyway, I’ll try deleting the starter content, thanks!