peterhaneve / ONIMods

Peter Han's mods for Oxygen Not Included
Other
316 stars 64 forks source link

Build Straight Up Crashes on Build: U51-597172-S #454

Closed fruixs closed 7 months ago

fruixs commented 7 months ago

Exception while loading mod PeterHan.BuildStraightUp at C:/Users/○○○○/Documents/Klei/OxygenNotIncluded/mods/Steam/2135682628. HarmonyLib.HarmonyException: Ambiguous match for HarmonyMethod[(class=BuildingDef, methodname=IsAreaClear, type=Normal, args=undefined)] ---> System.Reflection.AmbiguousMatchException: Ambiguous match found. at System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00059] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <695d1cc93cca45069c528c15c9fdd749>:0 at HarmonyLib.AccessTools.DeclaredMethod (System.Type type, System.String name, System.Type[] parameters, System.Type[] generics) [0x00028] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.PatchTools.GetOriginalMethod (HarmonyLib.HarmonyMethod attr) [0x0004d] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00093] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.Harmony.b__10_0 (System.Type type) [0x00007] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at KMod.UserMod2.OnLoad (HarmonyLib.Harmony harmony) [0x00007] in <10441a52cf784e609fef9aaaa8368210>:0 at PeterHan.BuildStraightUp.BuildStraightUpPatches.OnLoad (HarmonyLib.Harmony harmony) [0x00000] in <3267c6562c184c0088a0ba8b6a41d762>:0 at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00222] in <10441a52cf784e609fef9aaaa8368210>:0

at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00000] in <10441a52cf784e609fef9aaaa8368210>:0 at KMod.Mod.Load (KMod.Content content) [0x00000] in <10441a52cf784e609fef9aaaa8368210>:0 at KMod.Manager.Load (KMod.Content content) [0x00000] in <10441a52cf784e609fef9aaaa8368210>:0

peterhaneve commented 7 months ago

Today's hotfix broke many mods, including this one. The changes have been posted in 2.4.0.0, but you will probably need to use Mod Updater to receive the changes, as the base game often does not auto-update mods.