How to prepare your map files for Mordhau.mod.io

To make your map compatible with autodownload you have to package your map files before uploading them here. This guide will help you in the process of doing so.

12 comments

Posted by on


Download these 2 files :

Mapname.bat

Mapname.txt

Place them in the same folder. The location doesn't matter.

Rename those files by your map name.

In Mapname.bat (open with right click -> modify):

bat

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 :

txt

The first parameter is where your cooked level is. In this example, C:/Mapname/. 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 and your eventual additionnal assets folder . End your path with *.* so that it will package all the files in this folder.

If your path contain spaces, wrap it in quotes : "C:/Map name/*.*"

The second parameter is meant to define where your map will be mounted ("extracted") when it will be downloaded by players/servers. In our case, it is in the /Maps folder of the Mordhau installation.

Simply replace Mapname by your map name folder.

If you deviate from the format that is given as an example here, it won't work. Do not remove *.*, nor the ../../../, let one space between the 2 paths, and use quotes (") if the path has spaces.

Run the .bat

run

Your .pak file has been generated in the location you specified in the .bat :

paks

If running the .bat doesn't create a .pak file, or if the .pak file is empty, it means that you didn't format the .bat or the .txt correctly. Take a look at the example files in this guide and see what differs from yours.

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 :

mount

Then type Changelevel yourlevelname

testlevel

Your level should load. Make sure that everything is in order : Assets, textures, blueprints that you eventually used, spawns, etc.

You can now safely zip your file and upload it to the mordhau.mod.io site.

When posting your map, it is highly recommended to specify what are the level names since server owners can't access that information easily.

12 comments

theubre
theubre @theubre

Is there going to be a tutorial for gamemode mods (For example: Horde mode without weapons etc...)?

2cool
2cool @2cool

If it's only about restricting weapons you can already do that with simple server modifications (you can find guides about that on the modding discord.)

theubre
theubre @theubre

Only guides I've been able to find are for dedicated servers. I use g-portal (The officially sponsored host) and I can only modify the Main.ini file.

2cool
2cool @2cool

With g-portal, you need to use a FTP connection to access other files G-portal.us?

theubre
theubre @theubre

You're a Legend, cheers!

V
Volix030303 @volix030303

Are we able to play these maps in a single player match?

2cool
2cool @2cool

Assuming you have already joined a server earlier that was running them, you should be able to play maps locally by typing "changelevel <levelname>" in the console, from the main menu. To get the level name, check the mod description. If the mod creator didn't specify the level(s) name(s), try with prefixes such as FFA_mapname, or use the mapname itself.
Another way, if you want to try the maps without connecting to a server running them in the first place, would be to download the .pak file from here, then mount manually this file in mordhau, like it is described in the "To test your file" part of this guide.

TAIWAN
TAIWAN @taiwan

抱歉我是亞洲玩家 我的英語不太好
這個是哪來做什麼的 為什麼我下載 的地圖都是.pak而不是.uexp or .uasset
Sorry, I am an Asian player. My English is not very good.
What is this doing? Why are the maps I downloaded are .pak instead of .uexp or .uasset

2cool
2cool @2cool

I answered you on another post. Install "discord" and join Discord.gg. Message "2cool"

Lord_Commander_Guts
Lord_Commander_Guts @lord-commander-guts

Followed it to the T. Tried to test ingame, didn't work. :(
Mountpak was successful, but that's as far as it would go.

2cool
2cool @2cool

nothing happens when you changelevel ? come to the modding discord and ask for help here, it will be easier to look for the issue in real time.

Lord_Commander_Guts
Lord_Commander_Guts @lord-commander-guts

Got it figured out :) took a few hours... But got it! Cheers 2cool!