Packaging only used content doesn't work

The packaging feature doesn’t pack only used content. I have one empty map resulting in a packaged game that’s over 1 Gb in size! I use shipping config and “For distribution” set to true. Version of editor is 4.4 preview but I had the same problem in the previous versions as well.

Howdy undercover,

Thank you for reporting this issue. Would be able able to provide any logs from the project and also your Dxdiag so that I may further investigate the issue? Also, Is there a simple step by step repro that i can use to recreate the issue?

Any additional information would be greatly appreciated.

Thanks and have a great day!

Hi!
Sorry for the delay.

I removed everything in the DefaultEditor.ini config and added

[AllMaps]
+Map=/Game/Maps/map

[AlwaysCookMaps]
+Map=/Game/Maps/map

where “map” is my empty map. Now it seems to work.

Also I found a debug file (.pdb) that was almost 200 MB that had been added even if I used the shipping config and “For distribution”. When removing that also the size became more reasonable.

Thanks anyway!

Glad to hear that you have figured out the issue. Have a great day!

Where exactly do you integrate that code? is it a C++ project or a document outside UE4? I’m facing the same issue

It’s not any code, it’s just the content in the DefaultEditor.ini config. You find it in your “Config” folder.

Replace “map” with your map name. You can also add more maps just by adding an other line below e.g. a second map “+Map=/Game/Maps/map2” where “map2” is the name of the second map.