Elden-Ring-CT-TGA icon indicating copy to clipboard operation
Elden-Ring-CT-TGA copied to clipboard

[Linux] Alternate method for people having problems with protonhax

Open ghost opened this issue 6 months ago • 2 comments

So, I'm one of those peeps that can't get protonhax to work properly; perhaps it's something to do with each distro, perhaps not. Maybe I should have enabled logging and verified everything before wasting any more time in this? Most definetely. But here is a surefire way to get proton to launch more than a single program under the same prefix at the same time.

TL;DR: I just wrote some batch wrappers to launch both seamless/vanilla and CE, then parsed %command% to launch the .bat.

There are three steps to the madness:

  1. Install Cheat Engine somewhere (I choose the elden ring prefix itself, installed normally — yikes — disabling the ads using the piping %command% to sed on steam launch options method that I'll demonstrate shortly);
  2. Tailor the .bat scripts to your CE setup;
  3. Tailor the steam launch options to replace content from the %command% string.

Here is the content of the batch script cewrapper.bat. I placed it in the Game folder:

@echo off

start .\eldenring.exe
rem start .\ersc_launcher.exe

start cmd /k "C:\Program Files\Cheat Engine 7.5\cheatengine-x86_64-SSE4-AVX2.exe"
rem start cmd /k "C:\Program Files\Cheat Engine 7.5\cheatengine-x86_64.exe"

If you want to change what you're going to launch, keep in mind rem is the comment-out syntax, so just move it to the line above where desired.

Here are the launch options for the cewrapper.bat, the ole piping to sed to sh method:

echo "%command%" | sed 's/start_protected_game.exe/cewrapper.bat/' | sh

Anyway. Hope this helps someone, somehow.

And thank you, Norii, for the table :)

ghost avatar Jul 28 '24 09:07 ghost