Hi there,
EDIT: I've edited instructions for getting the game to work and put them here on github along with a script for convenience. When this is no longer necessary (with a future proton update) I will update further.
I'm also using a Saitek Switch Panel with good effect as well - I put together this hack too.
---
I have succeeded in getting CoD to run on Linux and thought I'd post here to let others know if they come looking for info on this. I believe I might be the first to do so - I had some help from Valve via an issue on the proton github repo.
As of August 2021, the instructions I used are:
- In Steam, right click on the game, select Properties, Compatibility, and force use of "Proton Experimental" (with wine mono 6.3) (I also tested with the release candidate of Proton 6.3-6, this works - so try the latest proton if you read this after this version is released.)
- Under "general" set the launch options to PROTON_USE_WINED3D=1 %command%
- After trying to run once (it will probably fail), make a symbolic link as follows:
ln -s $HOME/.steam/root/userdata $HOME/.local/share/Steam/steamapps/compatdata/754530/pfx/drive_c/Program\ Files\ \(x86\)/Steam/userdata
If you installed on another drive, edit the locations appropriately.
After this the game should run. Performance is excellent for me.
Now for challenge number 2, at this stage the game works and my HOTAS joystick is detected but not my CH Pro Pedals USB. (If I get a better fix to this problem I will update this post). If I run the game from outside Steam, via the file explorer, I find that the pedals are detected, like this. I don't know why!
WINEPREFIX=$HOME/.local/share/Steam/steamapps/compatdata/754530/pfx $HOME/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/files/bin/wine64 explorer
Then I navigate to the CoD directory on Z: and double-click Launcher64.exe. And the pedals work!
Challenge number 3, is getting head tracking working with Opentrack. This I am yet to solve but will keep working on it, and update this thread if I succeed. So far, I if I use the joydev output they are visible in wine but CoD doesn't detect it - this makes sense as there's no joystick options for head movement. Using the wine output option, which I think is TrackIR emulation, hasn't worked for me so far. This could be a tricky one to get everything right.
I'm very keen to get into this game and re-fight the Battle of Britain so hopefully can get this last issue sorted out!
EDIT: Success! I now have the game running well on Linux with HOTAS, pedals and head tracking working with Opentrack. It took a bit of doing (and there goes another weekend), and I still need to figure out the bits that are voodoo and the bits that are actually necessary, but there shouldn't be huge obstacles to anyone reproducing what I have done. The trick with Opentrack seemed to be building it myself with the latest version of wine (6.15) installed, and then using the wine output of Opentrack with the correct settings (as per this guide).
I will make a more detailed write up and may test it on a clean install. I suspect that step regarding the pedals is unnecessary, I'll keep working on that bit.
Now I can sleep easy and get round to learning and playing the game..!
Bookmarks