Ludeon Forums

RimWorld => Mods => Mod bugs => Topic started by: zbysiek12345 on January 13, 2021, 01:12:52 PM

Title: [1.2.2753+Royalty] Medicines+ : what can be cause of this bug [Error Log]
Post by: zbysiek12345 on January 13, 2021, 01:12:52 PM
My gf uinstall and install again this mod.
1.2.2753+Royalty, steam version, mod from workshop.

https://gist.github.com/HugsLibRecordKeeper/3f7133b6001c6108b67e9b1f73b90827
Title: Re: [1.2.2753+Royalty] Medicines+ : what can be cause of this bug [Error Log]
Post by: Canute on January 13, 2021, 03:36:51 PM
Hi,
do you mean this
QuoteException in RimWorld.ThinkNode_Priority_GetJoy TryIssueJobPackage: System.ArgumentException: Value does not fall within the expected range.
  at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.DrugAIUtility.IngestAndTakeToInventoryJob (Verse.Thing drug, Verse.Pawn pawn, System.Int32 maxNumToCarry) [0x00055] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JoyGiver_TakeDrug.CreateIngestJob (Verse.Thing ingestible, Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at (wrapper dynamic-method) RimWorld.JoyGiver_Ingest.RimWorld.JoyGiver_Ingest.TryGiveJobInternal_Patch1(RimWorld.JoyGiver_Ingest,Verse.Pawn,System.Predicate`1<Verse.Thing>)
  at RimWorld.JoyGiver_Ingest.TryGiveJob (Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JobGiver_GetJoy.TryGiveJobFromJoyGiverDefDirect (RimWorld.JoyGiverDef def, Verse.Pawn pawn) [0x00006] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JobGiver_GetJoy.TryGiveJob (Verse.Pawn pawn) [0x00144] in <d72310b4d8f64d25aee502792b58549f>:0
  at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
?
I think it is because, the mod got removed but the drug policy still point at some items.
Then you safed the game and reinstalled the mod.

You should try to edit the drug policy, and check if that helps.
If you can't even edit anymore, create a new one and assign them to all pawns.

It is a bad idea to remove mods, at last you should keep the safegame so you still can use it.
And never do that with a permadeath colony.
Title: Re: [1.2.2753+Royalty] Medicines+ : what can be cause of this bug [Error Log]
Post by: zbysiek12345 on January 21, 2021, 04:22:20 AM
Quote from: Canute on January 13, 2021, 03:36:51 PM
Hi,
do you mean this
QuoteException in RimWorld.ThinkNode_Priority_GetJoy TryIssueJobPackage: System.ArgumentException: Value does not fall within the expected range.
  at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.DrugAIUtility.IngestAndTakeToInventoryJob (Verse.Thing drug, Verse.Pawn pawn, System.Int32 maxNumToCarry) [0x00055] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JoyGiver_TakeDrug.CreateIngestJob (Verse.Thing ingestible, Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at (wrapper dynamic-method) RimWorld.JoyGiver_Ingest.RimWorld.JoyGiver_Ingest.TryGiveJobInternal_Patch1(RimWorld.JoyGiver_Ingest,Verse.Pawn,System.Predicate`1<Verse.Thing>)
  at RimWorld.JoyGiver_Ingest.TryGiveJob (Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JobGiver_GetJoy.TryGiveJobFromJoyGiverDefDirect (RimWorld.JoyGiverDef def, Verse.Pawn pawn) [0x00006] in <d72310b4d8f64d25aee502792b58549f>:0
  at RimWorld.JobGiver_GetJoy.TryGiveJob (Verse.Pawn pawn) [0x00144] in <d72310b4d8f64d25aee502792b58549f>:0
  at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
  at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
?
I think it is because, the mod got removed but the drug policy still point at some items.
Then you safed the game and reinstalled the mod.

You should try to edit the drug policy, and check if that helps.
If you can't even edit anymore, create a new one and assign them to all pawns.

It is a bad idea to remove mods, at last you should keep the safegame so you still can use it.
And never do that with a permadeath colony.

Yes, you have right, mod was removed and installed again!

My gf removed this mod, because she couldn't find rose petals (there was 2 roses, before update).
I told her that is bad idea, but she always know better than me.

Thank you for help!
I try it and give feedback.