RimWorld

RimWorld

Some Things Float
This topic has been locked
qux Mar 3, 2023 @ 12:05pm
Red error : Value cannot be null.
Hi ! I think I have a red error from this mod, I destroy with dev mod all things on water but it's still appear :

System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at SomeThingsFloat.FloatingThings_MapComponent.verifyThingIsInWater (Verse.Thing thing) [0x0000a] in <f40c5f8fce1149089306cd64e1b54da3>:0
at (wrapper dynamic-method) SomeThingsFloat.FloatingThings_MapComponent.SomeThingsFloat.FloatingThings_MapComponent.MapComponentTick_Patch0(SomeThingsFloat.FloatingThings_MapComponent)
at Verse.MapComponentUtility.MapComponentTick (Verse.Map map) [0x00013] in <38562b1a2ab64eacb931fb5df05ca994>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (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_Patch7 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()
< >
Showing 1-6 of 6 comments
Mlie  [developer] Mar 4, 2023 @ 4:27am 
Very hard to know. It seems to try to check on things that have been removed. Should fix itself the next save. You can also turn on verbose logging in the mod to see more info in the log
chainlinc3 Mar 4, 2023 @ 7:43pm 
Got the same error, I think. The details of the log aren't a perfect match, but it's fairly close.

https://gist.github.com/HugsLibRecordKeeper/89a05fe768d9d0fc8f551d5829d55fba

Basically I got three errors. First, when I loaded my save, I got:
"Could not resolve cross refs: System.ArgumentNullException: Value cannot be null. Parameter name: source"

I wrote it off and kept playing, then got:
"System.NullReferenceException: Object reference not set to an instance of an object
at SomeThingsFloat.FloatingThings_MapComponent.spawnThingAtMapEdge () [0x00012] in <8c55815c5ee748f680201e7790af7407>:0 "
Which would tick repeatedly-- I got a few other normal events triggering at the same time that error popped, so I'm assuming it's tied to some sort of event interval trigger? Anyway, from reading it, I assumed that there was some issue with the "Stuff can spawn in the water" system, so I went to the options and toggled it off.

That got the last error, which seems to tick on that same periodic interval:
"System.ArgumentNullException: Value cannot be null.
Parameter name: source"

This seems to be reproducible on this save file, so if you want me to test anything else or get you specific information, I'd be happy to. I'll play for a while with verbose logging on and see if it turns up different/more detailed errors-- I only turned it on partway through this.

I am playing on an coastal island map generated by Geological Landforms. I'm not sure if the ocean might be part of the problem here.
chainlinc3 Mar 4, 2023 @ 8:12pm 
I'll also note that corpses placed in the water are *not* floating away-- even slowly.
Originally posted by chainlinc3:
I'll also note that corpses placed in the water are *not* floating away-- even slowly.
This seems to be a new problem as it was working for me yesterday and now isn't
Mlie  [developer] Mar 6, 2023 @ 1:20pm 
Should be fixed now
< >
Showing 1-6 of 6 comments
Per page: 1530 50