lilwhitemouse / RimWorld-LWM.DeepStorage

A mod for the game RimWorld that has a set of Deep Storage Units that allow storing more than one item at a location.
GNU General Public License v3.0
29 stars 36 forks source link

Possible incompatibilities with room senses and room roles #66

Closed cbtendo closed 4 years ago

cbtendo commented 4 years ago

My game freezed when i build one of the storage crates (using this mod & storage solution) and tried to click the crates. it constantly create this error

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object at Verse.Gizmo_RoomStats.GizmoOnGUI (UnityEngine.Vector2 topLeft, System.Single maxWidth) [0x000bb] in :0 at (wrapper dynamic-method) Verse.GizmoGridDrawer.DMD<DMD?-536656640::DrawGizmoGrid_Patch1>(System.Collections.Generic.IEnumerable1<Verse.Gizmo>,single,Verse.Gizmo&) at DubsAnalyzer.H_DrawInspectGizmoGridFor.Prefix (System.Collections.Generic.IEnumerable1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x0007d] in <39d91618e30f4485ac5e89dd9215dea4>:0 at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.DMD<DMD?-1761883008::DrawInspectGizmoGridFor_Patch2>(System.Collections.Generic.IEnumerable`1,Verse.Gizmo&) at RimWorld.MainTabWindow_Inspect.DrawInspectGizmos () [0x00006] in :0 at RimWorld.InspectPaneUtility.ExtraOnGUI (RimWorld.IInspectPane pane) [0x00022] in :0 at RimWorld.MainTabWindow_Inspect.ExtraOnGUI () [0x00006] in :0 at Verse.WindowStack.WindowStackOnGUI () [0x00038] in :0 at (wrapper dynamic-method) RimWorld.UIRoot_Play.DMD<DMD?2005207680::UIRootOnGUI_Patch1>(RimWorld.UIRoot_Play) at Verse.Root.OnGUI () [0x0003d] in :0 Verse.Log:Error(String, Boolean) Verse.Root:OnGUI()

cbtendo commented 4 years ago

turns out to be other mod cuasing this

lilwhitemouse commented 4 years ago

I was about to add Room Roles for "Warehouse" and "Storage Room" - let me head off potential problems now: what was the mod that was causing this?

cbtendo commented 4 years ago

At first I thought it was dubs performance analysis mod. which is weird because a monitoring tool shouldn't cause error like this. But after I turned off the mod, the error doesn't shows. Then I talked with dubwise, but it shouldn't have caused an error.

And then I experimented some more and found out that this issue was caused when there are multiple roles in the same room. such as a room containing stove and any other production building and deep storage (I think). I highly suspect is the kitchen roles, after I separate the stove into another room, the issue is solved.

It's very weird because the mod involved in the log are: DrawGizmoGrid DubsAnalyzer

DrawInspectGizmoGridFor AllowTool

UIRootOnGUI InGameDefEditor DubsAnalyzer

which does not have anything to do with room roles or kitchen. I really dont know now what's the issue. If you want to see the log, its here: https://gist.github.com/HugsLibRecordKeeper/59ad5571b5cf7fa7d50106d894538ea9

lilwhitemouse commented 4 years ago

Out of curiosity, did you ever figure out what this was?

cbtendo commented 4 years ago

I'm not really sure, but there's a strong suspicion that it's vanilla furniture expanded - production. that's my only mod I subscribed that added new kitchen related workbench. and aftar I disabled it, the problem was solved. But, there's nothing in the error log that point into that mod

lilwhitemouse commented 4 years ago

That's as reasonable guess as any. I hope it doesn't happen again!