RimWorld

RimWorld

ToolkitUtils
This topic has been locked
DragonKing May 20, 2021 @ 10:31am
Issue with Kisalfar and Fressalfar race
Getting the following error spammed when adding this particular race:
https://steamcommunity.com/sharedfiles/filedetails/?id=2490255045&searchtext=


Exception filling window for SirRandoo.ToolkitUtils.Windows.PawnKindConfigDialog: System.NullReferenceException: Object reference not set to an instance of an object
at SirRandoo.ToolkitUtils.Models.PawnKindItem+<>c.<get_ColonistKindDef>b__9_0 (Verse.PawnKindDef k) [0x00000] in <f3907d26bcb648598819ca0bd3676126>:0
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at SirRandoo.ToolkitUtils.Models.PawnKindItem.get_ColonistKindDef () [0x00006] in <f3907d26bcb648598819ca0bd3676126>:0
at SirRandoo.ToolkitUtils.Windows.PawnKindConfigDialog.DrawKindItem (UnityEngine.Rect nameRect, SirRandoo.ToolkitUtils.Models.PawnKindItem item, UnityEngine.Rect stateRect, UnityEngine.Rect priceRect, UnityEngine.Rect settingsRect) [0x000b5] in <f3907d26bcb648598819ca0bd3676126>:0
at SirRandoo.ToolkitUtils.Windows.PawnKindConfigDialog.DoWindowContents (UnityEngine.Rect inRect) [0x002c0] in <f3907d26bcb648598819ca0bd3676126>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <c36f9493c9844ddaa7fb5c788416098f>:0
Verse.Log:Verse.Log.Error_Patch2(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Any idea what is going on?
Last edited by DragonKing; Jun 17, 2021 @ 5:12am
< >
Showing 1-7 of 7 comments
randoo  [developer] Jun 16, 2021 @ 12:15pm 
Sorry for the late reply, but I'll look into the issue. For some context, Utils is struggling to get the colonist def for that particular mod's race(s), so it tries to default to any pawn def, but their both returning null.
DragonKing Jun 16, 2021 @ 4:15pm 
Originally posted by 🦖sirrandoo:
Sorry for the late reply, but I'll look into the issue. For some context, Utils is struggling to get the colonist def for that particular mod's race(s), so it tries to default to any pawn def, but their both returning null.

A late reply is still a reply :)

Naturally, it should be fixed by the race's author, but thought I would still ask here.
randoo  [developer] Jun 17, 2021 @ 2:42am 
Well, whatever that problem ended up being, accidentally fixed it along the way in v6. The fix should be out sometime this week. Just need a few more checks.
DragonKing Jun 17, 2021 @ 5:24am 
Cool, I also heard a little bird sing about the ability to specify material and quality when buying stuff in the store, which I am also really looking forward too :P

Thanks for checking out the issue, I will try and test it once the stable update is out.
randoo  [developer] Jun 17, 2021 @ 5:33am 
Word travels fast lol.
DragonKing Jun 24, 2021 @ 6:15am 
Tested within my mod load order and seems to work now. Same goes for the "Vulpes" race from the same author :)
randoo  [developer] Jun 24, 2021 @ 8:58am 
Awesome!
< >
Showing 1-7 of 7 comments
Per page: 1530 50