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

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

Open
Mark-123456 opened this issue Apr 26, 2024 · 0 comments

Comments

@Mark-123456
Copy link

Mark-123456 commented Apr 26, 2024

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.b__11_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.DMDItemDrop+ItemData::GetDamage(ItemDrop/ItemData,int,single)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Glue:ThiscallStructRetPtr<ItemDrop+ItemData::GetDamage,DMDItemDrop+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.DMDAttack::DoMeleeAttack(Attack)
Attack.OnAttackTrigger () (at <844c38a0d70248bcbd2c932b195e601a>:0)
Humanoid.OnAttackTrigger () (at <844c38a0d70248bcbd2c932b195e601a>:0)
CharacterAnimEvent.Hit () (at <844c38a0d70248bcbd2c932b195e601a>:0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant