RimWorld

RimWorld

Some Things Float
This topic has been locked
Tec 6 Mar, 2023 @ 3:20am
Null error
System.NullReferenceException: Object reference not set to an instance of an object
at SomeThingsFloat.FloatingThings_MapComponent.checkForPawnsThatCanFall () [0x0004b] in <a8f2a029e38a4f8baf7e0ccadd13153f>:0
at SomeThingsFloat.FloatingThings_MapComponent.MapComponentTick () [0x0003b] in <a8f2a029e38a4f8baf7e0ccadd13153f>:0
at Verse.MapComponentUtility.MapComponentTick (Verse.Map map) [0x00013] in <38562b1a2ab64eacb931fb5df05ca994>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.MapComponentUtility:MapComponentTick (Verse.Map)
(wrapper dynamic-method) Verse.Map:Verse.Map.MapPostTick_Patch2 (Verse.Map)
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
Verse.Root_Play:Update ()

Not sure what could be causing this. im playing HSK and a bunch of other mods. Looking at the code im not sure what could be null. would be wierd for map.mapPawns.AllPawns to contains a null pawn. And i think every pawn has a PawnCapacityDefOf.manipulation stat?
Last edited by Tec; 6 Mar, 2023 @ 3:21am
< >
Showing 1-3 of 3 comments
Tec 6 Mar, 2023 @ 3:21am 
only happens once, when a pawn enters shallow water, still runs fine though?
Tec 6 Mar, 2023 @ 6:29am 
fixed, just had to wait 30 seconds for the methods to update when added to a new game
Mlie  [developer] 6 Mar, 2023 @ 1:17pm 
Added some more null-checks now, hopefully fixed
< >
Showing 1-3 of 3 comments
Per page: 1530 50