Download these 2 files :
Place them in the same folder.
Rename those files by your map name.
In Mapname.bat (open with right click -> modify):
Replace D:\UE_4.20 with your UE4 installation folder.
In this example C:\Paks\ is where i decided my .pak file will be generated. Select your own location, just make sure the folder exists.
Replace the “Mapname” occurrences in this file with your own map name.
In Mapname.txt :
In this example C:/Mapname/ is where my cooked level is. This is the path that UE will use to know what files it has to place in the .pak. Make sure it points to the folder containing your cooked level.
If your path contain spaces, wrap it in quotes.
In the second parameter, replace Mapname by your map name folder. This is to indicate to the game where the .pak is supposed to be mounted ("extracted")
Run the .bat
Your .pak file has been generated in the location you specified in the .bat :
To test your file :
Remove your map from the Maps/ folder of Mordhau : to test properly, your map shouldn’t be already here.
Launch Mordhau, open the console and type
MountPak <Path to your pak>
So in our example :
Then type Changelevel yourlevelname
Your level should load. Make sure that everything is in order : Assets, textures, blueprints that you eventually used, spawns, etc.