Skip to content

Bug: A tab breaks entirely when something "unexpected" is added for display #67

@xCharg

Description

@xCharg

I've been messing around with what stats to display on wild animals tab (I'd assume same bug could happen on other tabs as well).
I've added some column (don't remember which one specifically), and it "broke" entire wild animals tab. Player.log has this error when I try to open this tab:

	Exception filling window for Numbers.MainTabWindow_Numbers: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
	Parameter name: index
	  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0 
	  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
	  at (wrapper dynamic-method) RimWorld.PawnTable.RimWorld.PawnTable.PawnTableOnGUI_Patch0(RimWorld.PawnTable,UnityEngine.Vector2)
	  at RimWorld.MainTabWindow_PawnTable.DoWindowContents (UnityEngine.Rect rect) [0x00020] in <95de19971c5d40878d8742747904cdcd>:0 
	  at Numbers.MainTabWindow_Numbers.DoWindowContents (UnityEngine.Rect rect) [0x003be] in <9ff61b29a7ab468ba28486fbf1f24cff>:0 
	  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <95de19971c5d40878d8742747904cdcd>:0  
	(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

I've compared my save file to oldest autosave and this element was the difference:

	<li Class="Numbers.WorldComponent_Numbers">
		<Numbers_Numbers_WildAnimals>
			<li>Numbers_RimWorld_AbilityDef_AnimalCalm</li>
		</Numbers_Numbers_WildAnimals>
	</li>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions