Announcing "protonhax" tool fork for use with Lutris

Hi,

I’ve had problems with launching multiple applications in the same prefix (and memory space) using Lutris. I do not know why this happens, and do not know how Lutris works internally. I’ve tried to look around in the launcher scripts, but came up empty.

So, as a stop-gap, I have forked jcnils’s script called “protonhax”, and made it work with Lutris games.
You can find the new fork here: https://github.com/Will40/protonhax/

To use it on Lutris you just have to:

  • Right-click the game > Configure > System Options (Click on “Advanced” toggle) - > Game Execution
  • Set Command prefix as protonhax init

EDIT: Noticed that my script only works on games run with Steam Proton, it fails with wine runner. I’m on it now, trying to fix that. Also not yet sure what happens if Lutris is installed as non system package (from flatpak for example). Sorry about all the mess.

EDIT2: New pre-release version is out, added Lutris wine support.

Hope someone will find this tool useful.

2 Likes

It seems to work for me also, nice fork!
I use apt-version of both Steam and Lutris, with Flatpak, I do not know, I do not see any reason why it would not work with a flatpakversion, though.

Eddit: I did not manage to get it to work with the game, but instead with Cheat Engine. Launching Cheat Engine first, and the steam game second, did not work for me, however, launching the steam game first, and then launching Cheat Engine with protonhax, that worked. Not the other way around though, do not know why.

Glad to hear, If I understood well - you tried to run Cheat Engine before the game?
For protonhax to work - game must be started first, this is the way it works. Protonhax has to know somehow which wine, or proton version is being used by the game.