Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's a video to walk you through the process made by **[InX] Atropos Orbis**
- https://www.youtube.com/watch?v=5_5oeEge82w
- ___________________________________
- ##1) Add port forwarding rules for the required ports
- You'll need access to your router/modem control panel to add some port forwarding entries.
- Add ports **7777** and **27015 (UDP)** and forward them to the LAN IP of the computer running the dedicated server files. UE3 also needed an open **7778** port, and one of the .inis in Mordhau server files also has this 7778 port (listed as PeerPort) so you may want to add that one as well just in case.
- If you have any weird firewalls you may need to add exceptions or tweak them accordingly.
- ________________________________
- ##2) Install Mordhau Dedicated Server files
- ![mordsv1.png](https://s3-eu-west-1.amazonaws.com/mordhau-media/spirit/images/2012/a20928b86490dced5b7fb5a84d3396d6.png)
- EDIT: According to Crushed, it's advisable to host this server on a PC different to the one where you'll be running the game itself. Some bugs may occur but basic server functionality can be achieved just fine.
- _________________________________________
- ##3) Edit the server's **DefaultGame.ini**
- This file is usually in *<unit>:\SteamLibrary\SteamApps\common\Mordhau Dedicated Server\Mordhau\Config* and you'll want to make a backup in case you change something incorrectly.
- ###Basic Setup:
- This is what your server lines should look like:
- > [/Script/Mordhau.MordhauGameSession]
- > bIsLANServer=False
- > MaxSlots=*<No. of desired slots>*
- > ServerName=*<Your server name>*
- > ServerPassword=*<Optional. Only people with the passwords will be able to join>*
- > AdminPassword=*<Optional. Password required to log in as an Admin>*
- > Admins=*<STEAMID64 of your user>*
- > BannedPlayers=
- * If you just want to add yourself as the single admin, you need your STEAMID64. It's the same number you see ingame on the bottom left corner but you can get your ID more easily here: https://steamidfinder.com/. Enter your Steam profile URL and copy the STEAMID64 line.
- * If you want to have multiple admins, add multiple **Admins=<ID>** lines, with the STEAM64 ID of each user, separated by a comma.
- * Notice that if you're on the adminlist you don't actually need the admin password.
- ###Map Rotation:
- You can change the default map rotation to whatever you want in that same file (DefaultGame.ini) by modifying the lines below *[/Script/Mordhau.MordhauGameMode]*.
- **[If your server is not rotating maps properly, please comment here or in the [Alpha Bugs](https://mordhau.com/forum/topic/10084/bug-reporting-thread/?page=5#c89) thread. I give up trying to fix it.]**
- ####**EDIT: If your rotation gets stuck, adding a + sign at the beginning of each MapRotation line seems to work.**
- **Game Mode prefix codes:**
- * FL = Frontline
- * BR = Battle Royale
- * HRD = Horde
- * SKM = Skirmish
- * FFA = FFA/Deathmatch
- * TDM = Team Deathmatch
- **Current map names** (29/04/2019)
- Not all maps can run every game mode.
- Contraband; ThePit; Grad; Camp; Taiga; MountainPeak; Tourney;
- For example, if you want a Skirmish mode only server, your file should look like this:
- >[/Script/Mordhau.MordhauGameMode]
- >+MapRotation=SKM_Contraband
- >+MapRotation=SKM_ThePit
- >+MapRotation=SKM_Grad
- >+MapRotation=SKM_Camp
- >+MapRotation=SKM_Tourney
- >+MapRotation=SKM_Taiga
- >+MapRotation=SKM_MountainPeak
- ***NOTE: By default, the server always seems to load FFA_ThePit as the first map in the rotation. To change this, read below.**
- ###Changing the server's default map:
- Inside the same folder where you changed the *DefaultGame.ini* file, there's also a **DefaultEngine.ini** file. Inside it you'll find a bunch of complicated looking lines, like ConfiguredNetworkSpeed, MaxInternetClientRate, NetServerMaxTickRate. These will affect the server performance, and you may want to check Vin¢'s [thread](https://mordhau.com/forum/topic/10348/dedicated-server-hosting-guide-linux/#c1) for more info. Alternatively, you may want to check how other UE4 engine games are set-up.
- The only thing we'll be changing now is the **ServerDefaultMap** line.
- By default it's:
- >ServerDefaultMap=/Game/Mordhau/Maps/ThePit/FFA_ThePit.FFA_ThePit
- If, for example, you want a map "SKM_Contraband" to be the default map, change it to this:
- >ServerDefaultMap=/Game/Mordhau/Maps/Contraband/SKM_Contraband.SKM_Contraband
- Notice how the first part of the above syntax corresponds to the map files inside the folder
- >*<unit>:\SteamLibrary\SteamApps\common\Mordhau Dedicated Server\Mordhau\Content\Mordhau\Maps\*
- followed by the game mode (SKM, FFA, etc.) and the map names. You should be able to figure how to set your desired map as the default one, just be careful because not every map may have all modes available (for example, Grad doesn't have a TDM variation).
- ________________________________________
- ##4) Run the server executable through a shortcut
- You may want to see the server console log window while the server is running. To do this:
- > @TINTIN said:
- > 1. Make a shortcut to "MordhauServer.exe" (this file is in the root folder of the Mordhau Dedicated sv files)
- > 2. Go to properties on the newly created shortcut
- > 3. Under the target field you should have a path that starts and ends with a "
- > 4. After the last one add -log
- >
- > Example:
- > "D:\Programs\Steam\steamapps\common\Mordhau Dedicated Server\MordhauServer.exe" -log
- You may want to add more parameters to that line. [Here's](https://docs.unrealengine.com/latest/INT/Programming/Basics/CommandLineArguments/) a full list of arguments supported by UE4.
- ALTERNATIVELY: Just double-click the **MordhauServer-Win64-Shipping.exe** executable in *<unit>:\SteamLibrary\SteamApps\common\Mordhau Dedicated Server\Mordhau\Binaries\Win64\*.
- Btw, if you need to report a bug or server crash, these server logs are stored in *\Mordhau Dedicated Server\Mordhau\Saved\Logs\*.
- ~~I've read somewhere that you could/should add some start-up parameter in Steam (e.g., "-log", in order to display the server console), but for some reason servers launched through steam never show on the browser list. Tried to do this on 2 different computers but it just doesn't work.~~
- _______________________________________
- ##5) Join the server in Mordhau
- To log-in as admin, you'll need to open up the console and type "adminlogin YOUR_PASSWORD" (w/o quotes). Now you can restart the current map, kick players, change the map to something else, etc.
- ###NOTE: If you can't get the console to open in the client (default key is Tilde) it's probably due to having a different keyboard layout.
- To fix this:
- 1\. Go to Mordhau's client location: *<unit>:\SteamLibrary\SteamApps\common\Mordhau\Engine\Config\* and open the **BaseInput.ini** file (notice it's the folder where Mordhau was installed, and not the server files).
- 2\. Locate this line:
- >+ConsoleKeys=Tilde
- 3\. Change "Tilde" to a different key, for example "J" (a key which does nothing in-game iirc), and save the file.
- 4\. Restart Mordhau.
- ____
- ###Admin Command list:
- * adminlogin <password> // required to perform any other admin command
- * adminlist // lists current admins
- * addadmin <STEAMID64> // adds a new admin to the adminlist (I believe this id is saved in %appdata%/Mordhau/.../Game.ini)
- * removeadmin <STEAMID64> // removes specified admin from the admin list
- * changelevel <map name> // Changes the map
- * restartlevel // restarts the current map
- * addbots <integer> // adds desired number of bots
- * removebots <integer> // kills desired number of bots
- * kick
- * ban
- * unban
- * banlist
- * slomo // slow motion (added as an admin command in Alpha build #2). **slomo .5** will get you 50% speed. slomo 2 will get you 200% speed.
- * exit // exits Mordhau game program
- [Here](https://mordhau.com/forum/topic/10249/useful-console-commands) are additional console commands that probably work on single player only. And [here's](https://mordhau.com/forum/topic/10249/useful-console-commands) how to change the game gravity on your server.
- ##6) In the future...
- I hope Triternion adds RCON Admin Tools to remote admin your server.
- It would also be great if more command-line arguments were supported. For example, a basic one, **-DEFGAMEINI=*<customini>*** would make switching server name and rotations a lot more convenient (you'd just have to save and modify different ini files which would act as a preset)
- ______________________
- EDIT: Added a little more info. Thx to Meph for finding out how to keybind the console properly.
- EDIT2: Thanks to Vinc for helping me while I was figuring out how to get the rotation to work.
- EDIT3: Fixed grammar and some corrections to the default map part.
- EDIT4: Potential fix for when your rotation gets stuck: Add a "+" sign at the beginning of each MapRotation entry. If you have multiple admins or banned users, also add a + at the beginning of each line as well.
- EDIT5: Fixes and additions.
- EDIT6: Added some further info. Not entirely up to date.
Add Comment
Please, Sign In to add comment