Playing on 9.0.2, when I started to burn wood in a Gas Grill for Charcoal, I ran into this error:
2023-08-15T12:27:29 208.082 ERR [XUi] Error while updating window group 'workstation_cntGasGrillOpen':
2023-08-15T12:27:29 208.082 EXC Object reference not set to an instance of an object
at ImprovedHordes.Core.World.Event.WorldEventReporter+AIDirectorChunkEventComponent_NotifyEvent_Patch.Postfix (AIDirectorChunkEvent _chunkEvent) [0x00045] in <f3df1dba03e14536a032e6cdeaed5c4b>:0
at (wrapper dynamic-method) AIDirectorChunkEventComponent.DMD<AIDirectorChunkEventComponent::NotifyEvent>(AIDirectorChunkEventComponent,AIDirectorChunkEvent)
at AIDirector.NotifyActivity (EnumAIDirectorChunkEvent type, Vector3i position, System.Single value, System.Single _duration) [0x00039] in <d7dcfa4979674f179c13273f8b30b551>:0
at TileEntity.emitHeatMapEvent (World world, EnumAIDirectorChunkEvent eventType) [0x00046] in <d7dcfa4979674f179c13273f8b30b551>:0
at (wrapper dynamic-method) TileEntityWorkstation.DMD<TileEntityWorkstation::HandleFuel>(TileEntityWorkstation,World,single)
at (wrapper dynamic-method) TileEntityWorkstation.DMD<TileEntityWorkstation::UpdateTick>(TileEntityWorkstation,World)
at (wrapper dynamic-method) XUiC_WorkstationWindowGroup.DMD<XUiC_WorkstationWindowGroup::Update>(XUiC_WorkstationWindowGroup,single)
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00131] in <d7dcfa4979674f179c13273f8b30b551>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
This keeps looping forever. If I quit and restart the game, I instantly start getting the NullReferenceException in a slower loop again, but apart from that, the game seems to run normally. When I open the Gas Grill GUI, the quoted error again occurs in a very fast loop.
Edit: I managed to destroy the Gas Grill, which also eliminated the error. But now I realize that my save must be corrupted somehow. Whenever any workstation contains any produced item, the "NullReferenceException: Object reference not set to an instance of an object" comes back. ☹️
Also getting this:
2023-08-15T13:10:13 641.595 INF Saving 43 of chunks took 122ms
2023-08-15T13:10:34 662.187 WRN [Improved Hordes] [ImprovedHordesMod] TrySaveData(): Failed to save data. Object reference not set to an instance of an object
at ImprovedHordes.ImprovedHordesMod.TrySaveData () [0x00024] in <f3df1dba03e14536a032e6cdeaed5c4b>:0
2023-08-15T13:10:34 662.187 EXC Object reference not set to an instance of an object
at ImprovedHordes.ImprovedHordesMod.TrySaveData () [0x00024] in <f3df1dba03e14536a032e6cdeaed5c4b>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
ImprovedHordes.Implementations.Logging.ImprovedHordesLogger:Exception(Exception)
ImprovedHordes.ImprovedHordesMod:TrySaveData()
ImprovedHordes.World_Save_Patch:Prefix()
World:DMD<World::Save>(World)
GameManager:SaveWorld()
GameManager:Pause(Boolean)
XUiC_InGameMenuWindow:OnOpen()
XUiController:OnOpen()
XUiWindowGroup:OnOpen()
GUIWindowManager:Open(GUIWindow, Boolean, Boolean, Boolean)
GUIWindowManager:SwitchVisible(GUIWindow, Boolean)
GUIWindowManager:SwitchVisible(String, Boolean)
<>c__DisplayClass37_0:<Awake>b__29()
NGuiAction:OnClick()
GUIWindowManager:Update()
Edit 2: So I realized this has to do with the Improved Hordes mod and copied the latest beta 2.0.0-beta.4 over the version bundled with Ravenhearst. This seems to fix it for good.