边缘世界 RimWorld

边缘世界 RimWorld

ToolkitUtils
此主题已被锁定
DragonKing 2021 年 5 月 20 日 上午 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?
最后由 DragonKing 编辑于; 2021 年 6 月 17 日 上午 5:12
< >
正在显示第 1 - 7 条,共 7 条留言
randoo  [开发者] 2021 年 6 月 16 日 下午 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 2021 年 6 月 16 日 下午 4:15 
引用自 🦖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  [开发者] 2021 年 6 月 17 日 上午 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 2021 年 6 月 17 日 上午 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  [开发者] 2021 年 6 月 17 日 上午 5:33 
Word travels fast lol.
DragonKing 2021 年 6 月 24 日 上午 6:15 
Tested within my mod load order and seems to work now. Same goes for the "Vulpes" race from the same author :)
randoo  [开发者] 2021 年 6 月 24 日 上午 8:58 
Awesome!
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50