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

[BUG] After the latest Valheim update, Valheim Plus fails to complete loading #791

Open
mjparker777 opened this issue Mar 13, 2023 · 30 comments
Labels
bug Something isn't working

Comments

@mjparker777
Copy link

  • OS: [Windows Client, Windows Server, or Linux Server]
  • Valheim Game Version: [0.214.2]
  • V+ Mod Version: [0.9.9.11]

Describe the bug

After the latest Valheim update, Mar 13 23, Valheim Plus fails to complete loading.

To Reproduce

Steps for the devs to reproduce the behavior:

  1. Start Valheim
  2. Look at the terminal window and see the dump from the failure.
  3. In game, Valheim Plus settings have no effect. Can not portal with ore, missing extra row in inventory, etc
  4. See error

Expected behavior

Valheim Plus should load and run successfully.

Troubleshooting

Output from term window:
[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Chat and name OnNewChatMessage and parameters (UnityEngine.GameObject, long, UnityEngine.Vector3, Talker+Type, string, string, string)
[Error : Unity Log] ArgumentException: Undefined target method for patch method static bool ValheimPlus.GameClasses.Chat_AddInworldText_Patch::Prefix(Chat& __instance, UnityEngine.GameObject go, long senderID, UnityEngine.Vector3 pos, Talker+Type type, string user, string text, string senderNetworkUserId)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
ValheimPlus.ValheimPlusPlugin.Awake () (at <7c2de1882abc413da7273413f1d1b902>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.InputSystem.InputSystem:.cctor()

@mjparker777 mjparker777 added the bug Something isn't working label Mar 13, 2023
@rozwel
Copy link

rozwel commented Mar 13, 2023

Confirming. I see same behaviors both on linux server and windows local games.

@Deahgib
Copy link

Deahgib commented Mar 13, 2023

Confirmed for me too

@kbalow
Copy link

kbalow commented Mar 13, 2023

Confirmed

@Shagooh
Copy link

Shagooh commented Mar 13, 2023

Same here

@Feniix1994
Copy link

Confirmed

@VonTeschen
Copy link

same in linux server and windows
valheim plus is not working, some items from chests with augmented size are lost.

@mjparker777 mjparker777 changed the title [BUG] [BUG] After the latest Valheim update, Valheim Plus fails to complete loading Mar 13, 2023
@Crazyslade
Copy link

Confirmed

1 similar comment
@CodeMoosie
Copy link

Confirmed

@jkoreski
Copy link

Can also confirm. Updated to latest for client and server. changes made to server side config file seem to be erratically enforced (weight limit not enforced, increased player inventory not enforced, but storage chest size is enforced)

@tvschie
Copy link

tvschie commented Mar 13, 2023

Confirm, Also installed latest BepInExPack (5.4.2100) but still not working.

@tvschie
Copy link

tvschie commented Mar 13, 2023

Found Temporary fix (in any case for local games) in Valheim Discord channel:

Steam>Library>Right click on Valheim and select Properties.
image

@Turdleaver
Copy link

Same for me. Tried switching to vanilla, then reloading Plus. Same results....

@mdevens
Copy link

mdevens commented Mar 14, 2023

Same bug for me...

@SWRP-GitHub
Copy link

Server running on Linux
Clients connecting to the server on Windows
Same bug as described above from other users.

@fbda
Copy link

fbda commented Mar 14, 2023

Same bug for me...

@JF10R
Copy link

JF10R commented Mar 14, 2023

Read me

If you're coming here to say "me too" without new logs, react to this message and spare the original poster some notifications.

Chances are the mod is broken for everyone, considering the recent game patch.

The latest commit from the team dates from December 2022. It might take them some time to readjust everything that changed with the patch.

Is there a temporary workaround?

Yes. If you are on Steam, right-click on Valheim in your library, go to Properties > Beta and select default_old - Previous stable to play without the most recent patch.

What if I don't do this?

Then you risk losing inventory items, chest contents or potentially having some of your builds destroyed when loading into your game with the latest patch on, since the mod is not functional on latest patch yet.

If you host a Valheim Dedicated Server, do the same thing for the server app in your library.

What to do if you rent a server on X website

Contact the support there.

Reminder

Take backups of your character and of the world's often.
They are located in %appdata%\..\LocalLow\IronGate\Valheim

@ghost
Copy link

ghost commented Mar 14, 2023

We rent a GPortal server.
Set the server branch to "Default_old" in the branch selection, rebooted it.
in steam set the beta branch to "Default_old" let it update.
Client says valheim plus on the main screen

But on connecting our inventory tweaks are not showing on the server, stack sizes and slots are default.
The work around isnt...well..working around for us.

@SoooEZ
Copy link

SoooEZ commented Mar 14, 2023

@mrgreaper I got it to work yesterday. You prob lost your configurations in the settings for the mod.
if you have those settings backups, copy and paste those backup settings.

remember, if you have login in, and the inventory shrinks, you lost your items. You have to copy your backup save files to the server using the FTP connection

  1. with mod settings being set
  2. with your backup save files

you should able to get it to work again. good luck

@w4rc0n
Copy link

w4rc0n commented Mar 28, 2023

If you host a Valheim Dedicated Server, do the same thing for the server app in your library.

For anyone that comes across this and wonders how to do that on a Linux server, no GUI:

steamcmd +force_install_dir /path/to/install +login anonymous +app_update 896660 -beta default_old -exit

I use LGSM + vhserver, so my install directory was /home/<user>/serverfiles

@Talfereg
Copy link

Talfereg commented Apr 1, 2023

Valheim Plus is not getting updated. You need to get Valheim Plux Fixed. Works great, no issues.

@bytorphoto
Copy link

Valheim Plus is not getting updated. You need to get Valheim Plux Fixed. Works great, no issues.

Not here. I've installed it on both client and server. Never completes. G-Portal server. The version checks match perfectly, but it never finishes the connection. So I'm stuck on a "Connecting" screen with no Bepinex errors showing, it just hangs.

@Grantapher
Copy link

@bytorphoto can you create a new issue (or go to the discord) for your issue specifically? Add logs, versions and etc.

@billputer
Copy link

I've installed Grantapher's fork of Valheim Plus with the latest Valheim. I had to add new versions of both BepInEx and Valeheim Plus on both client and server, but now that I've done that it works great.

@Neiizo
Copy link

Neiizo commented Apr 20, 2023

I have the same issue. I am using thunderstore to load my mods, I have tried the "default_old" settings but it didn't help. I am playing on 0.214.300, and valheim plus 0.9.9.11 ( that's what the in game mentions at least). This is my first time modding this game, so I may be missing something very obvious. Thunderscore says I'm playing with BepInExPack_Valheim 5.4.2105, and Official_BepInEx_ConfigurationManager 18.0.0

@SSimp258
Copy link

I have the same issue. I am using thunderstore to load my mods, I have tried the "default_old" settings but it didn't help. I am playing on 0.214.300, and valheim plus 0.9.9.11 ( that's what the in game mentions at least). This is my first time modding this game, so I may be missing something very obvious. Thunderscore says I'm playing with BepInExPack_Valheim 5.4.2105, and Official_BepInEx_ConfigurationManager 18.0.0

If you're on the default_old then you need V+ version 9.9.13. If you go back to the normal branch (none, i think) and update to 9.9.15 it should work unless you have another mod that's causing your issue.

@CityHallin
Copy link

Did a fresh install today of Valheim and Valheim Plus and getting the same error. Here are some of the logs I captured. Hope that helps.

OS: Windows Server 2019 and Windows 2022.

Valheim Log: https://gist.github.com/CityHallin/32bb7cee9d5ae0f9a464e0be3f4c5c6c
Valheim Console: https://gist.github.com/CityHallin/c5bdadb53543ed8bdcf60dccf2850e33
Unity Crash Dump File: https://gist.github.com/CityHallin/7482e30cf2c04a651f757e84b3f65237

@SSimp258
Copy link

SSimp258 commented Apr 22, 2023 via email

@CityHallin
Copy link

@SSimp258, thanks!

Looked at the main Valheim Plus website and see its still on 9.9.11 which is what confused me. I found the fork that has 9.9.15: https://www.nexusmods.com/valheim/mods/2323?tab=files

@Anowyn
Copy link

Anowyn commented Apr 23, 2023

Husband and I spent over an hour on this same issue. We have a G-Portal server, I was using ValheimPlus from the link on the Gportal server page, and he downloaded ValheimPlus straight from the github site. He was crashing, where I was not. We did notice one difference between the two windows client zips, gportal file had Valheim.DisplayBepInExInfo.dll in the BepInEx plugin folder, and the github windows client did not. I am not sure if any of t his helps anyone, or if this file was the specific issue, but once he installed the client from the gportal link, all is working.

@ali-fakhredin
Copy link

@SSimp258, thanks!

Looked at the main Valheim Plus website and see its still on 9.9.11 which is what confused me. I found the fork that has 9.9.15: https://www.nexusmods.com/valheim/mods/2323?tab=files

This version worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests