ebkr / r2modmanPlus

A simple and easy to use mod manager for several games using Thunderstore
MIT License
1.26k stars 189 forks source link

[BUG] - r2modman cannot launch modded Valheim following the latest Steam update on Linux #1534

Open Crushnaut opened 5 days ago

Crushnaut commented 5 days ago

Describe the bug Steam pushed out an update which added screen recording for all platforms. This update also included an update to the runtime environment for native games. By default steam now uses something called scout 1.0. Here are the relevant patch notes: https://store.steampowered.com/news/app/593110/view/4472730495692571024

"Native titles will execute in 'Steam for Linux runtime 1.0 (scout)' by default, instead of the legacy runtime environment."

This seems to have broken r2modman's ability to launch valheim in modded mod. The game can still be launched in vanilla mode.

To Reproduce Steps to reproduce the behavior:

  1. Create a valheim modded profile on r2modman
  2. Try to launch valheim
  3. Steam will open and valheim will briefly show it is running and then immediately crash
  4. You should be able to launch valheim in vanilla mode via steam directly or via r2modman

Expected behavior Valheim should launch with mods

Screenshots NA

Additional context I have a work around for this issue. You can add the launch parameter "-compat-force-slr off" to the r2modman steam launch parameters. I documented this solution in the discord (https://discord.com/channels/727304496522461185/1303809239898259476/1303909649153527870) and here: https://www.reddit.com/r/valheim/comments/1glggwy/workaround_modded_valheim_on_linux_with_r2modman/

A handful of people have verified that this work around works.

Confirmed an issue on Arch, Kubuntu, and Pop!

This launch parameter forces steam to use the legacy runtime environment from before the update.

Other have stated that they manually installed the mods and launched valheim via Steam in the new runtime environment and it works without issue.

This was an issue in r2modman 51 and 52.

I have also tried creating a fresh profile and updating mods to the latest which did not fix the issue. I also tried making a barebones profile with just a couple simple mods and this also did not launch.

When you launch Valheim in vanilla mode valheim also talks about not being about to load PlayFab and requiring some MS runtime files. Unsure if this is related.

archiebug commented 5 days ago

I can confirm. I manually load BepInEx. Since the latest Steam update, Valheim no longer loads. When i Start team using "-compat-force-slr off", Valheim, with BepInEx loads fine. I'm also able to just start Valheim, with BepInEx, outside of Steam just using the sh script.