SHARE
TWEET

Mordhau Dedicated SV guide EDIT6

a guest Apr 30th, 2019 1,499 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Here's a video to walk you through the process made by **[InX] Atropos Orbis**
  2.  
  3. https://www.youtube.com/watch?v=5_5oeEge82w
  4.  
  5. ___________________________________
  6.  
  7. ##1) Add port forwarding rules for the required ports
  8.  
  9. You'll need access to your router/modem control panel to add some port forwarding entries.
  10.  
  11. 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.
  12.  
  13. If you have any weird firewalls you may need to add exceptions or tweak them accordingly.
  14.  
  15. ________________________________
  16.  
  17. ##2) Install Mordhau Dedicated Server files
  18.  
  19. ![mordsv1.png](https://s3-eu-west-1.amazonaws.com/mordhau-media/spirit/images/2012/a20928b86490dced5b7fb5a84d3396d6.png)
  20.  
  21. 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.
  22.  
  23. _________________________________________
  24.  
  25. ##3) Edit the server's **DefaultGame.ini**
  26.  
  27. 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.
  28.  
  29. ###Basic Setup:
  30.  
  31. This is what your server lines should look like:
  32.  
  33. >  [/Script/Mordhau.MordhauGameSession]
  34. >  bIsLANServer=False
  35. >  MaxSlots=*<No. of desired slots>*
  36. >  ServerName=*<Your server name>*
  37. >  ServerPassword=*<Optional. Only people with the passwords will be able to join>*
  38. >  AdminPassword=*<Optional. Password required to log in as an Admin>*
  39. >  Admins=*<STEAMID64 of your user>*
  40. >  BannedPlayers=
  41.  
  42. * 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.
  43.  
  44. * If you want to have multiple admins, add multiple **Admins=<ID>** lines, with the STEAM64 ID of each user, separated by a comma.
  45.  
  46. * Notice that if you're on the adminlist you don't actually need the admin password.
  47.  
  48. ###Map Rotation:
  49.  
  50. 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]*.
  51.  
  52. **[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.]**
  53.  
  54. ####**EDIT: If your rotation gets stuck, adding a + sign at the beginning of each MapRotation line seems to work.**
  55.  
  56.  
  57. **Game Mode prefix codes:**
  58.  
  59. * FL = Frontline
  60. * BR = Battle Royale
  61. * HRD = Horde
  62. * SKM = Skirmish
  63. * FFA = FFA/Deathmatch
  64. * TDM = Team Deathmatch
  65.  
  66.  
  67. **Current map names** (29/04/2019)
  68.  
  69. Not all maps can run every game mode.
  70.  
  71. Contraband; ThePit; Grad; Camp; Taiga; MountainPeak; Tourney;
  72.  
  73. For example, if you want a Skirmish mode only server, your file should look like this:
  74.  
  75. >[/Script/Mordhau.MordhauGameMode]
  76. >+MapRotation=SKM_Contraband
  77. >+MapRotation=SKM_ThePit
  78. >+MapRotation=SKM_Grad
  79. >+MapRotation=SKM_Camp
  80. >+MapRotation=SKM_Tourney
  81. >+MapRotation=SKM_Taiga
  82. >+MapRotation=SKM_MountainPeak
  83.  
  84. ***NOTE: By default, the server always seems to load FFA_ThePit as the first map in the rotation. To change this, read below.**
  85.  
  86. ###Changing the server's default map:
  87.  
  88. 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.
  89.  
  90. The only thing we'll be changing now is the **ServerDefaultMap** line.
  91.  
  92. By default it's:
  93.  
  94. >ServerDefaultMap=/Game/Mordhau/Maps/ThePit/FFA_ThePit.FFA_ThePit
  95.  
  96. If, for example, you want a map "SKM_Contraband" to be the default map, change it to this:
  97.  
  98. >ServerDefaultMap=/Game/Mordhau/Maps/Contraband/SKM_Contraband.SKM_Contraband
  99.  
  100. Notice how the first part of the above syntax corresponds to the map files inside the folder
  101.  
  102. >*<unit>:\SteamLibrary\SteamApps\common\Mordhau Dedicated Server\Mordhau\Content\Mordhau\Maps\*
  103.  
  104. 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).
  105.  
  106. ________________________________________
  107.  
  108. ##4) Run the server executable through a shortcut
  109.  
  110. You may want to see the server console log window while the server is running. To do this:
  111.  
  112. > @TINTIN said:
  113.  
  114. > 1. Make a shortcut to "MordhauServer.exe" (this file is in the root folder of the Mordhau Dedicated sv files)
  115. > 2. Go to properties on the newly created shortcut
  116. > 3. Under the target field you should have a path that starts and ends with a "
  117. > 4. After the last one add -log
  118. >
  119. > Example:
  120. > "D:\Programs\Steam\steamapps\common\Mordhau Dedicated Server\MordhauServer.exe" -log
  121.  
  122. 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.
  123.  
  124.  
  125. ALTERNATIVELY: Just double-click the **MordhauServer-Win64-Shipping.exe** executable in *<unit>:\SteamLibrary\SteamApps\common\Mordhau Dedicated Server\Mordhau\Binaries\Win64\*.
  126.  
  127. Btw, if you need to report a bug or server crash, these server logs are stored in *\Mordhau Dedicated Server\Mordhau\Saved\Logs\*.
  128.  
  129. ~~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.~~
  130.  
  131. _______________________________________
  132.  
  133. ##5) Join the server in Mordhau
  134.  
  135. 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.
  136.  
  137. ###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.
  138.  
  139. To fix this:
  140.  
  141. 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).
  142. 2\. Locate this line:
  143.  
  144. >+ConsoleKeys=Tilde
  145.  
  146. 3\. Change "Tilde" to a different key, for example "J" (a key which does nothing in-game iirc), and save the file.
  147. 4\. Restart Mordhau.
  148.  
  149. ____
  150.  
  151. ###Admin Command list:
  152.  
  153. * adminlogin <password> // required to perform any other admin command
  154.  
  155. * adminlist // lists current admins
  156.  
  157. * addadmin <STEAMID64> // adds a new admin to the adminlist (I believe this id is saved in %appdata%/Mordhau/.../Game.ini)
  158.  
  159. * removeadmin <STEAMID64> // removes specified admin from the admin list
  160.  
  161. * changelevel <map name> // Changes the map
  162.  
  163. * restartlevel // restarts the current map
  164.  
  165. * addbots <integer> // adds desired number of bots
  166.  
  167. * removebots <integer> // kills desired number of bots
  168.  
  169. * kick
  170.  
  171. * ban
  172.  
  173. * unban
  174.  
  175. * banlist
  176.  
  177. * 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.
  178.  
  179. * exit // exits Mordhau game program
  180.  
  181.  
  182. [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.
  183.  
  184. ##6) In the future...
  185.  
  186. I hope Triternion adds RCON Admin Tools to remote admin your server.
  187.  
  188. 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)
  189.  
  190. ______________________
  191.  
  192. EDIT: Added a little more info. Thx to Meph for finding out how to keybind the console properly.
  193.  
  194. EDIT2: Thanks to Vinc for helping me while I was figuring out how to get the rotation to work.
  195.  
  196. EDIT3: Fixed grammar and some corrections to the default map part.
  197.  
  198. 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.
  199.  
  200. EDIT5: Fixes and additions.
  201.  
  202. EDIT6: Added some further info. Not entirely up to date.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top