RimWorld

RimWorld

Animal Tab
Sazra 8 Aug, 2019 @ 10:52am
Bug Report
So I found a bug: If you try to mass assign medical care the animal tab bugs out. It looks blank (no animals visible) and throws an red error, which ticks as long as you hold shift and hover over the medical care label.

Here is the error.

Exception filling window for AnimalTab.MainTabWindow_Animals: System.NullReferenceException: Object reference not set to an instance of an object
at Fluffy.PawnColumnWorker_MedicalCare.set_OverallCare (RimWorld.MedicalCareCategory) <0x0002c>
at Fluffy.PawnColumnWorker_MedicalCare.DoHeader (UnityEngine.Rect,RimWorld.PawnTable) <0x0029b>
at (wrapper dynamic-method) RimWorld.PawnTable.PawnTableOnGUI_Patch3 (object,UnityEngine.Vector2) <0x002c2>
at RimWorld.MainTabWindow_PawnTable.DoWindowContents (UnityEngine.Rect) <0x00126>
at AnimalTab.MainTabWindow_Animals.DoWindowContents (UnityEngine.Rect) <0x0005e>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) <0x00882>

Verse.Log:Error(String, Boolean)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
< >
Showing 1-12 of 12 comments
apadilla124us 6 Sep, 2019 @ 6:25am 
i got this error wonder if its from your mod

Zacherie threw exception in WorkGiver Train: System.NullReferenceException: Object reference not set to an instance of an object
at AnimalTab.CompHandlerSettings.Allows (Verse.Pawn,string&) <0x000f9>
at AnimalTab.Patch_WorkGiver_Train_JobOnThing.Postfix (Verse.Pawn,Verse.Thing,Verse.AI.Job&) <0x000a2>
at (wrapper dynamic-method) RimWorld.WorkGiver_Train.JobOnThing_Patch2 (object,Verse.Pawn,Verse.Thing,bool) <0x0034f>
at RimWorld.WorkGiver_Scanner.HasJobOnThing (Verse.Pawn,Verse.Thing,bool) <0x00031>
at RimWorld.JobGiver_Work/<TryIssueJobPackage>c__AnonStorey1.<>m__0 (Verse.Thing) <0x0005e>
at Verse.GenClosest/<ClosestThingReachable>c__AnonStorey0.<>m__0 (Verse.Thing) <0x000fa>
at Verse.GenClosest.ClosestThing_Global (Verse.IntVec3,System.Collections.IEnumerable,single,System.Predicate`1<Verse.Thing>,System.Func`2<Verse.Thing, single>) <0x00214>
at Verse.GenClosest.ClosestThingReachable (Verse.IntVec3,Verse.Map,Verse.ThingRequest,Verse.AI.PathEndMode,Verse.TraverseParms,single,System.Predicate`1<Verse.Thing>,System.Collections.Generic.IEnumerable`1<Verse.Thing>,int,int,bool,Verse.RegionType,bool) <0x00506>
at (wrapper dynamic-method) RimWorld.JobGiver_Work.TryIssueJobPackage_Patch1 (object,Verse.Pawn,Verse.AI.JobIssueParams) <0x01323>

Verse.Log:Error(String, Boolean)
RimWorld.JobGiver_Work:TryIssueJobPackage_Patch1(Object, Pawn, JobIssueParams)
Verse.AI.ThinkNode_PrioritySorter:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Tagger:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Subtree:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob_Patch3(Object, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob_Patch1(Object, JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick_Patch1(Object)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update_Patch1(Object)
DocSteal 8 Nov, 2019 @ 4:07pm 
i am having that same Error as @apadilla124us
Mina 31 May, 2020 @ 9:41pm 
Hey so the Animal Tab isn't working for me anymore? It just doesn't show when I click on it.
https://gist.github.com/93a6e51fb32f308f72ae521859d1a7f0
The animal filter button disappear when using along side with better pawn control
holding shift while hovering over the medical icons causes everything displayed to disappear.
Kaedys 17 Jul, 2021 @ 12:47pm 
Sorta bug, sorta annoyance, but sorting the animals by lifestage sorts them alphabetically by lifestage, rather than in order of aging. Specifically, this causes the order to be Adult -> Baby -> Juvenile (for most animals). And it gets weirder for animals with different named lifestages. Would be nice, if possible, for it to instead sort them by actual order of aging. I know I can get around this by sorting by age instead of lifestage, but it still kinda threw me off.

Also more feedback than really bug, but the dark colored box of an unchecked checkbox on the dark background of the tab is nearly impossible to see. Would be nice if checkboxes were a bit darker color and/or the background lighter and/or checkboxes simply had a thin grey border around them, so it's easier to pick them out.

For example, there's 7 checkboxes here, but only 3 are really visible, and only because they're checked: https://i.imgur.com/gclZCBd.png
DeathDeax 13 Aug, 2021 @ 2:49am 
When I tame Muffalos the Tab and auto butchering is bugged and I can't see any Animal info anymore.
Fayt Marii 13 Jan, 2022 @ 7:14pm 
Animal tab is a small box on the side of the screen and throws up an constantly increasing error while that tiny box is open until closed. It reads as such when checked.



Exception filling window for AnimalTab.MainTabWindow_Animals: System.NullReferenceException: Object reference not set to an instance of an object
at PawnTableGrouped.PawnTableGroupedGUI.PopulateList () [0x00058] in <9eea2c2c79fb4ea3bc150c937e5dc8a3>:0
at PawnTableGrouped.PawnTableGroupedImpl.PawnTableOnGUI (UnityEngine.Vector2 position) [0x00008] in <9eea2c2c79fb4ea3bc150c937e5dc8a3>:0
at PawnTableGrouped.PawnTablePatches.PawnTableOnGUI_prefix (RimWorld.PawnTable __instance, UnityEngine.Vector2 position) [0x0000a] in <9eea2c2c79fb4ea3bc150c937e5dc8a3>:0
at (wrapper dynamic-method) RimWorld.PawnTable.RimWorld.PawnTable.PawnTableOnGUI_Patch5(RimWorld.PawnTable,UnityEngine.Vector2)
at (wrapper dynamic-method) RimWorld.MainTabWindow_PawnTable.RimWorld.MainTabWindow_PawnTable.DoWindowContents_Patch1(RimWorld.MainTabWindow_PawnTable,UnityEngine.Rect)
at AnimalTab.MainTabWindow_Animals.DoWindowContents (UnityEngine.Rect rect) [0x00017] in <a3f8e18f660f41d69043a3c2f56d9bf4>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
[ZH] Coywolf 3 Feb, 2022 @ 1:25pm 
I believe, after some brief testing to isolate the issue, that Pawnmorpher and Animal Tab are not compatible. Running both leads to some of Pawnmorpher's features regarding animal transformations breaking.
Fayt Marii 8 Feb, 2022 @ 2:45am 
I just tried taking out all my pawnmorpher mods and it still having the same issues
azairvine 19 Apr, 2022 @ 4:15am 
I just added your mod and I'm getting some weird errors on load:

Mod Fluffy.AnimalTab has multiple RimWorld.MainButtonDefs named Animals. Skipping.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DefDatabase`1<RimWorld.MainButtonDef>:AddAllInMods ()
System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MethodBase:Invoke (object,object[])
Verse.GenGeneric:InvokeStaticMethodOnGenericType (System.Type,System.Type,string)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()


It's throwing this error for a lot of MainButtonDefs inc:
AnimalTabLabel
AnimalTabAllowedArea
Wool
Milk
Meat.......

The list goes on. But it *appears* to be working OK (though I can't be 100%)
BOT Arcady 29 Jul, 2023 @ 1:44am 
Population control button on animal tab that is present in vanilla now disappears when this mod is added
< >
Showing 1-12 of 12 comments
Per page: 1530 50