RimWorld

RimWorld

Gendered Genes
tanyfilina 10. jan. 2024 kl. 12:50
Bug report
Hello! I've encountered a game-breaking bug. (I have 330 active mods though). The baby genes panel is empty and after I try to open it, the gene panel from Character Editor breaks too. In this xenotype I didn't use any different genes for different genders. Here is the error:

Exception filling tab RimWorld.ITab_GenesPregnancy: System.NullReferenceException: Object reference not set to an instance of an object
at GenderedGenes.GeneUIPatches.drawGeneDefPatch (Verse.GeneDef gene, UnityEngine.Rect geneRect) [0x00001] in <9e58aa60da3145ae8ecc55bf5c5445ca>:0
at (wrapper dynamic-method) RimWorld.GeneUIUtility.RimWorld.GeneUIUtility.DrawGeneDef_NewTemp_Patch1(Verse.GeneDef,UnityEngine.Rect,RimWorld.GeneType,System.Func`1<string>,bool,bool,bool)
at RimWorld.GeneUIUtility+<>c__DisplayClass21_0.<DrawGeneSections>b__2 (System.Int32 i, UnityEngine.Rect r) [0x0000b] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.GeneUIUtility.DrawSection (UnityEngine.Rect rect, System.Boolean xeno, System.Int32 count, System.Single& curY, System.Single& sectionHeight, System.Action`2[T1,T2] drawer, UnityEngine.Rect containingRect) [0x00167] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.GeneUIUtility.DrawGeneSections (UnityEngine.Rect rect, Verse.Thing target, RimWorld.GeneSet genesOverride, UnityEngine.Vector2& scrollPosition) [0x00121] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.GeneUIUtility.DrawGenesInfo (UnityEngine.Rect rect, Verse.Thing target, System.Single initialHeight, UnityEngine.Vector2& size, UnityEngine.Vector2& scrollPosition, RimWorld.GeneSet pregnancyGenes) [0x0007c] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.ITab_GenesPregnancy.FillTab () [0x00043] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.InspectTabBase+<>c__DisplayClass16_0.<DoTabGUI>b__0 () [0x00039] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.Log:ErrorOnce (string,int)
Verse.InspectTabBase/<>c__DisplayClass16_0:<DoTabGUI>b__0 ()
Verse.ImmediateWindow:DoWindowContents (UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
Sidst redigeret af tanyfilina; 10. jan. 2024 kl. 12:50