Skip to content
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

Can't run protontricks --gui in a 32bit prefix #98

Closed
TheRedBaron56 opened this issue Apr 20, 2021 · 4 comments
Closed

Can't run protontricks --gui in a 32bit prefix #98

TheRedBaron56 opened this issue Apr 20, 2021 · 4 comments

Comments

@TheRedBaron56
Copy link

TheRedBaron56 commented Apr 20, 2021

I couldn't run protontricks' gui in my default wine prefix, so I made a new prefix in win32, but it still acts like it's being run with a win64 prefix.

I deleted and reinstalled the 32bit prefix multiple times, set WINEPREFIX= path_to_prefix both by itself and in front of 'Protontricks --gui'.

For example: I run

wineprefix=/home/theredbaron56/.local/share/wineprefixes/Wine32 protontricks --gui

A popup menu will appear, and I will select the game I wish to run the gui in. Then, a warning will appear about using a 64bit wineprefex on 32bit packages. I click 'Okay', then get this output:

protontricks (WARNING): Running Steam Runtime using bwrap containerization. This is an experimental feature and it may still be incompatible in some situations. If any problems arise, please try running the command again using the --no-bwrap` flag and make an issue report if the problem only occurs when bwrap is in use.
winetricks GUI enabled, using zenity 3.28.1
Executing mkdir -p /home/theredbaron56/.steam/steam/steamapps/compatdata/1237970

warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.

Gtk-Message: 22:36:06.796: GtkDialog mapped without a transient parent. This is discouraged.

WINEPREFIX INFO:
Drive C: total 48
drwxrwxr-x 9 theredbaron56 theredbaron56 4096 Apr 19 21:08 .
drwxrwxr-x 4 theredbaron56 theredbaron56 4096 Apr 19 21:31 ..
drwxrwxr-x 2 theredbaron56 theredbaron56 4096 Apr 19 21:31 openxr
drwxrwxr-x 6 theredbaron56 theredbaron56 4096 Apr 19 21:10 ProgramData
drwxrwxr-x 6 theredbaron56 theredbaron56 4096 Apr 19 21:07 Program Files
drwxrwxr-x 9 theredbaron56 theredbaron56 4096 Apr 19 21:10 Program Files (x86)
drwxrwxr-x 4 theredbaron56 theredbaron56 4096 Apr 19 21:07 users
drwxrwxr-x 3 theredbaron56 theredbaron56 4096 Apr 19 21:07 vrclient
drwxrwxr-x 19 theredbaron56 theredbaron56 4096 Apr 19 21:30 windows
-rw-rw-r-- 1 theredbaron56 theredbaron56 9 Apr 19 21:07 .windows-serial

Registry info:
/home/theredbaron56/.steam/steam/steamapps/compatdata/1237970/pfx/system.reg:#arch=win64
/home/theredbaron56/.steam/steam/steamapps/compatdata/1237970/pfx/user.reg:#arch=win64
/home/theredbaron56/.steam/steam/steamapps/compatdata/1237970/pfx/userdef.reg:#arch=win64
`

And another popup appears reading

/home/theredbaron56/.cache/protontricks/proton/Proton 6.3/bin/wine cmd.exe /c echo '%AppData%' returned empty string, error message ""

  • Distro: Mint 19.3 Cinnamon version 4.4.8
  • Protontricks version: 1.5.0
  • Steam is up to date

Additional context

When I tried to run it with the -v added in, I got this output:

heredbaron56@Baron-desktop:~$ wineprefix=/home/theredbaron56/.local/share/wineprefixes/Wine32 protontricks -v --gui protontricks (INFO): Found Steam directory at /home/theredbaron56/.steam/steam. You can also define Steam directory manually using $STEAM_DIR protontricks (INFO): Using default Steam Runtime at /home/theredbaron56/.steam/root/ubuntu12_32/steam-runtime protontricks (INFO): WINETRICKS environment variable is not available. Searching from $PATH. protontricks (INFO): Found 0 Steam library folders protontricks (INFO): Currently logged-in Steam user: jessemartin1 protontricks (INFO): Couldn't find custom shortcuts. Maybe none have been created yet? protontricks (INFO): Ignoring zenity crash bug protontricks (INFO): Found active Proton installation: Proton 6.3 protontricks (INFO): WINE environment variable is not available. Setting WINE environment variable to Proton bundled version protontricks (INFO): WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version protontricks (INFO): Using separately installed Steam Runtime: Steam Linux Runtime - Soldier protontricks (WARNING): Running Steam Runtime using bwrap containerization. This is an experimental feature and it may still be incompatible in some situations. If any problems arise, please try running the command again using the --no-bwrap` flag and make an issue report if the problem only occurs when bwrap is in use.
protontricks (INFO): Created Steam Runtime Wine binary directory at /home/theredbaron56/.cache/protontricks/proton/Proton 6.3/bin
protontricks (INFO): Attempting to run command [PosixPath('/usr/bin/winetricks'), '--gui']
winetricks GUI enabled, using zenity 3.28.1
Executing mkdir -p /home/theredbaron56/.steam/steam/steamapps/compatdata/1237970

warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.

Gtk-Message: 23:14:24.211: GtkDialog mapped without a transient parent. This is discouraged.
Using winetricks 20210206-next - sha256sum: b0bba0921c5fb2984a1f85920bfbf62a0a4922353468c295a702a7158d17c295 with wine-6.3 and WINEARCH=win64
Gtk-Message: 23:14:28.123: GtkDialog mapped without a transient parent. This is discouraged.
`
also, worth noting is that if I try to run it with a newer game, say Doom Eternal or ULTRAKILL, I get the same message, but with this added on the front:

Your version of wine is no longer supported upstream. You should upgrade to 5.x

I'm using Wine-6.6. I do not understand what this means or how it affects the issue, but I felt it worth mentioning.

@Matoking
Copy link
Owner

Protontricks only uses the Proton prefix corresponding to the game you chose and overrides the WINEPREFIX environment variable you provided. In this case the prefix under ~/.steam/steam/steamapps/compatdata/1237970/pfx/ is used instead of the one you tried to configure using WINEPREFIX.

If you created the Wine prefix using the system Wine, you should use normal Winetricks instead. Mixing a Wine prefix created using system Wine and Proton binaries (or vice versa) can cause problems.

@TheRedBaron56
Copy link
Author

ok so how do I get protontricks to run in a 32bit prefix if what I tried won't work?

@Matoking
Copy link
Owner

Proton only seems to officially support 64-bit prefixes, going by ValveSoftware/Proton#449.

I did some googling and there is a guide on how to create a 32-bit prefix. I can't vouch for it myself, but the main gist seems to be:

  • Find out where Steam has created the prefix (in your case it's /home/theredbaron56/.steam/steam/steamapps/compatdata/1237970/pfx)
  • Remove the existing prefix directory
  • Use WINEPREFIX=/home/theredbaron56/.steam/steam/steamapps/compatdata/1237970/pfx WINEARCH=win32 winecfg command to create a new prefix
  • Copy some Steam-specific files to the new prefix
  • Run the Winetricks/Protontricks command

Again, Proton doesn't support 32-bit prefixes, so your mileage may vary.


Is there some reason why you specifically need to create a 32-bit prefix? The "You are using a 64-bit WINEPREFIX" warning can be ignored safely unless you specifically need a 32-bit prefix; most of the time you don't. The game Titanfall 2 mentioned in your log also doesn't seem to need a 32-bit prefix going by the ProtonDB reports.

@Matoking
Copy link
Owner

Matoking commented Jul 3, 2021

Closing due to inactivity.

@Matoking Matoking closed this as completed Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants