RimWorld

RimWorld

Mouleman Sep 7, 2020 @ 3:28am
(1.2) Need help with an error log
Hey everyone,

I just got back to rimworld (modded), and was having fun until my colonist started starving on his own for no reason,

Here's the thing :

-Pawns were all eating on their own, everything was fine.

-Then I had to quit for some reason, and reloaded a save. Then I got raided, so I drafter a Pawn, kicked their asses, and undrafted them. (At that point their food level was 20% or something, at which point they usually go for a meal) Unfortunatly for me, they started starving themselves and idk why. I looked it up and it's usually a mod that's doing it, so I was wondering if anyone of you could help me figure out which one.

-Precisions : Food is allowed, I have many survival meals available, no doors forbidden, no restrictions on meals, no prisonners in food room.

Thanks for your time, hope you can help me on that.

Here's the error log (and yes, i'm getting this exact error each and everytime I draft/undraft a pawn) :

Exception in Verse.AI.ThinkNode_PrioritySorter TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object

at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.FoodOptimality_Patch1(Verse.Pawn,Verse.Thing,Verse.ThingDef,single,bool)

at RimWorld.FoodUtility.SpawnedFoodSearchInnerScan (Verse.Pawn eater, Verse.IntVec3 root, System.Collections.Generic.List`1[T] searchSet, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator) [0x00066] in <7b345446a85d4ed599f9c604ae61854b>:0

at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.BestFoodSourceOnMap_Patch1(Verse.Pawn,Verse.Pawn,bool,Verse.ThingDef&,RimWorld.FoodPreferability,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)

at RimWorld.FoodUtility.TryFindBestFoodSourceFor (Verse.Pawn getter, Verse.Pawn eater, System.Boolean desperate, Verse.Thing& foodSource, Verse.ThingDef& foodDef, System.Boolean canRefillDispenser, System.Boolean canUseInventory, System.Boolean allowForbidden, System.Boolean allowCorpse, System.Boolean allowSociallyImproper, System.Boolean allowHarvest, System.Boolean forceScanWholeMap, System.Boolean ignoreReservations, RimWorld.FoodPreferability minPrefOverride) [0x000a5] in <7b345446a85d4ed599f9c604ae61854b>:0

at (wrapper dynamic-method) RimWorld.JobGiver_GetFood.RimWorld.JobGiver_GetFood.TryGiveJob_Patch1(RimWorld.JobGiver_GetFood,Verse.Pawn)

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

at Verse.AI.ThinkNode_PrioritySorter.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x000fc] in <7b345446a85d4ed599f9c604ae61854b>:0

Verse.Log:Error(String, Boolean)

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:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch4(Pawn_JobTracker, ThinkTreeDef&)

Verse.AI.Pawn_JobTracker:TryFindAndStartJob()

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

Verse.AI.Pawn_JobTracker:JobTrackerTick()

Verse.Pawn:Tick()

Verse.TickList:Tick()

Verse.TickManager:DoSingleTick()

Verse.TickManager:TickManagerUpdate()

Verse.Game:UpdatePlay()

Verse.Root_Play:Update()



Peace, Mouleman.
Originally posted by Hape:
Originally posted by Mouleman:
AAAAAAAAH FOR ♥♥♥♥'S SAKE

Ok, here's the thing :

When I reinstalled Rimworld a week ago, I was really high, and I mean REALLY high.
So when I installed RJW like I always do, I followed their little guide to install all their degenerate addons, AND, it is quite possible that I ♥♥♥♥♥♥ with HAR, bc when I open my mod manager, I have a little file icon for HAR, not the usual steam icon, so 5 minutes ago I decided to delete it, and redownload it from the workshop, and poof, no error log.... I'm gonna do some tests to see if I'm right..


I'm reaaaaaaaally sorry for wasting your time, but thanks again for your help, all of you <3<3<3<3<3<3<33<3<3<3<33<3<3<33<<33<3<3

EDIT : After a raid, seeing "Consuming Packaged Survival Meal" made me twitch on the ground... Soooo yeah it was all my fault, sorry again for wasting your time..

Hey man, I'd been struggling with the same issue for the past day and a half. Replacing Humanoid Alien Races 2 with the Workshop version instead of the Github release fixed it right up. I owe you a beer, my dude, thanks!
< >
Showing 1-15 of 34 comments
Astasia Sep 7, 2020 @ 4:57am 
Looks like the issue is with pathing to food. Maybe one of the raiders dropped something better than survival meals, and your colonists are for some reason confused about how to path to it. Something like a solid line of traps with no way around might do it as a base game example, but a lot of mods can cause weird pathing issues. I'd say look around your map for anything better than your survival meals, like fine/lavish meals, or insect jelly, and if you find something try to figure out why they can't path to it (or just forbid it).
MasterJB Sep 7, 2020 @ 5:03am 
I'd also say just forbid everything outside your base, especially foods. Don't know if it's in the base game or from the AllowTool mod, you can forbid a whole selection instead of having to forbid every item separately. If this fixes the starving issue, you know where to search for the pathing problems.
https://steamcommunity.com/sharedfiles/filedetails/?id=761421485
Last edited by MasterJB; Sep 7, 2020 @ 5:04am
Mouleman Sep 7, 2020 @ 5:20am 
Originally posted by Astasia:
Looks like the issue is with pathing to food. Maybe one of the raiders dropped something better than survival meals, and your colonists are for some reason confused about how to path to it. Something like a solid line of traps with no way around might do it as a base game example, but a lot of mods can cause weird pathing issues. I'd say look around your map for anything better than your survival meals, like fine/lavish meals, or insect jelly, and if you find something try to figure out why they can't path to it (or just forbid it).

Oh yeah there's a lot of insect jelly around the base, but I don't know why they wouldn't just get to it, it's in a cave quite far from the base but not forbidden, anyway, thanks for the input Astasia, I'll try that and get back to you ASAP.
Mouleman Sep 7, 2020 @ 5:21am 
Originally posted by MasterJB:
I'd also say just forbid everything outside your base, especially foods. Don't know if it's in the base game or from the AllowTool mod, you can forbid a whole selection instead of having to forbid every item separately. If this fixes the starving issue, you know where to search for the pathing problems.
https://steamcommunity.com/sharedfiles/filedetails/?id=761421485

Oh yeah I have that mod installed lol, just didn't know that insect jelly far from the base would be an issue, thanks mate !
Mouleman Sep 7, 2020 @ 5:35am 
Ok so I regrouped every bit of food in my base and forbid everything edible outside, but I still get an error, a different one though :

Exception in Verse.AI.ThinkNode_PrioritySorter TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.FoodOptimality_Patch1(Verse.Pawn,Verse.Thing,Verse.ThingDef,single,bool)
at RimWorld.FoodUtility.SpawnedFoodSearchInnerScan (Verse.Pawn eater, Verse.IntVec3 root, System.Collections.Generic.List`1[T] searchSet, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator) [0x00066] in <7b345446a85d4ed599f9c604ae61854b>:0
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.BestFoodSourceOnMap_Patch1(Verse.Pawn,Verse.Pawn,bool,Verse.ThingDef&,RimWorld.FoodPreferability,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)
at RimWorld.FoodUtility.TryFindBestFoodSourceFor (Verse.Pawn getter, Verse.Pawn eater, System.Boolean desperate, Verse.Thing& foodSource, Verse.ThingDef& foodDef, System.Boolean canRefillDispenser, System.Boolean canUseInventory, System.Boolean allowForbidden, System.Boolean allowCorpse, System.Boolean allowSociallyImproper, System.Boolean allowHarvest, System.Boolean forceScanWholeMap, System.Boolean ignoreReservations, RimWorld.FoodPreferability minPrefOverride) [0x000a5] in <7b345446a85d4ed599f9c604ae61854b>:0
at (wrapper dynamic-method) RimWorld.JobGiver_GetFood.RimWorld.JobGiver_GetFood.TryGiveJob_Patch1(RimWorld.JobGiver_GetFood,Verse.Pawn)
at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <7b345446a85d4ed599f9c604ae61854b>:0
at Verse.AI.ThinkNode_PrioritySorter.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x000fc] in <7b345446a85d4ed599f9c604ae61854b>:0
Verse.Log:Error(String, Boolean)
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:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch4(Pawn_JobTracker, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch1(Pawn_JobTracker, JobCondition, Boolean, Boolean)
RimWorld.Pawn_DraftController:RimWorld.Pawn_DraftController.set_Drafted_Patch4(Pawn_DraftController, Boolean)
RimWorld.Pawn_DraftController:<GetGizmos>b__13_1()
Verse.Command_Toggle:ProcessInput(Event)
Verse.GizmoGridDrawer:DrawGizmoGrid(IEnumerable`1, Single, Gizmo&)
RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(IEnumerable`1, Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos()
RimWorld.InspectPaneUtility:ExtraOnGUI(IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI()
Verse.WindowStack:WindowStackOnGUI()
RimWorld.UIRoot_Play:UIRootOnGUI()
Verse.Root:Verse.Root.OnGUI_Patch1(Root)

Astasia Sep 7, 2020 @ 5:56am 
That is still essentially the same error. The important part is this:

at RimWorld.FoodUtility.SpawnedFoodSearchInnerScan (Verse.Pawn eater, Verse.IntVec3 root, System.Collections.Generic.List`1[T] searchSet, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator) [0x00066] in <7b345446a85d4ed599f9c604ae61854b>:0

It mentions pathing and max distance. That's really all there is to go off in the error.

[0x00066] in <7b345446a85d4ed599f9c604ae61854b>:0 Probably means something to the devs, they might have a better idea of the exact cause using that, but it's just random numbers to me.

I would say adjust their dietary restrictions so they can only eat the survival meals in your base, and see if that fixes it. If it does, then it was something out on the map, maybe you missed it or maybe it was hidden somehow. If the only thing they are allowed to eat is survival meals, and they are standing next to survival meals and you still get that error, then I have no idea.
Mouleman Sep 7, 2020 @ 6:01am 
Ok thanks I'll try that, once again thanks mate, doing god's work out there
Mouleman Sep 7, 2020 @ 6:06am 
Update : New restriction including only survival meals doesn't do anything, soooooo I don't understand

Thanks anyway
Mouleman Sep 7, 2020 @ 6:32am 
Update : Deactivating almost all the mods gets rid of the error, BUT they still don't eat on their own, this is boring
MasterJB Sep 7, 2020 @ 6:42am 
Try deactivating all the mods and then downing and/or mental breaking your pawn via DEV mode then heal them, maybe this resets some kind of error they're stuck in.

In Dev Mode: Debug actions menu (top bar) --> Damage until down or mental break --> heal random injury (idk this works for dev mode downed pawns) or stop mental state

Try both scenarios and see if this helps.
Last edited by MasterJB; Sep 7, 2020 @ 6:46am
Mouleman Sep 7, 2020 @ 7:09am 
Oh, deactivating all mods seems to fix the issue, I'm gonna deactivate all one by one to see which is causing this, I'll keep you updated
Mouleman Sep 7, 2020 @ 7:40am 
Ok I got it to work. Narrowed the problem down to Rimsenal - Feral Faction Pack, which is funny because it only contains weapons, and maybe 1-2 creatures.

Now that I think about it, I was raided by ferrals from this mod, wielding nail guns, RIGHT BEFORE the error occured, so yeah, hope I won't have to go through all this after the next raid..

Anyway thanks both for your help & have a nice day,

Peace.
Mouleman Sep 7, 2020 @ 8:46am 
Okay I have news, seems that the bug is happening again, and once again it's just after being raided... It makes absolutely no sense...
Mouleman Sep 7, 2020 @ 8:47am 
Here's the log this time :

Exception in Verse.AI.ThinkNode_PrioritySorter TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
at Psychology.Harmony.FoodUtility_AddPickyThoughts_Patch.AddPickyThoughtsPatch (System.Collections.Generic.List`1[RimWorld.ThoughtDef]& __result) [0x0001a] in <bfb1a8d0fa51432981939df9b4c5a494>:0
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.ThoughtsFromIngesting_Patch2(Verse.Pawn,Verse.Thing,Verse.ThingDef)
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.FoodOptimality_Patch1(Verse.Pawn,Verse.Thing,Verse.ThingDef,single,bool)
at RimWorld.FoodUtility.SpawnedFoodSearchInnerScan (Verse.Pawn eater, Verse.IntVec3 root, System.Collections.Generic.List`1[T] searchSet, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator) [0x00066] in <7b345446a85d4ed599f9c604ae61854b>:0
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.BestFoodSourceOnMap_Patch1(Verse.Pawn,Verse.Pawn,bool,Verse.ThingDef&,RimWorld.FoodPreferability,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.TryFindBestFoodSourceFor_Patch1(Verse.Pawn,Verse.Pawn,bool,Verse.Thing&,Verse.ThingDef&,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)
at (wrapper dynamic-method) RimWorld.JobGiver_GetFood.RimWorld.JobGiver_GetFood.TryGiveJob_Patch1(RimWorld.JobGiver_GetFood,Verse.Pawn)
at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <7b345446a85d4ed599f9c604ae61854b>:0
at Verse.AI.ThinkNode_PrioritySorter.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x000fc] in <7b345446a85d4ed599f9c604ae61854b>:0
Verse.Log:Error(String, Boolean)
Verse.AI.ThinkNode_PrioritySorter:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Tagger: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:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch4(Pawn_JobTracker, ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:CheckForJobOverride()
RimWorld.<>c__DisplayClass2_0:<LayDown>b__1()
Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch1(JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Verse.Pawn.Tick_Patch1(Pawn)
Verse.TickList:Tick()
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch1(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Update()
Mouleman Sep 7, 2020 @ 12:46pm 
If anyone still has an idea of what could cause this, I have done some tests, and apparently my colonists won't eat on their own IF there are dead raiders on the map. This makes no sense :(
< >
Showing 1-15 of 34 comments
Per page: 1530 50

Date Posted: Sep 7, 2020 @ 3:28am
Posts: 34