jcnils / protonhax

Run programs inside your game proton's environment.
BSD 3-Clause "New" or "Revised" License
106 stars 6 forks source link

Protonhax in launch options line causes games not to launch #16

Open Krythulu opened 2 months ago

Krythulu commented 2 months ago

Evening,

I install Protonhax and I attempted to launch GRAND THEFT AUTO V with the launch properties line protonhax init %COMMAND%. However whenever I launch the game, it doesn't do anything. It just says "launching" then it stops.

Steps to reproduce

  1. Git clone Protonhax
  2. Add executable perms
  3. Add protonhax to path
  4. Change launch perms to protonhax init %COMMAND%

I even attempted to launch Core Keeper with the same command line but it doesn't work. Any tips would be appreciated

OS: Linux Mint 21 Steam Version: Native

Hope this gets patched

ruudschouten commented 1 month ago

I had the same issue, most likely because I didn't update the PATH correctly with the location for where I put protonhax, as I only updated the PATH value in my ~/.bashrc. So, the way I was able to fix it was by launching Steam with a terminal, so it also uses the ~./bashrc file.

So, in your case, Steam could also likely not find the protonhax executable file on your PATH.

jcnils commented 3 weeks ago

Thanks @ruudschouten, usually that is the best way to solve protonhax not being found in the path

@Krythulu If you are running those games using proton(those games offer Linux native), and if you are not using steam flatpak, there are a few places too look to troubleshoot this:

verify the game is in the path

Open terminal and run protonhax, if it returns the info, success.

You can also run type -a protonhax to check the path to the file.

verify if steam can see protonhax path/ what is going on when you start the game

The easiest way is to check if other tools you have in the $PATH are working, like mangohud %command%, or gamescope, or any other program. If it can, it means that steam can see some paths, but not others.

Alternatively, you can try to run steam from the terminal, and try to run the game pay attention to any message like protonhax not found.

Depending on how you installed steam(e.g. distrobox), there is a chance the game will recognize the path when run from a terminal, but not from the applications' menu.

pt2 what is going on when you start the game

PROTON_LOG=1 protonhax init %command%

steam will save proton log into your home folder.