HGL
national-gold

Heroic opens wine explorer window after clicking play with game porting toolkit

I know the problem, it's becuase of the --wrapper argument. instead of referencing the "gameportingtoolkit" script in /usr/local/bin, heroic references gameportingtoolkit's wine64 (wine 7.7) here's what heroic tries to execute according to logs (game launched is pikuniku.) LD_PRELOAD= /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary launch 41869934302e4b8cafac2d3c0e7c293d --language en --wrapper "/usr/local/Cellar/game-porting-toolkit/1.0.2/bin/wine64 /Users/blackxfiied/my-game-prefix" --no-wine this wont work becuase its trying to reference a folder to wine, which will just open the folder in file explorer what does work is LD_PRELOAD= /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary launch 48619f5656da446abccb727b78cda644 --language en --wrapper "/usr/local/bin/gameportingtoolkit /Users/blackxfiied/my-game-prefix" --no-wine becuase the game poprting toolkit script executes it instead of feeding it directly to wine Steps to reproduce Press play on any game while 'GPTK Wine (DX11/DX12 Only) - wine7.7' is selected as your Crossover/Wine version Expected behavior The game launches. specifications macOS 14.0 beta 3 Apple MacBook Pro 14", 2021 Apple M1 Pro APU Heroic 2.8.0 (that's the newest release, not 2.9.0?)
11 Replies
national-gold
national-goldOP2y ago
..
CommandMC
CommandMC2y ago
It seems there's conflicting information on how GPTK is meant to be used https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit#Steam for example lists both commands including the prefix in the arguments and commands simply setting the environment variable, also with both the gameportingtoolkit and wine64 executables being used seemingly interchangeably
national-gold
national-goldOP2y ago
will this be fixed before the new update that is coming out tomorrow or the day after? and will the PR be updated?
CommandMC
CommandMC2y ago
I don't have a macOS system to test anything on, but looks like this is indeed a valid issue. wine64 is meant to be used like a regular Wine executable (WINEPREFIX=/your/prefix/here wine64 /your/executable/here) while gameportingtoolkit is more like a wrapper (gameportingtoolkit /your/prefix/here /your/executable/here) It looks to me like we're launching wine64 with the parameters that gameportingtoolkit is supposed to receive @FlavioF34rn Would you mind taking a look at this? I must be misunderstanding something here, since I assume it worked for you when adding the feature in the first place
harsh-harlequin
harsh-harlequin2y ago
I will once I am back home. I am traveling for work the whole week But last time I could not replicate it, for me it's working fine when selecting the wine that heroic found Is this with all games? From gog, legendary, etc?
national-gold
national-goldOP2y ago
legendary i have the sc downloaded but i just pasted the changes from a commit where it was working
typical-coral
typical-coral2y ago
I'll test it tomorrow, thanks for considering the issue
national-gold
national-goldOP2y ago
will test when home (probably around 8 hours from now today is gonna be chaotic
typical-coral
typical-coral2y ago
after launching rocket league at literally 3 am with your build of heroic, I can confirm that it works it launched the game instead of the wine explorer gj!

Did you find this page helpful?