RimWorld

RimWorld

Replimat
This topic has been locked
Jesus Christ Apr 11, 2022 @ 7:30pm
Colonists don't eat with a replimat terminal on the map.
As stated before, there's a bug or may mod incompatibility that will prevent paws from automatically feeding themselves. It forces me to manually search for food. I was finally able to pinpoint the error to this mod.
I'm not a coder so all this seems foreign to me, but if someone could help me identify what the exact root cause is, that'd be great.
< >
Showing 1-6 of 6 comments
Jesus Christ Apr 11, 2022 @ 7:31pm 
Defender #21 threw exception in WorkGiver DoctorFeedHumanlikes: System.NullReferenceException: Object reference not set to an instance of an object
at Replimat.ReplimatUtility+<>c__DisplayClass7_0.<PickMeal>b__0 (Verse.ThingDef x) [0x00013] in <0a458d143fe64db5bd51fa14d571bc6c>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () [0x0001b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Replimat.ReplimatUtility.PickMeal (Verse.Pawn eater, Verse.Pawn getter) [0x00050] in <0a458d143fe64db5bd51fa14d571bc6c>:0
at Replimat.Patches.Harmony_FoodUtility_GetFinalIngestibleDef.Prefix (Verse.Thing& foodSource, Verse.ThingDef& __result) [0x00010] in <0a458d143fe64db5bd51fa14d571bc6c>:0
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.GetFinalIngestibleDef_Patch2(Verse.Thing,bool)
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.SpawnedFoodSearchInnerScan_Patch2(Verse.Pawn,Verse.IntVec3,System.Collections.Generic.List`1<Verse.Thing>,Verse.AI.PathEndMode,Verse.TraverseParms,single,System.Predicate`1<Verse.Thing>)
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.BestFoodSourceOnMap_Patch8(Verse.Pawn,Verse.Pawn,bool,Verse.ThingDef&,RimWorld.FoodPreferability,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability,System.Nullable`1<single>)
at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.TryFindBestFoodSourceFor_NewTemp_Patch3(Verse.Pawn,Verse.Pawn,bool,Verse.Thing&,Verse.ThingDef&,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)
at (wrapper dynamic-method) RimWorld.WorkGiver_FeedPatient.RimWorld.WorkGiver_FeedPatient.HasJobOnThing_Patch2(RimWorld.WorkGiver_FeedPatient,Verse.Pawn,Verse.Thing,bool)
at RimWorld.JobGiver_Work+<>c__DisplayClass3_1.<TryIssueJobPackage>b__0 (Verse.Thing t) [0x00013] in <99518a644a3e4a7ea3fde566568df84a>:0
at Verse.GenClosest+<>c__DisplayClass2_0.<ClosestThingReachable>b__0 (Verse.Thing t) [0x00034] in <99518a644a3e4a7ea3fde566568df84a>:0
at Verse.GenClosest.<ClosestThing_Global>g__Process|5_0 (Verse.Thing t, Verse.GenClosest+<>c__DisplayClass5_0& ) [0x00047] in <99518a644a3e4a7ea3fde566568df84a>:0
at Verse.GenClosest.ClosestThing_Global (Verse.IntVec3 center, System.Collections.IEnumerable searchSet, System.Single maxDistance, System.Predicate`1[T] validator, System.Func`2[T,TResult] priorityGetter) [0x00125] in <99518a644a3e4a7ea3fde566568df84a>:0
at Verse.GenClosest.ClosestThingReachable (Verse.IntVec3 root, Verse.Map map, Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator, System.Collections.Generic.IEnumerable`1[T] customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32 searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions) [0x0014c] in <99518a644a3e4a7ea3fde566568df84a>:0
at ExpandedRoofing.ClosestThingReachableHelper.ClosestThingReachableWrapper (Verse.IntVec3 root, Verse.Map map, Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator, System.Collections.Generic.IEnumerable`1[T] customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32 searchRegionsMax, System.Boolean forceGlobalSearch, Verse.RegionType traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions) [0x00049] in <0d5ba5dbd8bb4d3c9942755ff10da279>:0
at (wrapper dynamic-method) RimWorld.JobGiver_Work.RimWorld.JobGiver_Work.TryIssueJobPackage_Patch1(RimWorld.JobGiver_Work,Verse.Pawn,Verse.AI.JobIssueParams)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) RimWorld.JobGiver_Work:RimWorld.JobGiver_Work.TryIssueJobPackage_Patch1 (RimWorld.JobGiver_Work,Verse.Pawn,Verse.AI.JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch3 (Verse.AI.Pawn_JobTracker,Verse.ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob ()
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch5 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch4 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
Ayzel Apr 13, 2022 @ 3:41am 
Not super helpful, but I am having the same problem. I have to uninstall all the terminals if I want anyone to actually look for food.
sumghai  [developer] Apr 14, 2022 @ 4:03pm 
Originally posted by The Angel of Death:
Defender #21 threw exception in WorkGiver DoctorFeedHumanlikes: System.NullReferenceException: Object reference not set to an instance of an object
at Replimat.ReplimatUtility+<>c__DisplayClass7_0.<PickMeal>b__0 (Verse.ThingDef x) [0x00013] in <0a458d143fe64db5bd51fa14d571bc6c>:0

What kind of pawn is this “Defender #21”?

I'm also seeing lots of other mods in that stacktrace, so it's very likely you have conflicting mods.

Originally posted by Ayzel:
Not super helpful, but I am having the same problem. I have to uninstall all the terminals if I want anyone to actually look for food.

Are you guys running mods that alter colonist or animal thinktree behavior, such as animals that “act” like humans?

Im any case, please follow this troubleshooting guide[gist.github.com] to narrow down the conflicting mods, then submit a bug report[github.com].
Ayzel Apr 16, 2022 @ 2:07pm 
I have pawnmorpher installed, that I believe would make certain animals act as humans? I need to get my log uploaded...
sumghai  [developer] Apr 16, 2022 @ 5:31pm 
Originally posted by Ayzel:
I have pawnmorpher installed, that I believe would make certain animals act as humans? I need to get my log uploaded...
Again, please follow the troubleshooting guide and narrow down the exact steps needed to reproduce the issue properly. A log by itself isn't particularly useful.
sumghai  [developer] May 6, 2022 @ 2:10am 
I'm closing this discussion, as proper troubleshooting and bug reporting guidelines were not followed.
< >
Showing 1-6 of 6 comments
Per page: 1530 50