RimWorld

RimWorld

ToolkitUtils
Denne tråd er blevet låst
DragonKing 20. maj 2021 kl. 10:31
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?
Sidst redigeret af DragonKing; 17. juni 2021 kl. 5:12
< >
Viser 1-7 af 7 kommentarer
randoo  [udvikler] 16. juni 2021 kl. 12:15 
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 16. juni 2021 kl. 16:15 
Oprindeligt skrevet af 🦖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  [udvikler] 17. juni 2021 kl. 2:42 
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 17. juni 2021 kl. 5:24 
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  [udvikler] 17. juni 2021 kl. 5:33 
Word travels fast lol.
DragonKing 24. juni 2021 kl. 6:15 
Tested within my mod load order and seems to work now. Same goes for the "Vulpes" race from the same author :)
randoo  [udvikler] 24. juni 2021 kl. 8:58 
Awesome!
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50