Server configuration

How to configure your Mordhau server

6 comments

Posted by on


This guide can certainly be improved and completed, which i'll do over time.

How to get a Mordhau server ?

1. You can rent one from a server provider. Here is a price comparison made by PatPeter the Mordhau forums.

2. You can host one yourself. Here is a Dedicated Server Hosting Guide available on a Mordhau wiki site.

Here is another guide suggested by the community : Youtu.be

It is worth mentioning that most community maps are cooked (compiled) for Windows environment. They can run on Linux servers, but there can be a few issues. For example, any asset that is not from Mordhau and that uses a convex collision setting will have no collision on your Linux server (resulting in having players falling through the floor for instance). Ideally, a map maker will specify if his map is compatible, or provide a workaround for your server (a linux version that you will have to install manually).

If you want to host a server running community maps, for now it is more convenient to go for the Windows platform. If you're not sure what OS the server provider uses, you better ask their support before renting one.

How to host community maps on my server ?

1. Create an account on mordhau.mod.io.

Do not use your steam account to log in (as a player you will be auto-subscribed to a ton of mods that you don't necessarily want your server to be subscribed to)

Subscribe to the mods that you would like to host on your server.

If you are hosting several servers, you better get one mod.io account per server. For now, Mod.io lacks a feature to manage mods collections for several servers on one account.

2. Go to your mod.io profile -> API Access, and generate a OAuth2 Token (NOT an Api key) (you can give any name you want to the client and the token itself).

Copy that token somewhere since you won't be able to display it again later.

For some reason, sometimes the token doesn't appear, most of the time, if you try on another web browser/machine it will work.

3. In your server files, go to Mordhau\Saved\Config\WindowsServer(or linuxserver)\ and open Game.ini.

Under [/Script/Mordhau.MordhauGameSession], add

ServerModAuthToken=your token

And save the file.

4. Restart your server. The mods will download automatically, which can take some time. Once done, your server will show up in the browser.

Players joining your server will now be auto-subscribed to the mods that you are hosting!

If you can't access game.ini on your provider's interface : You will need to access the Mordhau\Saved\Config\WindowsServer(or linuxserver)\Game.ini file using FTP protocol.

For instance here is how to access your files on a g-portal server : g-portal wiki

How to add a community map to the rotation ?

In Game.ini, add a line for each level under [/Script/Mordhau.MordhauGameMode], for example :

MapRotation=FFA_Cistern

MapRotation=TDM_Grasslands

If the creator didn't specify its level names in the mod.io description, this list may help : Bit.ly

Do not add paths, just the level name. If you are miswriting a level name your server might have issues during map rotation.

Adding maps to the rotation makes them available for the voting screen.

How mods updates are managed ?

This is as of the date of the 24th of october and may change in the future.

When a mod is updated, you have to restart your server to get the update.

Client side (=players' side), the mods updates are checked on game start, and downloaded in the background if a new version is available. It is independant from the version that is on your server.

When joining a server, it won't check if the versions are the same, but rather check if the mod is subscribed client side, and if yes, if it is in the download queue or not (ie if a new version has been detected on game start and is in the process of being downloaded.). If the mod is subscribed and not being updated, the player can join the server.

That means that there are multiple scenarios where versions can differ and yet the player will be able to join the map. This explains some bugs that the players may encounter on your server after a mod update. Restarting your server and having the player restart their game will fix these version issues.

How to modify basic parameters ? (score to win, respawn time, match duration...)

These modifications are done in the same Game.ini file.

basicconf

Duration times are defined in seconds.

How to set your server to 120 Tick ?

Edit the \Mordhau\Config\DefaultEngine.ini file.

Search for the "NetServerMaxTickRate" parameter and set it to 120.

tick

Save the file and restart your server.

If you want to verifiy what is the tickrate on a server, type "m. ShowServerStats 1" in the console. This will display these stats on your screen :

serverstats

For some reason it doesn't work with all servers, no idea why.

To remove the stats type "m. ShowServerStats 0"

How to restrict certain weapons and equipments ?

The following guides needs to be updated since the November 25th update. It will be done asap.

To set weapons restrictions and more, check out those guides :

Cswic guide to server modifications Mordhau.com

Solved guide to server modifications Imgur.com

I need help !

Join the modding discord, get the "server config" role and look for help in the #server-config channel.

6 comments

Join the community or sign in with your gaming account to join the conversation:

TT
Taki7o7_Testserver @taki7o7-testserver

Great guide, thanks for bringing those infos together

JO
joihard @joihard

How to restrict certain weapons and equipments ?

2cool
2cool @2cool

The answers were in this guide. with the 25th november update you won't be able to do it this way anymore. i'll update guides when we have gathered enough info.

P
Paandizz2 @paandizz2

Can you create a guide for installing Skin/audio mods for servers?

2cool
2cool @2cool

These kind of mods are local only, so you can't install them on servers.
Some modded maps have additional weapons etc but in this case, you don't have to do anything, just host the map

JB
jbister @jbister

Hey man, I was wondering if you had any updates on this. I'm currently trying to modify horse respawns and afk timers but I'm not having any luck