Euro Truck Simulator 2

Euro Truck Simulator 2

Not enough ratings
TruckersMP flatpak with opentrack on Arch
By Moist Gusset
This is how i install and play TruckersMP with flatpak Steam along with MangoHud, vkBasalt and opentrack on Arch.
   
Award
Favorite
Favorited
Unfavorite
1. INSTALL FLATPAK STEAM + MANGOHUD & VKBASALT
pacman -S flatpak gamemode wget

flatpak install flathub com.valvesoftware.Steam
flatpak install flathub org.freedesktop.Platform.VulkanLayer.MangoHud
flatpak install flathub org.freedesktop.Platform.VulkanLayer.vkBasalt

I chose option 3 for both MangoHud and vkBasalt and had no issues.

Once you are loaded into steam right click Euro Truck Simulator 2 > Properties > Compatibility
and set it to Proton Experimental then install the game.

When the game is installed run it once then close it then move to step 2.

for the MangoHud config

mkdir ~/.var/app/com.valvesoftware.Steam/config/MangoHud

cd ~/.var/app/com.valvesoftware.Steam/config/MangoHud

grab the config from here:

wget https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf
2. SETUP OPENTRACK
go to https://github.com/markx86/opentrack-launcher and follow the steps for flatpak OR just type the following in the terminal:

mkdir -p ~/.var/app/com.valvesoftware.Steam/bin

wget https://raw.githubusercontent.com/VolatileMark/opentrack-launcher/master/opentrack-launcher -O ~/.var/app/com.valvesoftware.Steam/bin/opentrack-launcher

echo '#!/bin/sh' > ~/.var/app/com.valvesoftware.Steam/bin/7z

echo '/usr/bin/flatpak-spawn --host 7z $@' >> ~/.var/app/com.valvesoftware.Steam/bin/7z

chmod +x ~/.var/app/com.valvesoftware.Steam/bin/7z ~/.var/app/com.valvesoftware.Steam/bin/opentrack-launcher

flatpak override --user --env=PATH="/app/bin:/app/utils/bin:/usr/bin:/home/$USER/.var/app/com.valvesoftware.Steam/bin" --socket=session-bus com.valvesoftware.Steam

Then right click Euro Truck Simulator 2 > Properties and in the launch options add opentrack-launcher %command%

Load the game and wait for the game and opentrack to open. Once opentrack and the game has opened close them both then remove opentrack-launcher %command% from the game properties as it will be loaded with the truckersmp-cli config later.
3. INSTALL & SETUP TRUCKERSMP-CLI
go to the arch AUR and download and install truckersmp-cli OR just type the following in the terminal:

mkdir ~/.git && cd ~/.git

git clone https://aur.archlinux.org/truckersmp-cli.git && cd truckersmp-cli

makepkg PKGBUILD -sic

then create the config folder and conf file.

mkdir ~/.config/truckersmp-cli && cd ~/.config/truckersmp-cli

nano truckersmp-cli.conf

and add the following and change <user> to your username.

[DEFAULT]

rendering-backend = dx11

disable-steamruntime = true

game-directory = /home/<user>/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Euro Truck Simulator 2/

prefix-directory = /home/<user>/.var/app/com.valvesoft.Steam/.local/share/Steam/steamapps/compatdata/227300/pfx/

proton-directory = /home/<user>/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton - Experimental/

[ets2]
game-options = -nointro -64bit

[ets2mp]
without-rich-presence = true

[thirdparty.programname]
executable = /home/<user>/.var/app/com.valvesoftware.Steam/.local/share/opentrack-launcher/install/opentrack.exe
wait = 10
wants-rich-presence = false

4. RUN TRUCKERSMP
TruckersMP on first load will download and install the launcher so it will take some time.

Type the following in the terminal to run TruckersMP and replace <username> with your steam username.

gamemoderun MANGIHUD=1 ENABLE_VKBASALT=1 truckersmp-cli -c ~/.config/truckersmp-cli/truckersmp-cli.conf -n <username> -f start ets2mp

If you get errors then try a reboot or comment out the last 4 lines in the truckersmp-cli.conf file then re run the command.

If you dont need opentrack then comment out the last 4 lines in the config.
PLAYSTATION EYE WEBCAM FPS INCREASE & SETTINGS
opentrack use Input Neuralnet Output freetrack 2.0 Enhanced

This is how i increase the webcams fps past 60. I am running wayland/hyprland so i install the following packages:

pacman -S v4l-utils qt5-base

then in the terminal type the following:

v4l2-ctl -d /dev/video0 --set-parm=120

make sure under options in opentrack > filters is set to the lowest resolution and 60 fps and thread count 4. If you start tracking and go back to the filters tab you will notice at the bottom your fps is above 60.

I also max out smoothing and under output i disable everything except Yaw. However if you would like to look up/down then enable Pitch. These settings work best for my setup.

Everything here works for me on a old and new Arch install. There is probably a much better and cleaner way of doing this but it works for me and now i can play TruckersMP with head tracking and with flatpak steam. Hopefully this will help others! Happy Trucking!!!.
1 Comments
skobi_TVCASE.GIFT Jun 2, 2024 @ 10:54pm 
so very good