valheimPlus / ValheimPlus

A HarmonyX Mod aimed at improving the gameplay and quality of life of the game Valheim.
http://valheim.plus
GNU Affero General Public License v3.0
967 stars 236 forks source link

[BUG] Mod won't load under SteamPlay (Proton) #783

Closed cousteaulecommandant closed 1 year ago

cousteaulecommandant commented 1 year ago

Describe the bug

Backstory: For some reason, the native Linux version of Valheim no longer runs on my computer, so I'm forced to use the Windows version using the compatibility mode (aka Steam Play aka Proton). The Windows version seems to work, so now I'm trying to have V+ working on it. End of backstory.

After installing the mod as per the instructions (using WindowsClient.zip instead of UnixServer.zip, obviously), when I launch Valheim I only see "Valheim Mistlands" (not "Valheim Plus") and the bottom right of the screen only displays the Valheim version and not the V+ version. When I try to connect to a server that has V+, I get an error saying "Incompatible Version"; I understand this is because my game doesn't have V+.

Do you think it's possible to make V+ work under Proton? (Sorry if I'm asking too much.)

To Reproduce

  1. Get a Linux machine with Steam installed.
  2. Install Valheim and under Properties > Compatibility, enable Steam Play compatibility and select "Proton experimental" (or any recent Proton version).
  3. Install Valheim Plus using the WindowsClient.zip archive. (I assume this is the version I have to install, not the Linux one, right?)
  4. Launch the game.

Expected behavior

Actual behavior

Troubleshooting

I tried uninstalling the game, deleting the .../SteamLibrary/steamapps/common/Valheim/ folder, reinstalling the game (which re-creates that folder), and then installing V+ by unzipping it inside that folder. It didn't work.

Unfortunately, running V+ in a normal native Linux install isn't an option for me since that version doesn't seem to work at all, with or without mods.

PS: I know I should try to get the Linux version fixed, but that's a side quest.

stolenvw commented 1 year ago

i would start here https://docs.bepinex.dev/articles/advanced/proton_wine.html

cousteaulecommandant commented 1 year ago

i would start here https://docs.bepinex.dev/articles/advanced/proton_wine.html

...well, that was easy!

All I needed to do was open winecfg on the wineprefix of the game, and add the winhttp library. Since I don't have protontricks installed, I had to figure out the wineprefix of the game manually, which in my case was /opt/shared/SteamLibrary/steamapps/compatdata/892970/pfx/, and then run:

WINEPREFIX=/opt/shared/SteamLibrary/steamapps/compatdata/892970/pfx  winecfg

and add the winhttp library in the Libraries tab. Worked like a charm.

Thank you!

stolenvw commented 1 year ago

your welcome