RimWorld

RimWorld

Customize Weapon
BUG:可能导致游戏UI消失
Exception filling window for Verse.Dialog_InfoCard: System.InvalidOperationException: Sequence contains no elements
[Ref 494C27D2]
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector, System.Collections.Generic.IComparer`1[T] comparer) [0x00039] in <cb53cd4422904947932d33f561ad8d15>:0
at Verse.GenCollection.MaxBy[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00007] in <cb53cd4422904947932d33f561ad8d15>:0
at CWF.CompDynamicGraphic.GetGraphicDataFor (RimWorld.WeaponTraitDef traitDef) [0x0009f] in <df0345136c7247aebb8fb409471e07ce>:0
at CWF.CompDynamicGraphic.GenerateGraphic () [0x000af] in <df0345136c7247aebb8fb409471e07ce>:0
at CWF.CompDynamicGraphic.GetDynamicGraphic () [0x00017] in <df0345136c7247aebb8fb409471e07ce>:0
at CWF.HarmonyPatches.Postfix_Thing_Graphic.Postfix (Verse.Thing __instance, Verse.Graphic& __result) [0x0000b] in <df0345136c7247aebb8fb409471e07ce>:0
at Verse.Thing.get_Graphic () [0x0006c] in <cb53cd4422904947932d33f561ad8d15>:0
- POSTFIX Vortex.CustomizeWeaponFramework: Void CWF.HarmonyPatches.Postfix_Thing_Graphic:Postfix(Thing __instance, Graphic& __result)
at Verse.Widgets.GetIconFor (Verse.Thing thing, UnityEngine.Vector2 size, System.Nullable`1[T] rot, System.Boolean stackOfOne, System.Single& scale, System.Single& angle, UnityEngine.Vector2& iconProportions, UnityEngine.Color& color, UnityEngine.Material& material) [0x00400] in <cb53cd4422904947932d33f561ad8d15>:0
at Verse.Widgets.ThingIcon (UnityEngine.Rect rect, Verse.Thing thing, System.Single alpha, System.Nullable`1[T] rot, System.Boolean stackOfOne, System.Single scale, System.Boolean grayscale) [0x00067] in <cb53cd4422904947932d33f561ad8d15>:0
at Verse.Dialog_InfoCard.DoWindowContents (UnityEngine.Rect inRect) [0x00072] in <cb53cd4422904947932d33f561ad8d15>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001a6] in <cb53cd4422904947932d33f561ad8d15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
< >
Showing 1-2 of 2 comments
不太确定如何稳定触发,但都发生在打开武器改造面板时
Vortex  [developer] Aug 23 @ 10:16am 
更新再试试,应该修复了
< >
Showing 1-2 of 2 comments
Per page: 1530 50