sirskunkalot / PlanBuild

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

BadImageFormatException and InvokeOnCustomGUIAvailable #56

Closed legion-gaming closed 1 year ago

legion-gaming commented 1 year ago

BadImageFormatException: Could not resolve field token 0x040001df, due to: Could not load type of field 'PlanBuild.Blueprints.BlueprintManager+<>c:<>9__9_0' (1) due to: Could not load file or assembly 'MMHOOK_assembly_valheim, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:MMHOOK_assembly_valheim, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type: member:(null) signature: assembly:C:\Users\micah\AppData\Roaming\r2modmanPlus-local\Valheim\profiles\Server\BepInEx\plugins\MathiasDecrock-PlanBuild\PlanBuild\PlanBuild.dll type:<>c member:(null) signature: Stack trace: PlanBuild.PlanBuildPlugin.Awake () (at <7c23de4df02740f6b3263f9f9c4f3a9d>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor()


[Warning:Jotunn.EventExtensions] Exception thrown at event InvokeOnCustomGUIAvailable in BlueprintGUI.Register: System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.GroupedEnumerable2[TSource,TKey]..ctor (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer1[T] comparer) [0x00016] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.GroupBy[TSource,TKey] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] keySelector) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at PlanBuild.Blueprints.BlueprintGUI.RefreshBlueprints (PlanBuild.Blueprints.BlueprintLocation location) [0x00018] in <7c23de4df02740f6b3263f9f9c4f3a9d>:0 at PlanBuild.Blueprints.BlueprintGUI.Register () [0x00437] in <7c23de4df02740f6b3263f9f9c4f3a9d>:0 at Jotunn.EventExtensions.SafeInvoke (System.Action events) [0x00018] in D:\coding\vs_workspace\Jotunn\JotunnLib\Extensions\EventExtensions.cs:26

legion-gaming commented 1 year ago

Closed this issue. This was caused by not having let MMHOOK regenerate. There are still some problems with the latest version 0.13.0, but someone already has an issue in for it.