hetima / DSP_LSTM

Mod for Dyson Sphere Program
https://dsp.thunderstore.io/package/hetima/LSTM/
The Unlicense
15 stars 5 forks source link

Error with latest update #29

Closed bdew closed 10 months ago

bdew commented 10 months ago

Getting this error constantly with game version 0.10.28.21150 mod version 0.8.5

[Warning:  HarmonyX] AccessTools.Field: Could not find field for type UIStatisticsWindow and name entriesLen
System.ArgumentException: FieldRefAccess<UIStatisticsWindow, System.Int32> for Statistics Window (UIStatisticsWindow), entriesLen caused an exception ---> System.MissingFieldException: Field 'UIStatisticsWindow.entriesLen' not found.
  at HarmonyLib.AccessTools.GetInstanceField (System.Type type, System.String fieldName) [0x00010] in <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0 
  at HarmonyLib.AccessTools.FieldRefAccess[T,F] (T instance, System.String fieldName) [0x00032] in <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0 
   --- End of inner exception stack trace ---
  at HarmonyLib.AccessTools.FieldRefAccess[T,F] (T instance, System.String fieldName) [0x00092] in <7f26c0a74c5b43c2a5fc5efd29ec63d6>:0 
  at LSTMMod.UIStatisticsWindowAgent.PostCreate () [0x00023] in <b48996803f5644cbbb92da04353e603c>:0 
  at LSTMMod.LSTM+Patch.UIGame__OnCreate_Postfix () [0x0003f] in <b48996803f5644cbbb92da04353e603c>:0 
  at UIGame._OnCreate () [0x003c9] in <c3b295ce06254256906510939c4119d1>:0 
  at ManualBehaviour._Create () [0x00030] in <c3b295ce06254256906510939c4119d1>:0 
NullReferenceException: Object reference not set to an instance of an object
  at LSTMMod.LSTM+Patch.Mod_entitySignPool_Postfix (EntitySignRenderer __instance) [0x00007] in <b48996803f5644cbbb92da04353e603c>:0 
  at EntitySignRenderer.Draw () [0x00099] in <c3b295ce06254256906510939c4119d1>:0 
  at FactoryModel.OnCameraPostRender (UnityEngine.Camera cam) [0x000d9] in <c3b295ce06254256906510939c4119d1>:0 
  at (wrapper delegate-invoke) System.Action`1[UnityEngine.Camera].invoke_void_T(UnityEngine.Camera)
  at MainCamera.OnPostRender () [0x00007] in <c3b295ce06254256906510939c4119d1>:0 
WelshGuyX commented 10 months ago

Getting same error, after a shut down and restarted game after a break today.. No changes to my mods..

NullReferenceException: Object reference not set to an instance of an object at LSTMMod.LSTM+Patch.Mod_entitySignPool_Postfix (EntitySignRenderer __instance) [0x00007] in :0 at EntitySignRenderer.Draw () [0x00099] in :0 at FactoryModel.OnCameraPostRender (UnityEngine.Camera cam) [0x000d9] in :0 at (wrapper delegate-invoke) System.Action`1[UnityEngine.Camera].invoke_void_T(UnityEngine.Camera) at MainCamera.OnPostRender () [0x00007] in :0

geeksville commented 10 months ago

yeah - new update probably changed the names of something...

image

MortisLegati commented 10 months ago

Confirming

geeksville commented 10 months ago

I just made a fix. Sending it to @hetima in a few minutes.

hetima commented 10 months ago

fixed in 0.8.6 thanks