SanchozzDeponianin / ONIMods

Sanchozz's mods for Oxygen Not Included
MIT License
16 stars 15 forks source link

[Issue]: Crash of current version of ONI #54

Closed HetNeSS closed 12 months ago

HetNeSS commented 1 year ago

Description of the bug/crash

Toggle on - reboot - dead

Steps To Reproduce

As filed above

Player.log

Exception while loading mod Sanchozz.ONIMods.VaricolouredBalloons at F:/Documents/Klei/OxygenNotIncluded/mods/Steam/2293939893. HarmonyLib.HarmonyException: Patching exception in method System.Void Instance::.ctor(IStateMachineTarget master) ---> System.FormatException: Method System.Void Instance::.ctor(IStateMachineTarget master) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) BalloonFX/Instance:BalloonFX+Instance..ctor_Patch0 (BalloonFX/Instance,IStateMachineTarget): IL_00aa: ldloc.0

at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0008c] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000bb] 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.<PatchAll>b__10_0 (System.Type type) [0x00007] in <6dcb326e4f6442999f701f1e67d0b5a0>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[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 <8962180363a94bf7bd897569e6298675>:0 at VaricolouredBalloons.VaricolouredBalloonsPatches.OnLoad (HarmonyLib.Harmony harmony) [0x00000] in :0 at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00222] in <8962180363a94bf7bd897569e6298675>: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 :0 at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in :0 at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in :0 at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00000] in <8962180363a94bf7bd897569e6298675>:0 at KMod.Mod.Load (KMod.Content content) [0x00000] in <8962180363a94bf7bd897569e6298675>:0 at KMod.Manager.Load (KMod.Content content) [0x00000] in <8962180363a94bf7bd897569e6298675>:0 at Global.Awake () [0x00000] in <8962180363a94bf7bd897569e6298675>:0 at UnityEngine.Object.Internal_InstantiateSingleWithParent_Injected (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3& pos, UnityEngine.Quaternion& rot) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 at UnityEngine.Object.Internal_InstantiateSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.GameObject parent, System.String name, System.Boolean initialize_id, System.Int32 gameLayer) [0x00000] in :0 at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in :0 at LaunchInitializer.Update () [0x00000] in <8962180363a94bf7bd897569e6298675>:0 Build: U49-575720-S

SanchozzDeponianin commented 1 year ago

Attach the full log immediately after the crash, as written in the instructions. Who did I write it for? However, I'm 98% sure that your game just didn't update the mod. Update it forcibly, using Mod Updater. Click on this button next to the mod to force the update. 2023-06-16 10-11-29 lalala