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

Can't operate on prisoners #26

Open
onekum opened this issue Dec 10, 2021 · 3 comments
Open

Can't operate on prisoners #26

onekum opened this issue Dec 10, 2021 · 3 comments

Comments

@onekum
Copy link

onekum commented Dec 10, 2021

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
Copy link

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

@onekum
Copy link
Author

onekum commented Dec 10, 2021

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
Copy link

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

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

2 participants