I’ve always been a big fan of HITMAN 3 by IOI Interactive. After switching to Linux, I was able to play the game without any problems thanks to Valve’s Proton. Thanks Valve!
Every now and then, however, I want to try out certain passages or functions, or just go completely crazy. Under Windows, I had a trainer that patched the game and gave me infinite ammunition, for example. But this trainer wasn’t available on Linux.
It took a while, but in the end I found a universal way to launch another Windows program in the context of a Steam game that was launched with Proton.
You will need:
- Steam
- Proton
- The game’s app ID (e.g., 1659040, can be found on steamdb.info)
- The path where Steam (not the game) is installed (usually under $HOME/.steam/steam)
#!/bin/sh
export STEAM_COMPAT_APP_ID=1659040
export STEAM_BASE_FOLDER=$HOME/.steam/steam
export STEAM_COMPAT_CLIENT_INSTALL_PATH=$STEAM_BASE_FOLDER
export STEAM_COMPAT_DATA_PATH=$STEAM_BASE_FOLDER/steamapps/compatdata/$STEAM_COMPAT_APP_ID
export STEAM_COMPAT_PROTON=1
"$HOME/.local/share/Steam/steamapps/common/Proton Hotfix/proton" run "Z:\home\nevo\Documents\HITMAN 3 v3.10-v3.210 Plus 13 Trainer.exe"
Unfortunately, this way does not work for Steam running with Flatpak. I’m still looking for a solution, but I couldn’t
get access to the Steam Runtime and the WINEPREFIX because of Flatpak’s sandboxing with Bubblewrap and accessing it
through flatpak enter doesn’t seem to work.