The Killing Antidote

The Killing Antidote

Not enough ratings
UE4 tips for reducing challenge map file size
By Cindy Lennox
Two tips that may help you reduce the .pak size.
   
Award
Favorite
Favorited
Unfavorite
Remove unused assets
After the map is finished and you are ready to publish it, we can remove unused assets, unreal has a few filters that can help with this:

1) Go the the folder of your mod, at the left side of the search bar you have "Filters", there we can check to filter all assets: "Not Used in Any Level"


As you can se in the picture, after this filter is applied i see a lot of things that i have on the mod folder but aren't used in any map, Static meshes, textures, materials etc....

Before doing anything we should do a backup of our project, some stuff will show up here, but its not used in any level and thats intended, like the TKA_Mod_Table and TKA_Workshop_SGT

You can add more filters, like Static mesh and texture filter:



Lets look at this texture:
lambert1_baseColor, its a 4k texture thats not getting used at all in any map.
Doing right click> show in explorer, i see this is 27mb



Lets compare packet sizes by just removing this texture and the Normal map too:

Packchunk5 is our mod, with the assets there, 268mb


Now lets delete them, 245 mb, we saved 23mb by removing those two textures:


Up next we'll see what we can do in some situations that we are indeed using the asset somewhere in our level.
Reduce Max texture resolution
So all good with removing unused assets, but i have checked and im using everything in my level, what now?

We can see to reduce the resolution of some textures, in the following image, i selected both the Albedo/BaseColor and Normal's of the previous removed texture and did Right click > Asset actions > Bulk edit via property matrix > then i searched for "Max" to find the Max texture resolution in game field

We use property matrix to modify both assets at the same time.


After applying this change, lets packet again, this is the result:


As you can see the result is very cose to the one we got from the deletion of those files, this texture was used in a bridge that i downloaded from sketchfab but i ended not using it, this trick could come in useful if you have stuff, that is very far away and it doesn't need a 4k texture.

What we did here is to limit this texture to a 1024 resolution and forget about the 4k nonsense.


In case you are wondering what are those textures used for, here is a bonus on how you can track the assets: do right click on the texture and click on Reference viewer


So two materials use this texture, lets double click on the material so we can see what mesh is using them


Now i see that those are the ground floor static meshes that i never found a place to use them.

I hope you found anything useful in this guide

Thanks for reading.
1 Comments
Yusufu 26 Apr @ 12:28am 
Very useful guide, thank you so much!