RimWorld

RimWorld

Dozz Jul 4, 2021 @ 8:23pm
"GetJoy" Error, any fix?
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 <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.DrugAIUtility.IngestAndTakeToInventoryJob (Verse.Thing drug, Verse.Pawn pawn, System.Int32 maxNumToCarry) [0x00055] in <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.JoyGiver_TakeDrug.CreateIngestJob (Verse.Thing ingestible, Verse.Pawn pawn) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.JoyGiver_Ingest.TryGiveJobInternal (Verse.Pawn pawn, System.Predicate`1[T] extraValidator) [0x0000c] in <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.JoyGiver_Ingest.TryGiveJob (Verse.Pawn pawn) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.JobGiver_GetJoy.TryGiveJobFromJoyGiverDefDirect (RimWorld.JoyGiverDef def, Verse.Pawn pawn) [0x00006] in <7927e938de4c4089b4add4215e58d5b1>:0

at RimWorld.JobGiver_GetJoy.TryGiveJob (Verse.Pawn pawn) [0x00144] in <7927e938de4c4089b4add4215e58d5b1>:0

at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0

at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <7927e938de4c4089b4add4215e58d5b1>:0

Verse.Log:Error(String, Boolean)

Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_PrioritySorter:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Tagger:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Subtree:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)

Verse.AI.Pawn_JobTracker:DetermineNextJob(ThinkTreeDef&)

Verse.AI.Pawn_JobTracker:TryFindAndStartJob()

Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch2(Pawn_JobTracker, JobCondition, Boolean, Boolean)

Verse.AI.Pawn_JobTracker:JobTrackerTick()

Verse.Pawn:Verse.Pawn.Tick_Patch2(Pawn)

Verse.TickList:Tick()

Multiplayer.Client.MapAsyncTimeComp:Tick()

Multiplayer.Client.TickPatch:TickTickable(ITickable)

Multiplayer.Client.TickPatch:Tick()

Multiplayer.Client.TickPatch:Prefix()

Verse.TickManager:Verse.TickManager.TickManagerUpdate_Patch2(TickManager)

Verse.Game:UpdatePlay()

Verse.Root_Play:Update()

Now idk if it had anything to do with it, but it had literally the second it ticked a year, gave me the error, and idk how to fix it, but its REALLY annoying, if it changes anything this is also MP and i had added a new mod, but when i got the error i went back to a backup save i made before adding the mod, and still got the error.

Also....
Exception getting types in assembly CEPatches, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Verse.Log:Error(String, Boolean)

Verse.<get_AllTypes>d__4:MoveNext()

Verse.<FindAllTweakables>d__11:MoveNext()

System.Linq.SelectEnumerableIterator`2:ToArray()

System.Linq.Buffer`1:.ctor(IEnumerable`1)

System.Linq.OrderedEnumerable`1:ToList()

System.Linq.Enumerable:ToList(IEnumerable`1)

Verse.EditWindow_TweakValues:.ctor()

Verse.DebugWindowsOpener:ToggleTweakValuesMenu()

Verse.DebugWindowsOpener:Verse.DebugWindowsOpener.DrawButtons_Patch3(DebugWindowsOpener)

Verse.ImmediateWindow:DoWindowContents(Rect)

Verse.Window:InnerWindowOnGUI(Int32)

UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

happens when i try to do anything debug related
< >
Showing 1-3 of 3 comments
Razor 2.3 Jul 4, 2021 @ 8:47pm 
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 <7927e938de4c4089b4add4215e58d5b1>:0
Try deleting all of your drug policies and make new ones from scratch.

Exception getting types in assembly CEPatches, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Either whatever is adding this CEPatches.dll is corrupt, or is buggy, or is not for the version of RimWorld you are running.
Dozz Jul 4, 2021 @ 8:56pm 
Originally posted by Razor 2.3:
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 <7927e938de4c4089b4add4215e58d5b1>:0
Try deleting all of your drug policies and make new ones from scratch.

Exception getting types in assembly CEPatches, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Either whatever is adding this CEPatches.dll is corrupt, or is buggy, or is not for the version of RimWorld you are running.
know any way of finding out what fixes this?

also how does one delete the drug policies, im a tad new to the game, something like 80 hours
Last edited by Dozz; Jul 4, 2021 @ 8:57pm
Razor 2.3 Jul 4, 2021 @ 9:18pm 
You probably shouldn't be running that many mods if you're that new.

Press Ctrl-F12 while in the game. That'll generate a HugsLib report, assuming you're running HugsLib, publish it to the web, and provide a link to the log. Follow that link, and search for "CEPatches". The first hit will be the mod that adds it.

For the drugs, Assign -> Drug Policy -> Edit -> Delete policy -> select the one you want gone. Repeat until the list is empty.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jul 4, 2021 @ 8:23pm
Posts: 3