Sgt-Imalas / Sgt_Imalas-Oni-Mods

All the ONI mods made by Sgt_Imalas
MIT License
23 stars 8 forks source link

[BUG]: Crash on previous public update #74

Closed modo-lv closed 1 year ago

modo-lv commented 1 year ago

Description of the bug/crash

It appears that the latest update (2023-03-08) has broken compatibility with the previous release. Since the game update has broken a lot of mods (as always), people use "previous stable version" branch to play while they wait for the mods to get fixed. This mod seems to no longer work with that version, and crashes on startup:

Error in GameAssets(Clone).Assets.OnPrefabInit 
System.NullReferenceException: Null method for DrywallPatternColours
  at HarmonyLib.PatchProcessor.Patch () [0x0001d] in <2f5aaaa000594d07b9998f4cff1e9662>:0 
  at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x00028] in <2f5aaaa000594d07b9998f4cff1e9662>:0 
  at DrywallPatternColours.Patches+SublevelCategoryPatch.Patch (HarmonyLib.Harmony harmony) [0x00046] in <cc5e1a46f601428fa550245eb5297892>:0 
  at DrywallPatternColours.Patches+Assets_OnPrefabInit_Patch.Prefix () [0x0000a] in <cc5e1a46f601428fa550245eb5297892>:0 
  at (wrapper dynamic-method) Db.Db.Initialize_Patch136(Db)
  at Db.Get () [0x0001c] in <cd4b9bd5aa6c4ec38ec00dca1dc79105>:0 
  at Assets.CreatePrefabs () [0x00000] in <cd4b9bd5aa6c4ec38ec00dca1dc79105>:0 
  at (wrapper dynamic-method) Assets.Assets.OnPrefabInit_Patch5(Assets)
  at KMonoBehaviour.InitializeComponent () [0x00068] in <0f4b778ef79c497e89f6ee18303840cf>: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 <0f4b778ef79c497e89f6ee18303840cf>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <0f4b778ef79c497e89f6ee18303840cf>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <0f4b778ef79c497e89f6ee18303840cf>:0 
  at KMonoBehaviour.InitializeComponent () [0x00000] in <0f4b778ef79c497e89f6ee18303840cf>:0 
  at KMonoBehaviour.Awake () [0x00000] in <0f4b778ef79c497e89f6ee18303840cf>: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 <0f4b778ef79c497e89f6ee18303840cf>:0 
  at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in <0f4b778ef79c497e89f6ee18303840cf>:0 
  at LaunchInitializer.Update () [0x00000] in <cd4b9bd5aa6c4ec38ec00dca1dc79105>:0 
Build: U47-562984-S

Steps To Reproduce

  1. Set "Beta" branch of the game to "public_previous_update" in Steam properties.
  2. Start the game

Player.log

Player.log

Sgt-Imalas commented 1 year ago

fixed in 1.1.4