Hi all,
This guide should get you all set up with running CloD on Linux with Opentrack and the Neuralnet tracker.
This is a compilation of the information I have found from this post/GitHub page, the OpenTrack wiki and this web page.
My goal is to put together the information from these sources into an up-to-date, easy-to-follow, step-by-step guide for setting up CloD on Linux with Opentrack and the Neuralnet tracker.
Notes:
Please check the "Edits" at the bottom before starting.
I will point out that this may not work on all distros, display servers, desktop environments or computer systems. I have tested this on Linux Mint 22.2 Cinnamon (X11) and have gotten it working to a satisfactory level. By that I mean I have overall experienced less crashes and graphical bugs than on Windows. My attempts on getting it working with Commodore OS Vision 3 have failed. I have tested Fedora (yet)
Proton Experimental brings all the latest updates, but sometimes it can also bring unexpected errors. One example I had was with FSX. After a recent Experimental update, FSX would open, but give an error saying that my GPU was unsupported, and then close. I fixed this by going back to an older version of Proton.
Proton Experimental, as of writing, is Proton 10.x. I will update this guide when a newer version of Proton has been released (i.e. Proton 10.x is it's own version and Experimental is Proton 11.x).
As of writing, the current version of CloD is 5.046.
The folks at Team Fusion have been hard at work making a graphics update, this includes a SpeedTree update and a trueSKY implementation. This guide may become obsolete when the update arrives. If that does happen, I will update this guide as soon as I find a fix. IL-2 BoX runs perfectly fine on Linux so I wouldn’t be too worried.
CloD Installation Steps:
1. Download
Download CloD as normal.
Once it has finished, right-click the game in your Steam Library and select Properties. Go to Compatibility and check Force the use of a specific Steam Play compatibility tool. From the drop-down list select Proton Experimental.
2. Wine prefix
Click the Play button. This will run the game for the first time and will set-up the Wineprefix.
This will let you know if the game works without any configuration. Be warned though, I have spotted CloD working first go, but then second go and onwards it crashes. You may still need to follow along with this guide.
3. Launch Options
Right click the game in your Steam Library and select Properties. Enterinto the Launch Options text-box.Code:PROTON_USE_WINED3D=1 %command%
Edit: It appears that CloD now works on Mint without having to do this. My suggestion would be to run CloD without it and if it stops working add the launch command in.
With Proton 10.x (current Experimental version), this appears to be all that you need to do to run the game.
If this does not run, then check out the GitHub page I linked above. There are additional steps there. If you do not want to run into the possibility of an Experimental update breaking the game, then I suggest you use Proton-GE (a fork of Proton). You can download a tool called ProtonUp-qt from FlatHub. It is pretty straightforward to use and you can install a Proton-GE 10.x version. The version you download should appear in the Force the use […] menu in Steam. This may require a restart of Steam if you left it open.
Install ProtonUp-qt: flatpak install flathub net.davidotek.pupgui2
Quirks:
Some quirks I have found with the game running on Linux are listed here.
* Some text fails to render. This includes the credits and single-player after action statistics screen. As a temporary replacement I made this tool. I will give an update if I find the fix.
* Sometimes the game minimises when you click Fly. You will have to Alt+TAB back into the game or click the icon on the panel. Edit: Set Full-Screen mode to "Pseudo".
I have noticed that on Proton 9.x the game sometimes behaves as it would on Windows, but it is a bit unreliable and sometimes minimises anyway. I recommend sticking to Proton 10.x/Experimental as it is easier to get CloD working.
* Unable to host a multi-player game.
* When setting up inputs, if the joystick-name+input is too long it will cut off-screen slightly. For me, the OK button is still visible, but if it is off-screen then plugging in a second monitor will allow you to click OK on the second screen.
OpenTrack:
OpenTrack does have a Linux version, but it is only meant for “developers”. This is another way of saying that you will have to compile it yourself and it may or may not work out of the box. Despite this, running OpenTrack with CloD is rather easy... at least compared to installing Arch Linux. Don't worry, I have made sure to make this guide easy to follow.
This section will be broken up into the following:
* Installing the Wine runtime (to get Wine as an output option)
* Downloading ONNX runtime (Required for Neuralnet webcam head-tracking)
* Downloading and Installing OpenTrack
I am unsure whether there are any extra steps to make Opentrack compatible with TrackIR head-trackers. I do not have a TrackIR and as a result am unable to test for myself. If TrackIR doesn’t work, then I encourage you to try Neuralnet, it is actually rather good. If you do have a TrackIR and are able to test it with Linux then please inform me of your findings.
1. Installing the Wine Runtime
Wine is a utility for running Windows programmes on Linux.
We need Wine to get the Wine Output in Opentrack.
Linux Mint includes a Wine runtime package in the repository, but this is out of date (it is Ubuntu/Debian-based).
Below are the instructions to install Wine using the official Wine repository for Linux Mint 22.2 (Ubuntu 24.04).
If you use another version of Debian/Ubuntu/Mint here is the official Wine installation guide.
Other versions of Linux, such as Arch or Fedora, offer more up to date Wine packages in their repositories. A quick internet search will have you covered. (e.g. How to install Wine on Fedora or Wine package name on Fedora)
Linux Mint 22.2 Instructions:
a) Download and add the repository key:
b) Enable the 32-bit repository:Code:sudo mkdir -pm755 /etc/apt/keyrings wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
c) Add the sources file:Code:sudo dpkg --add-architecture i386
d) Update repositories:Code:sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
e) Install Wine (Stable):Code:sudo apt update
Entering wine --version into the terminal should return an output.Code:sudo apt install --install-recommends winehq-stable
2. Downloading the ONNX Runtime
The ONNX runtime allows you to use the Neuralnet tracker with Opentrack.
Neuralnet works like TrackIR, except it just uses a webcam to look at your face.
I have been using this for a couple of months now and I have not run into any problems. It works well even with a slightly over/under-exposed video feed, and it is even capable of working with more than one face in view. You do not need a good webcam, even a laptop webcam is good enough. Neuralnet does not use a high resolution to begin with (320*240).
Neuralnet is not perfect, but I highly recommend trying it if you are considering getting into head-tracking. Even if you do not plan on using Neuralnet, I recommend downloading ONNX anyway, because if you change your mind you will have to re-compile Opentrack.
Go to https://github.com/microsoft/onnxrun...es/tag/v1.23.2 and download onnxruntime-linux-x64-1.23.2.tgz. To keep your computer disc organised, I recommend downloading this into a folder such as /home/username/onnx/ or /home/username/dependencies/onnx/. Extract the archive by right-clicking it and selecting Extract Here, or by opening the terminal to the archive’s directory and entering: tar zxvf onnxruntime-*.tgz. You may delete the original archive.
3. Downloading and Installing Opentrack
a) Download the following dependencies:
b) Build folderCode:sudo apt install build-essential cmake git libopencv-dev libproc2-dev qt6-base-private-dev qt6-tools-dev cmake-curses-gui
I recommend creating the following path in your home directory called builds.
Do this with the command, mkdir /home/username/builds/, or in the GUI file manager.
c) Clone & build Opentrack
In the builds/ directory:
Code:git clone https://github.com/opentrack/opentrackCode:cd opentrackCode:mkdir buildCode:cd buildPress c to configure. e to exit screen.Code:ccmake ../
You will now see a screen with variables with some values.
Use the arrow keys to select SDK_WINE, press Enter/Return to toggle it to ON.
Use the arrow keys to select ONNXRuntime_DIR.
Press Enter/Return to edit the value and type in the directory of your ONNX runtime download. Mine is /home/username/onnx/onnxruntime-linux-x64-1.23.2
Press Enter/Return to confirm the entry.
Press c to configure, e to exit screen and g to generate.
Code:make -j4Note: I ran into some errors with the above two commands. If you experience any errors, try: sudo apt install wine-stable-dev. This fixed the problem for me.Code:make install
To run Opentrack:
On Linux Mint, you can right click the Menu and select Edit Menu. Select Games and then New Item.Code:./install/bin/opentrack
Enter in the name Opentrack. Click Browse and navigate to your build’s directory. In my case /home/username/builds/opentrack/build/install/bin/. Select the opentrack exec and click OK to confirm the executable. Click OK to confirm the launcher entry.
Now if you go to your menu’s Games section you should see an Opentrack launcher. Clicking this should launch Opentrack.
Setting up Opentrack
Now that you have Opentrack installed it is time to set it up!
In the Input drop-down, select neuralnet tracker. Selecting the button to the right of the drop-down will bring up a configuration window. Make sure the correct camera is selected.
In the Output drop-down, select Wine -- Windows layer for Unix. Click the configuration button. Under Wine variant, select Proton (select version and mode) and then select the Proton version that CloD is using. In the case of this guide it is Proton – Experimental. If you used Proton GE 10.x, select that.
In the Steam Play […] text-box, enter in the Steam ID of the game. In Cliffs of Dover BLITZ’s case, it is 754530.
Everything else can be left at their defaults.
For Opentrack to track your head movement you will need to configure the mappings. The mappings are a matter of personal preference so there isn’t really a one-size-fits-all config.
If you search How to set up Opentrack on YouTube there are many guides that you can follow.
I am still getting my mapping to my liking, but once I am finished it I will upload the file here as an example.
The default mapping will work well enough for the purposes of testing.
Tip: An easy way to check the Steam ID is to use Protontricks. It is a tool for configuring the Wineprefixes of Steam games and I highly recommend it. You can install it from FlatHub with sudo flatpak install flathub com.github.Matoking.protontricks
Clicking Profile will bring down a drop-down menu. Select Create new copied config and call it clod. I like to create different configuration files for my different games as it will remember the Steam ID for each one (meaning that I do not need to manually enter the ID each time I want to play a different game).
Running it with CloD
Starting Opentrack with CloD can be a bit funny.
If you start Opentrack tracking before CloD starts, CloD seems to seize-up and not launch. I have found that you should press Start (in Opentrack) once the IL-2 Sturmovik Cliffs of Dover (& Desert Wings Tobruk) logo appears. This is when the logo appears and before the black background appears. If you miss it you can just Alt+TAB back to Opentrack.
Congratulations! You’ve gotten Opentrack running with CloD on Linux!
BONUS SECTION: Running IL-2 1946 on Linux + Opentrack w/ Neuralnet
This is not the IL-2 1946 part of the ATAG forum, but I am already here talking about Opentrack and Linux, so why not?
If you purchased 1946 through Steam then you are going to have an easier time. All you have to do is create a new copied config in Opentrack but replace CloD's Steam ID with 1946’s one. You can search it up or open Protontricks.
If you purchased 1946 through GOG (like I did) then you will have a few extra steps. This should also work with the original DVD-ROM version if you alter the installation steps to using a DVD-ROM instead of an exec file on the computer’s disc.
Download the IL-2 1946 files from GOG. There should be an .exe file and 2 .bin files. To keep your computer tidy, let’s put these three files in a folder somewhere called 1946_Setup.
Open the terminal and navigate to the folder.
Open the .exe with Wine:Replace the .exe name with yours if it differs.Code:wine “setup_il-2_sturmovik_1946_4.13.4m_(14395).exe”
Make sure the .bin files are in the same directory as the .exe file.
If you put an ampersand (‘&’) at the end of the command (wine “setup*.exe” &) it will open the setup menu in a new instance and you can close the terminal.
Go through the installation as you would on Windows.
IL-2 1946 should now run on Linux.
Opentrack & 1946:
Create a new copied config of your Opentrack profile, call it 1946.
Go to the Wine Output configuration and change it from Proton to Wine. In the drop-down select System Wine. The default Wineprefix, ~/.wine/ should be were 1946 was installed to.
Congratulations! IL-2 1946 (GOG version & DVD-ROM version) should now run on Linux with Opentrack and Neuralnet.
Tips:
* Winetricks is a useful tool for configuring Wineprefixes. It can be found here.
Just download the latest release .zip, extract it, navigate to it in the terminal and run the command sudo make install
Notes:
* I decided to add 1946 to this guide as I struggled to get the GOG version of 1946 (with Wine) to work with Opentrack. For some reason it works if I install it using the wine command (goes to the .wine Wineprefix in your home directory) instead of using a custom Wineprefix set-up with Winetricks. If you manage to get it to work with a custom Wineprefix set-up by Winetricks please let me know.
* I have not tested installing any mods (e.g. BAT, HSFX, etc.,) but it would be possible. When I get around to it, I will create a guide on how to install HSFX and/or BAT on Linux.
Quirks:
* Scroll-menus may only scroll in one direction if you use the mouse scroll-wheel. If you encounter this use the GUI to scroll-bar instead. I have not had this occur when using the trackpad on my laptop.
* Black water is not a problem with Wine and/or Linux. It is a problem with 1946’s graphics and it also occurs on Windows. Make sure these conf.ini lines are as follows:
TexFlags.TexEnvCombine4NV=1If the lines are not already there, put them somewhere under the [Render_OpenGL] header. Also make sure your game graphics are set to OpenGL (this can be set in-game).
TexFlags.TexEnvCombineDot3=1
TexFlags.DepthClampNV=1
TexFlags.SeparateSpecular=1
TexFlags.TextureShaderNV=1
If you have any problems then I will do my best to assist you.
Anything incorrect? Please inform me!
Happy flying!
~ Ramble
Edit 1: Multiplayer seems to work. I still cannot host a server, but I can connect to the ATAG Axis vs Allies Public Server.
Edit 2: I have tested this on a spare Linux Mint 22.2 laptop that has had no previous CloD or Opentrack installations. If you encounter any errors please inform me so I can look into it.
Edit 3: You can select a static Proton 10.x version. It is at the very bottom of the Proton version list.
Edit 4: The "--" in the Wine installation command got copied as an em dash.




Reply With Quote



Bookmarks