[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Console and name InputText and parameters [Error : Unity Log] ArgumentException: Undefined target method for patch method static void Purps.Valheim.Locator.Components.Patches.ConsolePatch::Postfix(Console __instance) 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.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0) Purps.Valheim.Framework.BasePlugin.Awake () (at <37383abe63ff41d9b342e8bd3d61c4b4>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor() this is the error I am getting. I run mostly OdinPlus mods. is this mod still being updated? i just noticed there has been no comment for a year
Downloaded the mod via Vortex and tried out some commands, both in the console and in the chat and nothing worked. I viewed many other posts regarding this mod and seems that the mod doesn't work after the Hearth and Home update. Me and several other modders NEED a new update for this mod!
I was using the Locator Mod before the Hearth & Home update, but now it seems to have stopped working. Can you update it so that it works with Hearth & Home?
Unsure if it's bug or I'm just lost... I'm trying to make it pin game spawned houses and ruins, I tried adding stuff like: {WoodHouse,Woodhouse,true} Tried to add it to all fields, tried with just Wood, Stone, StoneTower, stuff like that.
I was pulling names from here : https://valheim.fandom.com/wiki/World_Limits
Is that whole new category? I figured it would be under destroyables... but it's probably something like structures. Can that be added? Or is that bug?
if you open console [F5] and type /debug It will start showing, in the upper right corner with green font, the names of objects you're looking at. Yes, even if it writes something like "invalid command" helps with finding the ID of things you want to pin
there are 2 types of problems here ...
1) for example Surtling Spawner on the swamps - fire is just a decoration, therefore there is nothing to point the cursor at to see (touch) the spawner.
2) the houses (wood/stone) are like blueprint builds, the name you're trying is the blueprint name and you cannot point the cursor at it (touch it) because after pasting it into the world on creation, it is only made of building blocks, it's recognized as the same as your base
this mod cannot mark things you build, only objects that are part of the world[map] AND only if you can point them
The PinDistance is backwards! The pinRayDistance is the distance to the entity!!!!!!! Should be called "pinPlayerDistance" and "pinEntityDistance", would be clearer.
Issue Reporting (37 comments)
[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Console and name InputText and parameters
this is the error I am getting. I run mostly OdinPlus mods. is this mod still being updated? i just noticed there has been no comment for a year[Error : Unity Log] ArgumentException: Undefined target method for patch method static void Purps.Valheim.Locator.Components.Patches.ConsolePatch::Postfix(Console __instance)
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.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Purps.Valheim.Framework.BasePlugin.Awake () (at <37383abe63ff41d9b342e8bd3d61c4b4>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
?[Error : Unity Log] ArgumentException: Undefined target method for patch method static void Purps.Valheim.Locator.Components.Patches.ConsolePatch::Postfix(Console __instance)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
HarmonyLib.Harmony.PatchAll () (at <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0)
Purps.Valheim.Framework.BasePlugin.Awake () (at <37383abe63ff41d9b342e8bd3d61c4b4>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
my pinDistance is 30
I tried adding stuff like:
{WoodHouse,Woodhouse,true}
Tried to add it to all fields, tried with just Wood, Stone, StoneTower, stuff like that.
I was pulling names from here : https://valheim.fandom.com/wiki/World_Limits
Is that whole new category? I figured it would be under destroyables... but it's probably something like structures. Can that be added? Or is that bug?
/debug
It will start showing, in the upper right corner with green font, the names of objects you're looking at.Yes, even if it writes something like "invalid command"
helps with finding the ID of things you want to pin
there are 2 types of problems here ...
1) for example Surtling Spawner on the swamps - fire is just a decoration, therefore there is nothing to point the cursor at to see (touch) the spawner.
2) the houses (wood/stone) are like blueprint builds, the name you're trying is the blueprint name and you cannot point the cursor at it (touch it) because after pasting it into the world on creation, it is only made of building blocks, it's recognized as the same as your base
this mod cannot mark things you build, only objects that are part of the world[map] AND only if you can point them
The pinRayDistance is the distance to the entity!!!!!!!
Should be called "pinPlayerDistance" and "pinEntityDistance", would be clearer.