tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.24k stars 128 forks source link

Wine and Proton compatibility layers appear to do nothing at all #400

Open liambrownweb opened 4 years ago

liambrownweb commented 4 years ago

I'm running the current release of GameHub on Pop!OS, installed using Apt. I am able to install games from Itch.io using an API key, including Windows-only games. The games run fine from the terminal using WINE.

Example:

  1. Install BADBLOOD (or another Windows-only Itch game). Select Wine [Arch: Win64] as the compatibility layer when installing.
  2. When the game has finished installing, open a CLI in the install directory and run the EXE directly via Wine. Verify the game starts as expected.
  3. Close the game started from the CLI.
  4. Click "Run with compatibility layer" in GameHub on the same game.
Expected behavior

The game starts and works exactly as it did in the CLI.

Actual behavior

Absolutely nothing. The game does not start, and there are no error or debug messages.

Steps to reproduce
Version and environment
PASTE VERSION INFO HERE
ghost commented 4 years ago

Well, what is your Wine configuration ? I had the same kind of problem when I initiated myself to Wine, and finally I understood that Wine prefixes were the heart of the wrapper. If you're launching the executable from the CLI, Wine will use the default prefix for it ; but GameHub apparently prefers to make its own prefix for each game even when the user didn't asked for this. (it's a good idea, but would be better as a non-automatic feature)

liambrownweb commented 4 years ago

I see it's doing the same thing here, but I don't know how to change it. The dialogue to select a new Wine prefix doesn't have an "OK" or "Select" button. But even then, I can't get the program to spit out an error message from the run attempt. In Lutris it's possible to view the log file, and that makes debugging possible. Where do error logs go in GameHub?

EDIT: To be clear, I've tried starting GameHub with verbose logging enabled. That works only as far as GameHub is concerned; I still get absolutely no output from individual runners.

jakepi84 commented 4 years ago

I am having the same issue. I am able to install Windows games using Proton as my compatibility layer from itch.io. The game installs, creates the prefix, everything seems normal. I am able to launch the game via the command prompt without issue. It is just that the tile in Gamehub does nothing when I try to launch. I can click on it all day and nothing happens. I can change the compatibility layer to Wine, Custom Script, etc and the tile still does not react to input.

I've also tried running Gamehub using --verbose --debug, while I see messages related to other things, when I click the tile nothing happens in the console either.

I'm running v0.16.0-1 on Lubuntu 20.04.

minilandl commented 4 years ago

Same for me I am able to add custom games e.g Assassins Creed Unity From Uplay GTA V from epic and disc based games. I can Specify my own wineprefix e.g /home/username/.wine and it works fine and launches correctly

.Itch through wine however doesn't work at all it installs fine the only way I can get it to work is running manually through wine. I also tried creating a prefix which doesn't seem to work either. So its probably a gamehub issue.

Itch Native games e.g Oxenfree using the Linux build installs and loads fine through gamehub though.

I'm running
Version: 0.16.0-aac7b8f-makepkg/gamehub-git the AUR on Archlinux with Kernel 5.7.6

veksha commented 4 years ago

I had struggle launching my game with wine prefix from Gamehub. I managed to launch it but it took two things:

  1. I commented this line out https://github.com/tkashkin/GameHub/blob/84f789b84a1b0056b10029448ea6e15b4d94fadc/src/data/compat/Wine.vala#L221
  2. and deleted "d:" from dosdevices folder of wine prefix.

Maybe someone can investigate it more deeply.