Mordhau

HowTo play Mordhau Alpha on Linux (Steam Play)

Knight 18 55
  • 1
  • 13 Jan '19
 KoFDGucky

Hi Mordhau Fans,

I'm a linux gamer and since the the first alpha access to Mordhau, I'm trying my luck to get this awesome game running on my operating system: Linux Mint (19.1)

The official statement from the dev-team about Linux support can be found here:
https://mordhau.com/faq/#will-you-support-linux
and additional informaton on these posts
https://mordhau.com/forum/topic/3424/gnulinux-support-during-alpha/
https://mordhau.com/forum/topic/250/ue4-vulkan-linux-support/

Back in 2017, when Mordhau's first alpha was released to the kickstarter backers, it was possible to start and run the game on linux, but it had some challenges. While I was getting quite acceptable high fps with DXVK, the network code and audio was broken and I could not join any servers besides my own running on localhost. With that state on linux the game did not make much fun and I could not recommend Mordhau to other linux gamers.

Valve released "Steam play" (Proton) on 21th of august last year,
https://steamcommunity.com/games/221410/announcements/detail/1696055855739350561
and since the latest Proton 3.16-6 update on dezember 2018,
https://github.com/ValveSoftware/Proton/wiki/Changelog
I could announce that all the problems I had on Linux playing Mordhau are gone!

This little guide shows how to run Mordhau on Linux, eventhough there is no official native Linux version out yet. I'll hope that some day, Mordhau will have native Linux support from the devs, but in the meantime you do not have to wait and can try it out yourself. From my personal perspective, Mordhau has a high chance of getting towards the "Platinum" state on https://www.protondb.com/, when mordhau's steam db entry will be officially available and if there are enough players submitting a report. (Trigger@Jax ;-)


How to play Mordhau on Linux

1.) Make sure you have fullfill Valve's Steam Play (Proton) requirements:
Read --> https://github.com/ValveSoftware/Proton/wiki/Requirements

Basically that means your graphic card needs to support Vulkan and you sould installed the latest driver
For nvidia cards that means driver version must be >= 396.54

I'm running Mint 19.1 and I'm using the latest nvidia ppa driver:
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main

$ nvidia-smi
Sun Jan 13 15:11:54 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.25 Driver Version: 415.25 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+

Nivida_latest_driver2.png

note1: steam beta is no longer needed
note2: increasing file descriptors limits for mordhau is optional, as it's for performance optimisation only

2.) Enable Steam Play

Steam --> Settings --> Steam Play --> Advanced
--> Enable Steam for "all" titles (as Mordhau is not yet an officially supported by Valve)
--> Compatibility Tool --> use "Proton 3.16-6"

Steam_Play_activate_latest_proton.png

Restart Steam

3) Install Mordhau on your steam list and hit play

Mordhau_play_through_steam_play.png

et voíla, have fun playing Mordhau on Linux ;-)


This guide has been testet on the following system:

Systeminfos:
$ inxi -Fz
System: Host: gucky-desktop Kernel: 4.15.0-43-generic x86_64 bits: 64 Desktop: Cinnamon 4.0.9 Distro: Linux Mint 19.1 Tessa
Machine: Type: Desktop Mobo: ASRock model: Z68 Extreme4 Gen3 serial: <filter> BIOS: American Megatrends v: P1.00
date: 07/08/2011
CPU: Topology: Quad Core model: Intel Core i7-2600K bits: 64 type: MT MCP L2 cache: 8192 KiB
Speed: 1596 MHz min/max: 1600/3800 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1596 4: 1599 5: 1592 6: 1596 7: 1596
8: 1596
Graphics: Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics driver: i915 v: kernel
Device-2: NVIDIA GP104 [GeForce GTX 1070] driver: nvidia v: 415.25
Display: x11 server: X.Org 1.19.6 driver: nvidia tty: N/A
OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 415.25
Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio driver: snd_hda_intel
Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
Sound Server: ALSA v: k4.15.0-43-generic
Network: Device-1: Broadcom Limited NetLink BCM57781 Gigabit Ethernet PCIe driver: tg3
IF: enp12s0 state: up speed: 1000 Mbps duplex: full mac: <filter>

Nvidia-Driver:
$ nvidia-smi
Sun Jan 13 15:11:54 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.25 Driver Version: 415.25 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+

Vulkan:
$ vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.82


Knight 18 55
  • 1
  • 13 Jan '19
 KoFDGucky

My personal test results:

  • running around 70-80fps average with all mordhau graphic settings on ultra (WQHD)
  • initial map and character loading times are a little bit longer then on windows
  • smooth gameplay, no difference between win7 and linux noticable

Some impressions:

20190113142606_1.jpg

20190113142431_1.jpg

20190113143823_1.jpg

20190113142529_1.jpg

note:
high-ping was caused by me connecting to a server with players in russia

Baron 1551 2087
  • 14 Jan '19
 yourcrippledson

How many bots/players did you test at a time with that fps?

Knight 18 55
  • 1
  • 16 Jan '19
 KoFDGucky

@yourcrippledson said:
How many bots/players did you test at a time with that fps?

I've test several matches on various servers. The screenshots above were made in match on the Eternam Kingdom Server with around 10 active players. The fps-rate have been quite consistent during my test-matches.
The graphics settings (display resolution, quality level, antialiasing, etc) have effects the fps-rate. So far, I did not notice a fps-rate drop or increase depending on the number of players.

Knight 18 55
  • 17 Feb '19
 KoFDGucky

Just an quick update on the topic:

Valve is pushing Steam Play in the last months and we Linux Gamers get some nice updates nearly every week. Mordhau profits a lot from these updates.

For Example:

  • Added gnutls 3 to the Steam Runtime, fixing network connectivity issues in many Steam Play titles
  • Fixed 0-byte downloads getting queued on startup for all Steam Play titles
  • Fixed incorrect mouse wheel scrolling offsets
    Source: Steam Client Beta Update - January 16

One in particular I found quite nice is:

So on Linux, the only thing you have to to now to play Mordhau:

Left click Mordhau on your Steam Library --> Preferences --> Force Steam Play for this title

Force_Steam_Play_for_Mordhau.png

Additionally FPS rate seems to have increase quite a bit...but I don't know if this is caused by the release or the new proton beta with DXVK updated to 0.96...

20190217222612_1.jpg

From my current perspective Mordhau could get Platinum rating on protondb:
https://www.protondb.com/app/629760

Please help and submit some protondb report when Mordhau is released ;-)

@Jax: If you read this, please check out what is needed / what are the requirements from Valve to get Mordhau officially listed as a Steam Play title. It's worth a try.

4 2
  • 19 Feb '19
 winicius

Linux gamer here.

It is great to know this, but I hope there is native Linux support in the future(preferably using Vulkan =])

Really looking forward to the release

Btw currently Mordhau has a pretty low score on proton: https://www.protondb.com/app/629760. Could you submit a report there?

Knight 18 55
  • 19 Feb '19
 KoFDGucky

I've tried to submit a report several times but it did not work, because Mordhau was not officially listed on steam.

The announcement on 30.01.2019 changed that:
Mordhau "coming soon" Steam store page is now live!

My report is now submitted. Thx for the hint ;-)

Knight 18 55
  • 17 Mar '19
 KoFDGucky

I was able to test the new game modes this weekend with the new proton version
proton-version.png
which includes DXVK 1.0.

IMPRESSIONS

Here are some fresh impressions for Mordhau on Linux, where the current state of the game runs perfectly (platinum status) with all settings to ultra:

Gamemode: Frontline
20190316000018_1.jpg

20190316000358_1.jpg

20190316012506_1.jpg

Gamemode: Battle Royal
20190317213318_1.jpg
20190316232529_1.jpg

New Character Stats:
20190316001744_1.jpg

Personal test results:
During my hole Test (~10h) I did not encounter a single crash / bug playing with proton on steam play. I was able to test the group feature this weekend was able to join a server or frontline match together with a group of 3 people. Mordhau in it's pre release state have yet reached proton's platinium rating, in my point of view. From gameplay perspective, if I would let you play on my pc, with g-sync on, I'll bet you could not say if I have Mordhau booted up on Windows or Linux ;-)

PERFORMANCE:
20190317215647_1.jpg

  • ~ 60-90 fps avarage all settings on ulta (1440p WQHD) in Frontline with > 40 players on the server
  • Mordhau consumes <5gb of RAM form OS
  • Mordhau uses ~5gb ram from graphics card
  • ping times are 10ms in avarage lowert then the windows once
  • alt tap to desktop or switch to second desktop works as fast as hell, so no wait times when you're simultaneously chatting on the mordhau discord

CPU & Ram Usage while playing:
CPU_usage.png

Lowest framerate I was able to achieve was with fire effects on the TAIGA map:
20190317215622_1.jpg

Knight 941 2568
  • 17 Mar '19
 Pred

Nerd.

2 1

Thx Gucky for your effort.

Looking forward to join you on Mint!

4 2
  • 2 Apr '19
 winicius

@Pred said:
Nerd.

Aren't we all?

It is great to know that @KoFDGucky. Many thanks for the info and details. Really looking forward to the release.

btw, is it the breeze theme on you terminal?

2017 2105
  • 3 Apr '19
 SWSeriousMike

Did anyone of you noticing that some objects disappear when in the corner of the screen? Most of the time it's just ammo chests that flicker, but in FL I had the broken siege tower become transparent.
That would make a platinum rating a little bit too generous.

2017 2105
  • 1
  • 7 May '19
 SWSeriousMike

I recently upgraded from Ubuntu 18.04 LTS to Ubuntu 19.04 expecting a performance increase from the new kernel (Vega56). Instead my frame rate shrunk dramatically with the occasional drop to 20 fps at 1680 x 1050.

Now my actual question: What settings (distro, kernel, proton version etc.) worked for you to get stable 60 fps? I will probably try a clean installation instead of a release upgrade unless the performance drop somehow was to be expected.

5 0
  • 3
  • 20 May '19
 youb

hello,
I'm under arch linux,
with a discret card / bumblebee, so I have one session with Nvidia only.
for example Wolfsentein II works this way ...

so when I click on play, I get the lauching box, then nothing

$nvidia-smi
Mon May 20 19:36:32 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.14 Driver Version: 430.14 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 106... Off | 00000000:01:00.0 Off | N/A |
| N/A 41C P5 7W / N/A | 241MiB / 6078MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 987 G /usr/lib/Xorg 104MiB |
| 0 3309 G ...-token=01656B7CF73C2BFC01100F6D08A67BDD 94MiB |
| 0 6180 G ...ub/.local/share/Steam/ubuntu12_32/steam 37MiB |
| 0 6189 G ./steamwebhelper 2MiB |
+-----------------------------------------------------------------------------+

//////////////////////////////////////////////////

======================
Proton: 1557774142 proton-4.2-4
SteamGameId: 629760

Command: ['/run/media/youb/OS/steam/steamapps/common/Mordhau/Mordhau.exe']

////////////////////////////////////////////////
what I get in terminal:
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to ProcessingInstallScript with ""
installscript_posix.cpp (357) : Assertion Failed: strCommonRedistForeignInstallPath != ""
installscript_posix.cpp (357) : Assertion Failed: strCommonRedistForeignInstallPath != ""
installscript_posix.cpp (357) : Assertion Failed: strCommonRedistForeignInstallPath != ""
installscript_posix.cpp (357) : Assertion Failed: strCommonRedistForeignInstallPath != ""
Traceback (most recent call last):
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 369, in <module>
try_copy(basedir + "/dist/lib/wine/dxvk/openvr_api_dxvk.dll", prefix + "/drive_c/windows/syswow64/")
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 131, in try_copy
shutil.copy(src, dst)
File "/usr/lib/python3.7/shutil.py", line 245, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
IsADirectoryError: [Errno 21] Is a directory: '/run/media/youb/OS/steam/steamapps/compatdata/629760/pfx//drive_c/windows/syswow64/'
installscript_posix.cpp (418) : Assertion Failed: Standalone evaluator returned error code for app 629760
installscript_posix.cpp (418) : Assertion Failed: Standalone evaluator returned error code for app 629760
Traceback (most recent call last):
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 369, in <module>
try_copy(basedir + "/dist/lib/wine/dxvk/openvr_api_dxvk.dll", prefix + "/drive_c/windows/syswow64/")
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 131, in try_copy
shutil.copy(src, dst)
File "/usr/lib/python3.7/shutil.py", line 245, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
IsADirectoryError: [Errno 21] Is a directory: '/run/media/youb/OS/steam/steamapps/compatdata/629760/pfx//drive_c/windows/syswow64/'
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 629760, ActionID 4] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 629760, ActionID 4] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 629760 "", ProcID 8049, IP 0.0.0.0:0
Starting app 629760

Adding process 8049 for game ID 629760
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/youb/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/youb/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/youb/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 629760, ActionID 4] : LaunchApp changed task to Completed with ""
Traceback (most recent call last):
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 369, in <module>
try_copy(basedir + "/dist/lib/wine/dxvk/openvr_api_dxvk.dll", prefix + "/drive_c/windows/syswow64/")
File "/home/youb/JEUX/SteamApp/steamapps/common/Proton 4.2/proton", line 131, in try_copy
shutil.copy(src, dst)
File "/usr/lib/python3.7/shutil.py", line 245, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
IsADirectoryError: [Errno 21] Is a directory: '/run/media/youb/OS/steam/steamapps/compatdata/629760/pfx//drive_c/windows/syswow64/'
Adding process 8050 for game ID 629760
Game removed: AppID 629760 "", ProcID 8049
Exiting app 629760
No cached sticky mapping in ActivateActionSet.JS method call Messaging.PostMessage with 4 arguments
JS method call Messaging.PostMessage with 4 arguments
JS method call Messaging.PostMessage with 4 arguments

I don't know what to do .

2017 2105
  • 1
  • 23 May '19
 SWSeriousMike

Preamble: I'm really not an expert.

Do you have 32 bit vulkanutils installed?

https://github.com/lutris/lutris/wiki/Installing-drivers
Can you verify you have performed the recommended steps from the guide above?

5 0
  • 24 May '19
 youb

yes, following the arch linux wiki, I'm good
"To run a Vulkan application, you will need to install the vulkan-icd-loader package (and lib32-vulkan-icd-loader if you also want to run 32-bit applications), as well as the Vulkan drivers for your graphics card(s):

NVIDIA: nvidia"

2017 2105
  • 24 May '19
 SWSeriousMike

If it runs now consider posting your specs etc. at protondb.

For your convenience here is the link:
https://www.protondb.com/app/629760

5 0
  • 2
  • 16 Aug '19
 youb

ok finally, I manage to get it working
my laptop:
OS: Arch Linux
Kernel: x86_64 Linux 5.2.0-arch2-1-ARCH
CPU: Intel Core i7-7700HQ @ 8x 3.8GHz [25.0°C]
GPU: GeForce GTX 1060 with Max-Q Design (optimus, with intel)
RAM: 15903MiB

game launched under a session launched with nvidia-xrun (only nvidia activated)
proton 4.2.9

packages installed :
lib32-nvidia-vulkan-utils
lib32-opencl-nvidia-vulkan
libvdpau
libxnvctrl
nvidia-vulkan
nvidia-vulkan-utils
nvidia-xrun
opencl-nvidia-vulkan
lib32-vulkan-icd-loader
spirv-tools
vulkan-headers
vulkan-icd-loader
vulkan-mesa-layer
vulkan-tools
dxvk-win32-bin (obsolete)
dxvk-win64-bin (obsolete)

caution: for me game do not launch if it is on a ntfs partition. (moved to /home/$user/.steam/steam/steamapps/common)

2017 2105
  • 16 Aug '19
 SWSeriousMike

@youb said:
caution: for me game do not launch if it is on a ntfs partition. (moved to /home/$user/.steam/steam/steamapps/common)

I'm no expert but I guess even if it would run, the performance might take quite a hit.

5 0
  • 16 Aug '19
 youb

@SWSeriousMike said:

@youb said:
caution: for me game do not launch if it is on a ntfs partition. (moved to /home/$user/.steam/steam/steamapps/common)

I'm no expert but I guess even if it would run, the performance might take quite a hit.

u r right, but not important: the more I go, the less I open win.
I will put the game on my nvme SSD :P