RimWorld

RimWorld

Functional Room(Abandoned)
Scorpio 11 May, 2022 @ 11:15am
game breaking issue
Exception from asynchronous event: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.RoomRoleWorker_Kitchen.GetScore (Verse.Room room)
at Verse.Room. <UpdateRoomStatsAndRole>b__94_0 (Verse.RoomRoleDef x)
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer)
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector)
at (wrapper dynamic-method) Verse.Room.Verse.Room.UpdateRoomStatsAndRole_Patch1(Verse.Room)
at Verse.Room.GetStat (Verse.RoomStatDef roomStat)
at FunctionalRoom.Game_Patch.LoadGame_Postfix ()
at (wrapper dynamic-method) Verse.Game.Verse.Game.LoadGame_Patch11(Verse.Game)
at (wrapper dynamic-method) Verse.SavedGameLoaderNow.Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch2(string)
at Verse.Root_Play+<>c. <Start>b__1_1 ()
at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action)



if there is a recipe with null thingDef product it will cause this mod to screw the room stats and break the save

https://gist.github.com/HugsLibRecordKeeper/80b0c1d660c194086f7a2cc1c5ae04e2


keep in mind that mod list is big due to me testing my own mod that requires a huge amount of testing and incompatibility of mods
< >
Showing 1-3 of 3 comments
ryouta#503PogoLegend  [developer] 14 May, 2022 @ 5:23am 
Thanks for the bug report.
I have attempted to fix the reported bug.
However, there are too many mods to reproduce or test the bug here.
It is a conflict that can only occur under special circumstances.
I have put in a fix based on your report, but I have not been able to confirm whether it was successful or not.
I look forward to your additional reports.
Scorpio 14 May, 2022 @ 5:36am 
Originally posted by ryouta:
Thanks for the bug report.
I have attempted to fix the reported bug.
However, there are too many mods to reproduce or test the bug here.
It is a conflict that can only occur under special circumstances.
I have put in a fix based on your report, but I have not been able to confirm whether it was successful or not.
I look forward to your additional reports.


will test and report back if it happens again
Rowan Skye 7 Nov, 2022 @ 10:34pm 
Exception from asynchronous event: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.RoomRoleWorker_Kitchen.GetScore (Verse.Room room)
at Verse.Room. <UpdateRoomStatsAndRole>b__94_0 (Verse.RoomRoleDef x)
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer)
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector)
at (wrapper dynamic-method) Verse.Room.Verse.Room.UpdateRoomStatsAndRole_Patch1(Verse.Room)
at (wrapper dynamic-method) Verse.Room.Verse.Room.get_Role_Patch0(Verse.Room)
at FunctionalRoom.Game_Patch.LoadGame_Postfix ()
at (wrapper dynamic-method) Verse.Game.Verse.Game.LoadGame_Patch6(Verse.Game)
at (wrapper dynamic-method) Verse.SavedGameLoaderNow.Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch1(string)
at Verse.Root_Play+<>c. <Start>b__1_1 ()
at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action)

didn't know I had the same bug, huh.

https://gist.github.com/d2fdc09a7383d88eba18713664c1d12e
< >
Showing 1-3 of 3 comments
Per page: 1530 50