-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workaround] Sucessfully running torch via wine #514
Comments
Update to this: upon some more in-depth testing, wine 7.2-2 seems to give me issues with steam mods off and on, while there seem to be no problems for mod.io or running vanilla. I'll update my original post, but that seemed significant enough to merit an additional note in case anyone was following the thread. |
Thanks for writing this up, I was going to try it myself at some point. I've run into issues getting it running using your instructions. I'm using Wine-GE-Proton7-32 as I'll be wanting to use Steam mods. Error I'm getting is:
I expect this has probably got something to do with dotnet not installing:
How did you get around this? Adding |
You need to manually update/download winetricks and use that to install dotnet48, you shouldn't even need force then, the version provided by the typical apt/pkg repos is vastly outdated. |
Torch Version: 1.3.2.207-master SE Version: 1.201.013
Observed Behavior
App runs stable and appears to be fully functional.
There's a few bugs that can be worked around, and I would consider it playable.
Linux Exclusive Bugs and their workarounds
Steps to Reproduce
NOTE: be sure to get the latest version of winetricks or step 3 will break. The PPA installer on ubuntu is outdated, here's a guide for that:
https://wiki.winehq.org/Winetricks
INSTALL:
WINEPREFIX="/path/to/prefix" /path/to/wine reg ADD 'HKCU\Software\Wine\DllOverrides' '/f' '/v' 'd3d9' '/t' 'REG_SZ' '/d' 'native'
WINEPREFIX="/path/to/prefix" /path/to/wine reg add "HKCU\\SOFTWARE\\Microsoft\\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f
WINEPREFIX="/path/to/prefix" WINE="/path/to/wine" winetricks dotnet48 d3dcompiler_47 vcrun2013 vcrun2019
to run:
cd "/path/to/prefix/drive_c/torch-server/"
WINEPREFIX="/path/to/prefix" /path/to/wine ./Torch.Server.exe
This test was done with wine 7.2-2, based on the dependencies, likely works on most versions 6 and later.
For steam mods, you need to use Proton or wine-GE 7.0 or later, otherwise the mods sometimes fail to download from the workshop.
https://github.com/GloriousEggroll/wine-ge-custom/releases
For running in lutris, disable all DXVK and anticheat options, in my test Esync, Fsync, and FSR were also disabled, but those should work fine if the host system supports them.
Under system options enable "disable lutris runtime", disable "prefer system libraries", and enable CLI mode.
Other Information
I'm mostly bringing this up as an issue thread in hopes it could be added to documentation since it makes cloud hosting, and other options more accessible at little to no loss.
If someone wants to make a lutris installer or the like as well, all the better.
If you just want to leave this as a sticky issue for anyone else trying to do this madness, that also works.
Additional credits to this reddit post for the registry changes which made a huge difference.
https://www.reddit.com/r/linux4noobs/comments/firqs9/getting_windows_wpf_applications_to_run_with_wine/
//Edit 1: fixed a typo in the run command.
//Edit 2: added a note about making sure winetricks was updates, also added a custom wine folder for the winetricks call
//Edit 3: added note for more reliable steam mod loading
//Edit 4: expanded on linux exclusive bugs and their workarounds.
//Edit 5: fixed a category header.
Sorry for all the edits.
The text was updated successfully, but these errors were encountered: