ebkr / r2modmanPlus

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

[BUG] - Modded Valheim does not start but vanilla does #912

Open flbuddymooreiv opened 1 year ago

flbuddymooreiv commented 1 year ago

Describe the bug I click "Run Vanilla" and the game starts. I click "Run Modded" and I get a series of steam screens flickering and ultimately valheim never loads.

To Reproduce Steps to reproduce the behavior: Install Steam Install Valheim Download and install mod pack 0184f507-73ad-4cbb-97e4-82867fc5c480 Click Run Modded

Expected behavior Valheim starts with mods installed

Screenshots image

Additional context

buddy@darkstationmk2:/$ uname -a
Linux darkstationmk2 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
buddy@darkstationmk2:/$ cat /etc/issue
Debian GNU/Linux 11 \n \l

I've been using the process manager to get command lines to launch and get slightly more debugging information but I am really willing to help troubleshoot this. My friends are like "bro install windows" and I'm not having that.

flbuddymooreiv commented 1 year ago

I've made a new profile with only bepinex (per suggestion from another similar issue) and monitored the process list to see that this is the command that r2modman is running:

/bin/sh -c "/home/buddy/.local/share/Steam/steam.sh" -applaunch 892970 --doorstop-enable true --doorstop-target "/home/buddy/.config/r2modmanPlus-local/Valheim/profiles/bare bepinex/BepInEx/core/BepInEx.Preloader.dll" --r2profile "bare bepinex" --doorstop-dll-search-override "/home/buddy/.config/r2modmanPlus-local/Valheim/profiles/bare bepinex/unstripped_corlib"

When I run this command without r2modman here is the output:

steam.sh[499154]: Running Steam on debian 11 64-bit
steam.sh[499154]: STEAM_RUNTIME is enabled automatically
setup.sh[499323]: Steam runtime environment up-to-date!
steam.sh[499154]: Steam client's requirements are satisfied
[2022-12-12 23:22:45] Startup - updater built Dec  1 2022 22:37:35
[2022-12-12 23:22:45] Startup - Steam Client launched with: '/home/buddy/.local/share/Steam/ubuntu12_32/steam'
Installing breakpad exception handler for appid(steam)/version(1669935987)
[2022-12-12 23:22:46] Loading cached metrics from disk (/home/buddy/.local/share/Steam/package/steam_client_metrics.bin)
[2022-12-12 23:22:46] Using the following download hosts for Public, Realm steamglobal
[2022-12-12 23:22:46] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2022-12-12 23:22:46] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2022-12-12 23:22:46] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1669935987)
[2022-12-12 23:22:46] Verifying installation...
[2022-12-12 23:22:46] Verification complete
Loaded SDL version 2.27.0-p7692409
Gtk-Message: 23:22:46.186: Failed to load module "gail"
Gtk-Message: 23:22:46.186: Failed to load module "atk-bridge"
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf4007370
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf4005cc0
ComputeStartupMode: found registry default startup mode: 0steamwebhelper.sh[499419]: Runtime for steamwebhelper: defaulting to /home/buddy/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[499419]: Using CEF sandbox (try with -no-cef-sandbox if this fails)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
CAppInfoCacheReadFromDiskThread took 21 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)

(steam:499409): Gtk-WARNING **: 23:22:47.647: gtk_disable_setlocale() must be called before gtk_init()
/usr/share/themes/Breeze/gtk-2.0/widgets/entry:70: error: unexpected identifier 'direction', expected character '}'

(steam:499409): Gtk-WARNING **: 23:22:47.653: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Breeze/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
local (potentially out of sync) copy of roaming config loaded - 915 bytes.
roaming config store loaded successfully - 915 bytes.
migrating temporary roaming config store
BRefreshApplicationsInLibrary 1: 1ms
Installing breakpad exception handler for appid(steam)/version(1669935987)
Failed to init SteamVR because it isn't installed
ExecCommandLine: "'/home/buddy/.local/share/Steam/ubuntu12_32/steam'"
System startup time: 4.03 seconds
BuildCompleteAppOverviewChange: 168 apps
RegisterForAppOverview 1: 2ms
RegisterForAppOverview 2: 2ms
Installing breakpad exception handler for appid(steam)/version(1669935987)
Installing breakpad exception handler for appid(steam)/version(1669935987)
flbuddymooreiv commented 1 year ago

Here is the launch options setting for Valheim inside steam:

image

Ninja5tyl3 commented 1 year ago

I am having a similar issue where it doesn't start modded unless it is the "Default" profile. The output of the wrapper script is as follows.

~/.config/r2modmanPlus-local/Valheim> ./linux_wrapper.sh
[R2MODMAN LINUX WRAPPER] Launching vanilla!
./linux_wrapper.sh: line 46: /home/user/.config/r2modmanPlus-local/Valheim/profiles//start_game_bepinex.sh: No such file or directory
FFFluoride commented 1 year ago

I am having the exact same issue. Anyone have a fix?

ebkr commented 1 year ago

This should now be resolved as of 3.1.37

jpw1991 commented 1 year ago

Unfortunately, I am having this issue with version 3.1.44. One day my existing profiles just stopped working and exhibited this behaviour. Creating a brand new profile and discarding the old one is what worked for me & might be a clue for fixing it.

Edit: I'd also like to add that "Update all mods" sits on 0% forever and that never happened before. Related?