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

Comfy Gizmo causes errors in console, and interferes with Blueprint Rune #109

Open Caledor2000 opened 1 week ago

Caledor2000 commented 1 week ago

When using the current version of Comfy Gizmo (1.12.0), the following errors appear in the BepInEx console:

[Info :PlanBuild.Plans.PlanManager] Initializing PlanManager [Info :PlanBuild.Patches] Applying Gizmo patches [Error : Unity Log] TypeLoadException: Could not load type ComfyGizmo.Patches.PlayerPatch, ComfyGizmo, Version=1.9.2.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null) Stack trace: System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <31687ccd371e4dc6b0c23a1317cf9474>:0) System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <31687ccd371e4dc6b0c23a1317cf9474>:0) System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Boolean inherit) (at <31687ccd371e4dc6b0c23a1317cf9474>:0) System.Reflection.RuntimeMethodInfo.GetCustomAttributes (System.Boolean inherit) (at <31687ccd371e4dc6b0c23a1317cf9474>:0) HarmonyLib.PatchTools+<>c__DisplayClass2_0.b__0 (System.Reflection.MethodInfo m) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate, System.Boolean& found) (at :0) System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at :0) HarmonyLib.PatchTools.GetPatchMethod (System.Type patchType, System.String attributeName) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.PatchClassProcessor..ctor (HarmonyLib.Harmony instance, System.Type type, System.Boolean allowUnannotatedType) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.CreateClassProcessor (System.Type type, System.Boolean allowUnannotatedType) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) HarmonyLib.Harmony.PatchAll (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0) PlanBuild.Patches.Apply () (at :0) PlanBuild.PlanBuildPlugin.Awake () (at :0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.GameObject:.cctor() PlatformTools.Common.SingletonMonoBehaviour`1:get_Instance() PlatformTools.PlatformManagerInitializer:OnRuntimeMethodLoad()

Using the Gizmo version 1.9.2 mentioned in the error log causes the error messages not to appear, but the actual issue remains in both versions.

When placing a saved blueprint using the blueprint rune, the Alt and Ctrl keys cause the blueprint to rotate and offset rather than just offset. It's the same issue that was mentioned in this older solved issue. The functions of Gizmo should be completely disabled when using the blueprint rune.

50