O-n-y / oxy.mods

Oxy.BugTracker
14 stars 2 forks source link

[Favourite Resources] Game crashes when attempting to load this mod, new game so no save file #88

Closed TheVillain-Inc closed 1 year ago

TheVillain-Inc commented 2 years ago

Ahoy!

Game crashes when attempting to load this mod, new game so no save file :/ Reinstalled mods, cleared cache, re-sinstalled again. No Joy.

OS Windows 10 Home 19043.1766 (latest at time of writing)

Game Version U42-510972-5 (up to date at time of writting)

Mods installed

Game error output:

Error in PinnedResourcesPanel.PinnedResourcesPanel.OnSpawn System.InvalidCastException: Specified cast is not valid. at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) at Ony.OxygenNotIncluded.Object_Extensions.GetFieldValue[T] (System.Object obj, System.String fieldName) [0x0001f] in :0 at Ony.OxygenNotIncluded.FavoriteResources.FavoriteResources.get_PinnedResourcesPanel_ResourceRows () [0x00000] in :0 at Ony.OxygenNotIncluded.FavoriteResources.PinnedResourcesPanel_SortRows.Prefix () [0x00006] in :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 <8c239b169b544cce8b8bc7ddd2d09e10>: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 <8c239b169b544cce8b8bc7ddd2d09e10>:0 at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <8c239b169b544cce8b8bc7ddd2d09e10>:0 at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <8c239b169b544cce8b8bc7ddd2d09e10>:0 at KMonoBehaviour.Spawn () [0x00000] in <8c239b169b544cce8b8bc7ddd2d09e10>:0 at KMonoBehaviour.Start () [0x00000] in <8c239b169b544cce8b8bc7ddd2d09e10>:0 Build: U42-510972-S

Debug output:

[DebugConsole][1]: Error[Exception]: NullReferenceException: Object reference not set to an instance of an object (wrapper dynamic-method) PinnedResourcesPanel.PinnedResourcesPanel.Refresh_Patch1(PinnedResourcesPanel) PinnedResourcesPanel.Render1000ms (System.Single dt) (at <9411b2c55a4e44e68a95bd3ba148e05c>:0) SimAndRenderScheduler+Render1000msUpdater.Update (IRender1000ms updater, System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) StateMachineUpdater+BucketGroup.InternalAdvance (System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) StateMachineUpdater+BucketGroup.Advance (System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) StateMachineUpdater.Render (System.Single dt) (at <8c239b169b544cce8b8bc7ddd2d09e10>:0) Game.LateUpdate () (at <9411b2c55a4e44e68a95bd3ba148e05c>:0)

O-n-y commented 1 year ago

Should be fixed in upcoming release