RimWorld

RimWorld

No Water, No Life
Terra 19 Mar, 2020 @ 5:28pm
Red Error Regarding Caravans
Exception filling window for RimWorld.Dialog_FormCaravan: System.NullReferenceException: Object reference not set to an instance of an object
at MizuMod.MizuCaravanUtility.AddWaterWarningString (RimWorld.Dialog_FormCaravan dialog, System.Collections.Generic.List`1[T] strList) [0x00046] in <716166e6546440758812c8c32e2d4c97>:0
at (wrapper dynamic-method) RimWorld.Dialog_FormCaravan.DMD<DMD<DoBottomButtons_Patch0>?2082838912::DoBottomButtons_Patch0>(RimWorld.Dialog_FormCaravan,UnityEngine.Rect)
at (wrapper dynamic-method) RimWorld.Dialog_FormCaravan.DMD<DMD<DoWindowContents_Patch1>?-911995392::DoWindowContents_Patch1>(RimWorld.Dialog_FormCaravan,UnityEngine.Rect)
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <642567a9bd804f26a9090d82e2c3673d>:0
Verse.Log:Error(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


I'm no modder, nor am I a programmer, just wanted to put this up in a discussion in the hopes it'll help resolve the issues forming caravans.
< >
Showing 1-5 of 5 comments
Terra 21 Mar, 2020 @ 2:38am 
Update:
Tried again today just to see and was able to form a caravan with this mod, however only when I added more water to the caravan. The dialog the error is likely trying to call to a warning for the low water warning for the caravan, in my case I was trying to give the caravan about 2.5 days of water and it wasn't able to form but doubling the amount to 5 allowed it to form.
grapenuts  [developer] 23 Mar, 2020 @ 9:39am 
Thanks for this; I didn't get any error messages in the one scenario I was able to reproduce the problem.
Learnign 26 Mar, 2020 @ 12:54am 
Getting errors here as well

Exception filling window for RimWorld.Dialog_FormCaravan: System.NullReferenceException: Object reference not set to an instance of an object at MizuMod.MizuCaravanUtility.AddWaterWarningString (RimWorld.Dialog_FormCaravan dialog, System.Collections.Generic.List`1[T] strList) [0x00046] in <716166e6546440758812c8c32e2d4c97>:0 at (wrapper dynamic-method) RimWorld.Dialog_FormCaravan.DMD<DMD<DoBottomButtons_Patch0>?-1153010432::DoBottomButtons_Patch0>(RimWorld.Dialog_FormCaravan,UnityEngine.Rect) at (wrapper dynamic-method) RimWorld.Dialog_FormCaravan.DMD<DMD<DoWindowContents_Patch1>?-431646464::DoWindowContents_Patch1>(RimWorld.Dialog_FormCaravan,UnityEngine.Rect) at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <65f126dfb1e4464fa378d4b237f11a99>:0 Verse.Log:Error(String, Boolean) Verse.Window:InnerWindowOnGUI(Int32) UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Explanation what happens
  • With less than 4 days worth of food and water there is no ingame popup telling me I cannot caravan out because I didn't put in enough water / food in my caravan.
  • The above errormessage is shown in debug log.
  • The accept caravan button does nothing unless I put in enough water/food (at below 4 days for me it seems, really confusing as I thought it simply did not work no matter what)
  • If i load up at least 4 days worth of water then I get a confirmation to caravan out and it works.

I know nothing of modding so I hope this helps and you can resolve this issue as I thought my caravan option was completely broken as there was nothing to tell me I didn't load water in until I had put in at least 4 days worth of water.
grapenuts  [developer] 26 Mar, 2020 @ 4:33pm 
@Satisfire did your mod update to version 1.8.1? That version works around this problem.
Learnign 27 Mar, 2020 @ 3:46pm 
Yeah updated and seems to work now. Thank you,
< >
Showing 1-5 of 5 comments
Per page: 1530 50