RandyKnapp / ValheimMods

179 stars 136 forks source link

Error: AccessTools.DeclaredMethod: Could not find method for type Player and name UpdateMovementModifier.. #669

Open Mark-123456 opened 5 months ago

Mark-123456 commented 5 months ago

Error when using Valheim Ashlands - Public Test Version

Impact: in game, can not strike objects

Error in server log:

[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Player and name UpdateMovementModifier and parameters ArgumentException: Undefined target method for patch method static void EpicLoot.MagicItemEffects.RemoveSpeedPenalty_Player_UpdateMovementModifier_Patch::Postfix(Player instance) at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0 Rethrow as HarmonyException: Patching exception in method null at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at HarmonyLib.Harmony.b11_0 (System.Type type) [0x00007] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <474744d65d8e460fa08cd5fd82b5d65f>:0

at HarmonyLib.Harmony.CreateAndPatchAll (System.Reflection.Assembly assembly, System.String harmonyInstanceId) [0x0001e] in <474744d65d8e460fa08cd5fd82b5d65f>:0 at EpicLoot.EpicLoot.Awake () [0x00623] in <3ed535b3f4d04d9da80b73f8282a2e10>:0

error in client when striking object:

[Error : Unity Log] MissingMethodException: Method not found: bool .SEMan.HaveStatusEffect(string) Stack trace: (wrapper dynamic-method) ItemDrop+ItemData.DMD<ItemDrop+ItemData::GetDamage>(ItemDrop/ItemData,int,single) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Glue:ThiscallStructRetPtr<ItemDrop+ItemData::GetDamage,DMD<ItemDrop+ItemData::GetDamage>>(ItemDrop/ItemData,HitData/DamageTypes&,int,single) ItemDrop+ItemData.GetDamage () (at <844c38a0d70248bcbd2c932b195e601a>:0) EpicLoot.MagicItemEffects.FrostAOE+Attack_DoMeleeAttack_Transpiler.Prefix (Attack __instance) (at <3ed535b3f4d04d9da80b73f8282a2e10>:0) (wrapper dynamic-method) Attack.DMD(Attack) Attack.OnAttackTrigger () (at <844c38a0d70248bcbd2c932b195e601a>:0) Humanoid.OnAttackTrigger () (at <844c38a0d70248bcbd2c932b195e601a>:0) CharacterAnimEvent.Hit () (at <844c38a0d70248bcbd2c932b195e601a>:0)