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

Mental Break Bug #155

Open
Aviuz opened this issue Nov 27, 2019 · 1 comment
Open

Mental Break Bug #155

Aviuz opened this issue Nov 27, 2019 · 1 comment
Labels

Comments

@Aviuz
Copy link
Owner

Aviuz commented Nov 27, 2019

My prisoners no longer mental break, even when very depressed. I get a bug message: Exception ticking Inga (at (112, 0, 104)): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.HarmonyPatches.Patches_TreatmentTinkering.Patch_ReduceChanceForMentalBreak.Prefix (Verse.AI.MentalStateHandler,bool,Verse.MentalStateDef,string,bool,bool,Verse.Pawn) <0x00100>
at (wrapper dynamic-method) Verse.AI.MentalStateHandler.TryStartMentalState_Patch2 (object,Verse.MentalStateDef,string,bool,bool,Verse.Pawn,bool) <0x00050>
at Verse.AI.MentalBreakWorker.TryStart (Verse.Pawn,string,bool) <0x0005e>
at (wrapper dynamic-method) Verse.AI.MentalBreaker.TryDoRandomMoodCausedMentalBreak_Patch1 (object) <0x002a7>
at Verse.AI.MentalBreaker.MentalBreakerTick () <0x0020e>
at Verse.AI.Pawn_MindState.MindStateTick () <0x0009a>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch1 (object) <0x002c9>
at Verse.TickList.Tick () <0x00487>

Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

@Aviuz Aviuz added the bug label Nov 27, 2019
@FrostyFeetFF
Copy link

I got the same issue
Exception ticking 005 (at (118, 0, 138)): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.HarmonyPatches.Patches_TreatmentTinkering.Patch_ReduceChanceForMentalBreak.Prefix (Verse.AI.MentalStateHandler __instance, System.Boolean __result, Verse.MentalStateDef stateDef, System.String reason, System.Boolean forceWake, System.Boolean causedByMood, Verse.Pawn otherPawn) [0x0004b] in <09d3158e5bda4b7d9e819e7307f3baa9>:0
at (wrapper dynamic-method) Verse.AI.MentalStateHandler.DMD<DMD<TryStartMentalState_Patch4>?-43265152::TryStartMentalState_Patch4>(Verse.AI.MentalStateHandler,Verse.MentalStateDef,string,bool,bool,Verse.Pawn,bool)
at Verse.AI.MentalBreakWorker.TryStart (Verse.Pawn pawn, System.String reason, System.Boolean causedByMood) [0x00000] in <29684bdca4b441d38f64a3f064edc8ed>:0
at (wrapper dynamic-method) Verse.AI.MentalBreaker.DMD<DMD<TryDoRandomMoodCausedMentalBreak_Patch1>?-1261721600::TryDoRandomMoodCausedMentalBreak_Patch1>(Verse.AI.MentalBreaker)
at Verse.AI.MentalBreaker.MentalBreakerTick () [0x000df] in <29684bdca4b441d38f64a3f064edc8ed>:0
at (wrapper dynamic-method) Verse.AI.Pawn_MindState.DMD<DMD<MindStateTick_Patch1>?418607360::MindStateTick_Patch1>(Verse.AI.Pawn_MindState)
at (wrapper dynamic-method) Verse.Pawn.DMD<DMD<Tick_Patch4>?-1225472768::Tick_Patch4>(Verse.Pawn)
at Verse.TickList.Tick () [0x0015c] in <29684bdca4b441d38f64a3f064edc8ed>:0
Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?1033447424::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

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

No branches or pull requests

2 participants