sirskunkalot / PlanBuild

Valheim mod enabling you to plan buildings, copy structures and terraform
Do What The F*ck You Want To Public License
11 stars 14 forks source link

Bog Witch update broke the selection tool. #102

Closed Ultimate-Fluff closed 1 week ago

Ultimate-Fluff commented 3 weeks ago

This is the startup text:

[Error  : Unity Log] InvalidOperationException: Parameter #0 of hook for Void Destroy(HitData, Boolean) doesn't match, must be WearNTear or related
Stack trace:
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig& config) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig config) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase method, System.Delegate to) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._NewHook (System.Reflection.MethodBase from, System.Delegate to) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._Add[TDelegate] (System.Func`3[T1,T2,TResult] gen, TDelegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint.Add (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
On.WearNTear.add_Destroy (On.WearNTear+hook_Destroy ) (at <dc8e06f8d56c4487b3b200ceb837d8f8>:0)
PlanBuild.Plans.PlanManager.Init () (at <69f90b2d72e445e98c4e8811c02818b3>:0)
PlanBuild.PlanBuildPlugin.Awake () (at <69f90b2d72e445e98c4e8811c02818b3>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.GameObject:.cctor()
PlatformTools.Common.SingletonMonoBehaviour`1:get_Instance()
PlatformTools.PlatformManagerInitializer:OnRuntimeMethodLoad()

And loading a server with Planbuild results in this error code being spammed over and over endlessly:

[Error  : Unity Log] InvalidOperationException: Return type of hook for Void PlacePiece(Piece, UnityEngine.Vector3, UnityEngine.Quaternion, Boolean) doesn't match, must be System.Void
Stack trace:
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig& config) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig config) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase method, System.Delegate to) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._NewHook (System.Reflection.MethodBase from, System.Delegate to) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._Add[TDelegate] (System.Func`3[T1,T2,TResult] gen, TDelegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint.Add (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
On.Player.add_PlacePiece (On.Player+hook_PlacePiece ) (at <dc8e06f8d56c4487b3b200ceb837d8f8>:0)
PlanBuild.Blueprints.Components.ToolComponentBase.Start () (at <69f90b2d72e445e98c4e8811c02818b3>:0)

[Error  : Unity Log] InvalidOperationException: Stack empty.
Stack trace:
System.Collections.Generic.Stack`1[T].Pop () (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._Remove (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint.Remove (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Remove (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Remove[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:0)
On.Player.remove_PlacePiece (On.Player+hook_PlacePiece ) (at <dc8e06f8d56c4487b3b200ceb837d8f8>:0)
PlanBuild.Blueprints.Components.ToolComponentBase.OnDestroy () (at <69f90b2d72e445e98c4e8811c02818b3>:0)

The selection tool is completely non-functional; all you can do is rotate the building square. However, you can build things with Planbuild.

Edit: Added the Output Log. LogOutput.log