Grantapher / ValheimPlus

A HarmonyX Mod aimed at improving the gameplay and quality of life of the game Valheim.
GNU Affero General Public License v3.0
210 stars 23 forks source link

[BUG] unable to patch latest valheim version #49

Closed charlouze closed 6 months ago

charlouze commented 6 months ago

Describe the bug

Valheim plus does not apply patches

To Reproduce

Expected behavior

Patches to be applied

Additional context

here is the log :

[Info   :Valheim Plus] Applying patches.
[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Settings and name SaveSettings and parameters 
[Error  :Valheim Plus] Failed to apply patches.
[Warning:Valheim Plus] This version of Valheim Plus (0.9.11.0) was compiled with a game version of "0.217.29", but this game version is newer at "0.217.38". If you are using the PTB, you likely need to use the non-beta version of the game. Otherwise, the errors seen above likely will require the Valheim Plus mod to be updated. If a game update just came out for Valheim, this may take some time for the mod to be updated. See https://github.com/Grantapher/ValheimPlus/blob/grantapher-development/COMPATIBILITY.md for what game versions are compatible with what mod versions.
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static void ValheimPlus.GameClasses.Settings_SaveSettings_Patch::Postfix()
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
ValheimPlus.ValheimPlusPlugin.PatchAll () (at <0c90af76a6194f2ea65dc8ddc90ec3db>:0)
ValheimPlus.ValheimPlusPlugin.Awake () (at <0c90af76a6194f2ea65dc8ddc90ec3db>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.GameObject:.cctor()
Fishlabs.Common.SingletonMonoBehaviour`1:get_Instance()
Fishlabs.PlatformManagerInitializer:OnRuntimeMethodLoad()
charlouze commented 6 months ago

It seems to work with version 0.9.12 alpha

mjparker777 commented 6 months ago

I get the same error. I tried 0.9.12 alpha and the difference is the game will load and be playable but the mod is not working. No extra space in inventory, no clock, etc.

charlouze commented 6 months ago

With 0.9.12-alpa1, I have at least the extra space in the inventory!

Grantapher commented 6 months ago

Check the newest release. Visit the discord if you still have issues.