Ludeon Forums

Ludeon Forums

  • January 20, 2021, 11:11:32 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [1.2.2753+Royalty] Medicines+ : what can be cause of this bug [Error Log]  (Read 69 times)

zbysiek12345

  • Muffalo
  • *
  • Posts: 13
  • Refugee
    • View Profile

My gf uinstall and install again this mod.
1.2.2753+Royalty, steam version, mod from workshop.

Code: [Select]
https://gist.github.com/HugsLibRecordKeeper/3f7133b6001c6108b67e9b1f73b90827
Logged

Canute

  • Transcendent
  • *****
  • Posts: 9718
  • Refugee
    • View Profile

Hi,
do you mean this
Quote
Exception 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.
Logged