Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Surgery Bills Display #27

Open
JoshMayberry opened this issue Dec 10, 2024 · 0 comments
Open

No Surgery Bills Display #27

JoshMayberry opened this issue Dec 10, 2024 · 0 comments

Comments

@JoshMayberry
Copy link

If I try clicking on "Operations" in the health tab, then no bills show up.
Using debug mode- I was able to catch the log message that appears when I click the button:

Exception filling tab RimWorld.ITab_Pawn_Health: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 4252800F]
 at RimWorld.Recipe_InstallArtificialBodyPart+<>c__DisplayClass0_0.<GetPartsToApplyOn>b__0 (Verse.BodyPartRecord record) [0x00034] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.MedicalRecipesUtility+<GetFixedPartsToApplyOn>d__5.MoveNext () [0x0009e] in <69945a8ed6c540cf90b578de735e0605>:0 
     - TRANSPILER rimworld.erdelf.alien_race.main: IEnumerable`1 AlienRace.HarmonyPatches:BodyReferenceTranspiler(IEnumerable`1 instructions)
 at RimWorld.HealthCardUtility+<>c__DisplayClass27_0.<DrawMedOperationsTab>b__0 () [0x00141] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.BillStack.DoListing (UnityEngine.Rect rect, System.Func`1[TResult] recipeOptionsMaker, UnityEngine.Vector2& scrollPosition, System.Single& viewHeight) [0x00082] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.HealthCardUtility.DrawMedOperationsTab (UnityEngine.Rect leftRect, Verse.Pawn pawn, Verse.Thing thingForMedBills, System.Single curY) [0x00063] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.HealthCardUtility.DrawHealthSummary (UnityEngine.Rect rect, Verse.Pawn pawn, System.Boolean allowOperations, Verse.Thing thingForMedBills) [0x0014e] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.HealthCardUtility.DrawPawnHealthCard (UnityEngine.Rect outRect, Verse.Pawn pawn, System.Boolean allowOperations, System.Boolean showBloodLoss, Verse.Thing thingForMedBills) [0x000ae] in <69945a8ed6c540cf90b578de735e0605>:0 
 at RimWorld.ITab_Pawn_Health.FillTab () [0x0003d] in <69945a8ed6c540cf90b578de735e0605>:0 
 at Verse.InspectTabBase+<>c__DisplayClass19_0.<DoTabGUI>b__0 () [0x00039] in <69945a8ed6c540cf90b578de735e0605>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.Log:ErrorOnce (string,int)
Verse.InspectTabBase/<>c__DisplayClass19_0:<DoTabGUI>b__0 ()
Verse.ImmediateWindow:DoWindowContents (UnityEngine.Rect)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Window.InnerWindowOnGUI_Patch0 (Verse.Window,int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

When I remove this mod- then things work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant