O-n-y / oxy.mods

Oxy.BugTracker
19 stars 2 forks source link

[Favourite Resources] Cannot load or create new world. #118

Closed TheBetamaxBandit closed 1 year ago

TheBetamaxBandit commented 1 year ago

Hi, so my game has been crashing whenever I load or create a new game with this mod (Favorite Resources v.1.3.10.65) activated. I have tried all of the troubleshooting steps and then some. the game identifies the mod as the issue, and everything seems to work fine without the mod. I have other mods of yours installed and they do not have this issue. Here is the log:

Error in PinnedResourcesPanel.PinnedResourcesPanel.OnSpawn 
System.NullReferenceException: Object reference not set to an instance of an object
  at UnityEngine.UI.LayoutRebuilder.Initialize (UnityEngine.RectTransform controller) [0x00007] in <e9635660f69b4d9d84c085aeda3be353>:0 
  at UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate (UnityEngine.RectTransform layoutRoot) [0x0000b] in <e9635660f69b4d9d84c085aeda3be353>:0 
  at Ony.OxygenNotIncluded.FavoriteResources.PinnedResourcesPanel_SortRows.Prefix () [0x00155] in <b372241104d74d8e9ca0e323dfe0d63f>:0 
  at (wrapper dynamic-method) PinnedResourcesPanel.PinnedResourcesPanel.SortRows_Patch1(PinnedResourcesPanel)
  at (wrapper dynamic-method) PinnedResourcesPanel.PinnedResourcesPanel.Populate_Patch2(PinnedResourcesPanel,object)
  at (wrapper dynamic-method) PinnedResourcesPanel.PinnedResourcesPanel.OnSpawn_Patch1(PinnedResourcesPanel)
  at KMonoBehaviour.Spawn () [0x0005d] in <d35824e72985464e85149179dd14d71e>: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 <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
  at KMonoBehaviour.Start () [0x00000] in <d35824e72985464e85149179dd14d71e>:0 
Build: U46-552078-V 

Any help would be greatly appreciated. Also, thank you for all the work you do on these mods :)

O-n-y commented 1 year ago

Please do not create duplicate issues: https://github.com/O-n-y/oxy.mods/issues/117 more info in Discord