RimWorld
ToolkitUtils
Este tema ha sido cerrado
DragonKing 20 MAY 2021 a las 10:31
Issue with Kisalfar and Fressalfar race
Getting the following error spammed when adding this particular race:
https://psteamcommunity.yuanyoumao.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?
Última edición por DragonKing; 17 JUN 2021 a las 5:12
< >
Mostrando 1-7 de 7 comentarios
randoo  [desarrollador] 16 JUN 2021 a las 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 JUN 2021 a las 16:15 
Publicado originalmente por 🦖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  [desarrollador] 17 JUN 2021 a las 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 JUN 2021 a las 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  [desarrollador] 17 JUN 2021 a las 5:33 
Word travels fast lol.
DragonKing 24 JUN 2021 a las 6:15 
Tested within my mod load order and seems to work now. Same goes for the "Vulpes" race from the same author :)
randoo  [desarrollador] 24 JUN 2021 a las 8:58 
Awesome!
< >
Mostrando 1-7 de 7 comentarios
Por página: 1530 50