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] #724

Closed bragdonjm closed 1 year ago

bragdonjm commented 1 year ago

Describe the bug Valhiem+ fails to load and crashes. Server continues load up without issue and can still be playeds.

To Reproduce

Steps for the devs to reproduce the behavior:

  1. Update Server and Client (Windows) to latest Valhiem release.
  2. Attempt to login and play.
  3. all valhiem+ features appear disabled ( was working last night)
  4. Some checked things: Weight control gone, Inventory modifications (player and storage) gone. Stacks set to default levels.

Expected behavior Valhiem+ loads as normal and all features are available.

Troubleshooting

What steps have you taken to try to fix? Reload the settings and restart server.

Additional context

No other mods.

[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type SEMan and name AddStatusEffect and parameters (StatusEffect, bool) [Error : Unity Log] ArgumentException: Undefined target method for patch method static void ValheimPlus.GameClasses.SEMan_AddStatusEffect_Patch::Postfix(SEMan& instance, StatusEffect& statusEffect, bool resetTime) 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.b11_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 <5a95645ebf264670b7e210ece81a6e52>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor()

timjohnson408 commented 1 year ago

Mistlands patch dropped today, which has caused this issue.

GuinnessDublin commented 1 year ago

Linux client also dont work. Latest one. Valheim client dont even start with it.

nxPublic commented 1 year ago

Fixed with #511f19718a1c882bcb3793fef54c8b5e68718874