Atla55 / Android-Tiers-Core

20 stars 16 forks source link

Can't operate on prisoners #26

Open onekum opened 2 years ago

onekum commented 2 years ago

Android tiers causes an error whenever I press the "Add Bill" button to try to designate an operation specifically on prisoners. The dropdown doesn't open and an error gets logged in the console:

Exception in Verse.InspectTabBase+<>c__DisplayClass14_0.<DoTabGUI>b__0: System.ArgumentNullException: Value cannot be null.
Parameter name: Activator.CreateInstance(type) called with a null type, possible context=Turn_InstallSmoothModulator
  at VisualExceptions.ExceptionsAndActivatorHandler+PatchedActivator.CreateInstance (System.Type type, System.Object obj) [0x00032] in <a55c7ddd5dc84568bbee92370f8ddc87>:0 
  at Verse.RecipeDef.get_Worker () [0x0000b] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
     - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
  at Verse.RecipeDef.AvailableOnNow (Verse.Thing thing, Verse.BodyPartRecord part) [0x00000] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
  at RimWorld.HealthCardUtility+<>c__DisplayClass25_0.<DrawMedOperationsTab>b__0 () [0x00034] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
  at RimWorld.BillStack.DoListing (UnityEngine.Rect rect, System.Func`1[TResult] recipeOptionsMaker, UnityEngine.Vector2& scrollPosition, System.Single& viewHeight) [0x00079] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
     - transpiler com.Pelador.Rimworld.BestMix: IEnumerable`1 BestMix.Patch_BillStack_DoListing:Transpiler(IEnumerable`1 instructions)
     - prefix falconne.BWM: Boolean ImprovedWorkbenches.BillStack_DoListing_Detour:Prefix()
     - postfix falconne.BWM: Void ImprovedWorkbenches.BillStack_DoListing_Detour:Postfix(Rect& rect)
  at RimWorld.HealthCardUtility.DrawMedOperationsTab (UnityEngine.Rect leftRect, Verse.Pawn pawn, Verse.Thing thingForMedBills, System.Single curY) [0x00063] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
  at RimWorld.HealthCardUtility.DrawHealthSummary (UnityEngine.Rect rect, Verse.Pawn pawn, System.Boolean allowOperations, Verse.Thing thingForMedBills) [0x0012a] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
  at RimWorld.HealthCardUtility.DrawPawnHealthCard (UnityEngine.Rect outRect, Verse.Pawn pawn, System.Boolean allowOperations, System.Boolean showBloodLoss, Verse.Thing thingForMedBills) [0x000e6] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
     - prefix rimworld.rwmods.androidtiers: Boolean MOARANDROIDS.HealthCardUtility_Patch+DrawPawnHealthCard_Patch:Prefix(Rect outRect, Pawn pawn, Boolean allowOperations, Boolean showBloodLoss, Thing thingForMedBills)
     - postfix rimworld.rwmods.androidtiers: Void MOARANDROIDS.HealthCardUtility_Patch+DrawPawnHealthCard_Patch:Postfix(Rect outRect, Pawn pawn, Boolean allowOperations, Boolean showBloodLoss, Thing thingForMedBills)
  at RimWorld.ITab_Pawn_Health.FillTab () [0x0006e] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
  at Verse.InspectTabBase+<>c__DisplayClass14_0.<DoTabGUI>b__0 () [0x00046] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0 
     - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
FGRemastered commented 2 years ago

Could you post a complete Hugslog? Make sure to encounter the error before creating the log!

onekum commented 2 years ago

Could you post a complete Hugslog? Make sure to encounter the error before creating the log!

Here you go: https://gist.github.com/12f82cc52bd5824ff40d9147c7d861ed

FGRemastered commented 2 years ago

CommonSense needs to be loaded far lower. Try putting it just above Rocketman.