redromnon / HeroicBashLauncher

Directly launch any Epic Games Store and GOG game from anywhere without Heroic on Linux.
GNU General Public License v3.0
353 stars 17 forks source link

Steam fails to launch GOG games #10

Closed redromnon closed 2 years ago

redromnon commented 2 years ago

I found that bash scripts or launch files of GOG games fail to launch from Steam but not from the terminal or Lutris as of now. This may also affect other users.

The issue is connected to the current version of heroic-gogdl binary being used in Heroic 2.2.1. The solution is fairly easy to implement - you need to use the testing branch of the binary.

I've provided the link to the binary of the current latest commit that works with Steam. Once you download it, just extract and replace it with the one Heroic uses in /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/ or you can just wait for Heroic to make use of a newer version on gogdl binary.

44-k commented 2 years ago

I have tried the fix you suggested on the AppImage version of Heroic 2.2.1. Unpacked the AppImage, replaced gogdl with v0.2, and rebuilt the AppImage.

I can now run GOG games from Steam but only if Heroic is running in the background. Otherwise I get an error. Have I missed something?

https://user-images.githubusercontent.com/101119432/157069269-bd7fdbf1-6990-45e0-8301-0b3f3f1d9fa5.mp4

redromnon commented 2 years ago

There's nothing you have missed. The thing is, the current version of Heroic i.e. 2.2.1, doesn't support alternate binary for gogdl but only for legendary. That's why Heroic always needs to be kept running while launching GOG games because Bash Launcher has to use the AppImage's gogdl binary.

Both Heroic and Bash Launcher's upcoming versions will be taking care of this.

redromnon commented 2 years ago

Explained here

44-k commented 2 years ago

Ah, that explains this error I saw when running the .sh file in terminal: ./TheWitcherWildHuntGameoftheYearEdition_Heroic.sh: line 12: /tmp/.mount_HeroicXdq9f2/resources/app.asar.unpacked/build/bin/linux/gogdl: No such file or directory

Thanks! I'll wait until an alternate gogdl binary is officially supported.

redromnon commented 2 years ago

GOG games should now launch with the new Heroic v2.2.2 and Bash Launcher v2.1.0

44-k commented 2 years ago

I can confirm I'm now able to launch GOG games from Steam without Heroic running in the background 🎉

Just a note, I had to make binaries/gogdl executable because I was getting this error: ./TheWitcherWildHuntGameoftheYearEdition_Heroic.sh: line 12: /home/deck/Games/HeroicBashLauncher/binaries/gogdl: Permission denied

Thanks a lot!