RimWorld

RimWorld

Misc. Robots
cannot activate any bots at all
ok I can't get the bots to work in a new game for some reason.

I was getting the error from the worktab compatibility issue but installed that mod to let it work but after that I get a different error every time I try to click on activate or activate all
Or really I see 2 errors in the logs, one always from the click and one I'm not sure if it is on tick or what
But I opened a discussion thread so I can paste it all
Any ideas what I can do? They were working fine for awhile but I started a new game and now....
They were working even with worktab and without the worktab+bots mods actually.

I don't know what changed since I haven't changed much between session, but it might still be a mod

well here are the 2 errors. I don't see any obvious reference to another mod unfortunately.


Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object at AIRobot.X2_AIRobot.TrySpawnResources (Verse.Map oldMap, Verse.IntVec3 oldPos) [0x00174] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_AIRobot.Destroy (Verse.DestroyMode mode) [0x000a1] in <1751a4a8abc04e79bf96a416f46629e8>:0 at RimWorld.Planet.WorldPawns.DiscardPawn (Verse.Pawn p, System.Boolean silentlyRemoveReferences) [0x00014] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) RimWorld.Planet.WorldPawns.RimWorld.Planet.WorldPawns.PassToWorld_Patch1(RimWorld.Planet.WorldPawns,Verse.Pawn,RimWorld.Planet.PawnDiscardDecideMode) at Verse.PawnGenerator.DiscardGeneratedPawn (Verse.Pawn pawn) [0x0001d] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x0084a] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch1(Verse.PawnGenerationRequest&) at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch3(Verse.PawnGenerationRequest) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39) Exception ticking AIRobot_RechargeStation_Hauler_V223402 (at (201, 0, 213)). Suppressing further errors. Exception: System.NullReferenceException: Object reference not set to an instance of an object at AIRobot.X2_AIRobot.TrySpawnResources (Verse.Map oldMap, Verse.IntVec3 oldPos) [0x00174] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_AIRobot.Destroy (Verse.DestroyMode mode) [0x000a1] in <1751a4a8abc04e79bf96a416f46629e8>:0 at RimWorld.Planet.WorldPawns.DiscardPawn (Verse.Pawn p, System.Boolean silentlyRemoveReferences) [0x00014] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) RimWorld.Planet.WorldPawns.RimWorld.Planet.WorldPawns.PassToWorld_Patch1(RimWorld.Planet.WorldPawns,Verse.Pawn,RimWorld.Planet.PawnDiscardDecideMode) at Verse.PawnGenerator.DiscardGeneratedPawn (Verse.Pawn pawn) [0x0001d] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x0084a] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch1(Verse.PawnGenerationRequest&) at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch3(Verse.PawnGenerationRequest) at MiscRobotsWorkTabSupport.X2_Building_AIRobotCreator_CreateRobot2.Prefix (System.String pawnDefName, Verse.IntVec3 position, Verse.Map map, RimWorld.Faction faction, AIRobot.X2_AIRobot& __result) [0x0007a] in <5f00d42e769a4afd9a5badf152d7530f>:0 at (wrapper dynamic-method) AIRobot.X2_Building_AIRobotCreator.AIRobot.X2_Building_AIRobotCreator.CreateRobot_Patch1(string,Verse.IntVec3,Verse.Map,RimWorld.Faction) at AIRobot.X2_Building_AIRobotRechargeStation.Button_SpawnBot () [0x000f7] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_Building_AIRobotRechargeStation.Tick () [0x00045] in <1751a4a8abc04e79bf96a416f46629e8>:0 at RimThreaded.TickList_Patch.NormalThingTick () [0x00025] in <6d80dab2f81d4e0f8deef4c54db49b36>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
< >
Showing 16-30 of 42 comments
cawphee.black Aug 5, 2021 @ 8:30am 
My guess is _Patch1 comes from the WorkTab support mod since I found a cs file included with it that shows it patching all the items in the stack trace but I'll keep looking and try the exception without that mod
cawphee.black Aug 5, 2021 @ 8:43am 
Ok without that mod I get a single exception trying to activate a bot

System.NullReferenceException: Object reference not set to an instance of an object at WorkTab.WorkPriority.set_Item (System.Int32 hour, System.Int32 value) [0x00035] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at WorkTab.PriorityTracker.SetPriority (RimWorld.WorkGiverDef workgiver, System.Int32 priority, System.Int32 hour, System.Boolean recache) [0x0001d] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at WorkTab.PriorityTracker.SetPriority (Verse.WorkTypeDef worktype, System.Int32 priority, System.Int32 hour, System.Boolean recache) [0x00016] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at WorkTab.PriorityTracker.SetPriority (Verse.WorkTypeDef worktype, System.Int32 priority, System.Collections.Generic.List`1[T] hours) [0x00020] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at WorkTab.Pawn_Extensions.SetPriority (Verse.Pawn pawn, Verse.WorkTypeDef worktype, System.Int32 priority, System.Collections.Generic.List`1[T] hours) [0x0000b] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at WorkTab.Pawn_WorkSettings_SetPriority.Prefix (RimWorld.Pawn_WorkSettings __instance, Verse.WorkTypeDef w, System.Int32& priority) [0x00006] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0 at (wrapper dynamic-method) RimWorld.Pawn_WorkSettings.RimWorld.Pawn_WorkSettings.SetPriority_Patch1(RimWorld.Pawn_WorkSettings,Verse.WorkTypeDef,int) at AIRobot.X2_AIRobot_Pawn_WorkSettings.EnableAndInitialize () [0x000d0] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_AIRobot_Pawn_WorkSettings..ctor (Verse.Pawn pawn) [0x00010] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_Building_AIRobotCreator.CreateRobot (System.String pawnDefName, Verse.IntVec3 position, Verse.Map map, RimWorld.Faction faction) [0x000d2] in <1751a4a8abc04e79bf96a416f46629e8>:0 at AIRobot.X2_Building_AIRobotRechargeStation.Button_SpawnBot () [0x000f7] in <1751a4a8abc04e79bf96a416f46629e8>:0 at Verse.Command_Action.ProcessInput (UnityEngine.Event ev) [0x00007] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at Verse.GizmoGridDrawer.DrawGizmoGrid (System.Collections.Generic.IEnumerable`1[T] gizmos, System.Single startX, Verse.Gizmo& mouseoverGizmo, System.Func`2[T,TResult] customActivatorFunc, System.Func`2[T,TResult] highlightFunc, System.Func`2[T,TResult] lowlightFunc) [0x006a6] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) Verse.Log:ErrorOnce (string,int) (wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&) RimWorld.MainTabWindow_Inspect:DrawInspectGizmos () RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane) RimWorld.MainTabWindow_Inspect:ExtraOnGUI () Verse.WindowStack:WindowStackOnGUI () (wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch2 (RimWorld.UIRoot_Play) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)
Lunrun Aug 5, 2021 @ 4:34pm 
Would appreciate a fix, I view this and Worktab as pretty essential mods
cawphee.black Aug 6, 2021 @ 3:46am 
So why did you add/change the code to use SetPriority? Did the older code stop working with the new release or was it "techdebt" you wanted to deal with?

It looks like that was commented out for awhile and then on the 3 it was uncommented.

Would it be possible to add a check for worktab or a try/catch and just use the older mechanism for setting priority if worktab is also installed... at least until the worktab side can be fixed?

A work around for this would be really appreciated...
Please please please :)
Or would it not even work? if so, never mind

thanks either way, I really enjoy this mod, it's just a shame that right now the 2 just aren't compatible with each other at all. It's use bots or use the worktab enhancements.
The Frosty Aug 6, 2021 @ 11:17am 
Soooo super awesome workaround to the rescue (with a tiny price to pay):

Deactivate Worktab mod
Load game
Activate the robot
Save Game
Activate Worktab mod
Load Game

Enjoy running robots and cry because you now have to redo ALL the priorities in the work tab.

cawphee.black Aug 6, 2021 @ 2:42pm 
you just have to redo that each time you have new bots, but if it works it would be great
Twilight Aug 7, 2021 @ 1:56am 
I have the same issue, but i do not use any worktab modifications. only BetterPawnControl.
Since yesterday i get only errors, cleaning bots don't move out.
cawphee.black Aug 7, 2021 @ 2:01am 
read up on the worktab discussion, BetterPawnControl and Worktab aren't compatible with each other right now... BPC causes worktab customizations to get reset randomly or always among other things.

but even in a game with just worktab and just misc robots plus misc robots++ bots don't work

Twilight Aug 7, 2021 @ 2:43am 
Well, i didnt complain about Worktab, i said i DO NOT have worktab but also the issues with the robots - this is the Misc Robots discussion. I am here to report on the robots. What i said is that i do NOT use any wortktab modification. Only thing i have is BPC. Still the robots are borked.

Didn't mean to highjack, sorry. Just adding info - There seems to be more compatibility broken than only WorkTab
Last edited by Twilight; Aug 7, 2021 @ 3:08am
Twilight Aug 7, 2021 @ 2:58am 
Ok, in my case it seems to conflict with other mods like AllowTool and aRandomKiwi's HuntForMe. Note that this worked before together, earlier than since two days. So some recent change must have broken it.

I removed HuntForMe from the active mods. Now i get:

Exception in Verse.AI.ThinkNode_PrioritySorter TryIssueJobPackage: System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00003] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.WorkGiverDef.get_Worker () [0x00008] in <1b9c4c73530448bcbb33283e1d4d7d05>:0
at AIRobot.X2_AIRobot.GetWorkGivers (System.Boolean emergency) [0x00142] in <f8629bf68b234d8ab8eae69a792259cb>:0
at AIRobot.X2_JobGiver_Work.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x0002d] in <f8629bf68b234d8ab8eae69a792259cb>:0
at Verse.AI.ThinkNode_PrioritySorter.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x000fb] in <1b9c4c73530448bcbb33283e1d4d7d05>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.AI.ThinkNode_PrioritySorter:TryIssueJobPackage (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_Patch2 (Verse.AI.Pawn_JobTracker,Verse.ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob ()
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch1 (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)
AIRobot.X2_AIRobot:Tick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
Last edited by Twilight; Aug 7, 2021 @ 3:01am
TENb Aug 7, 2021 @ 3:44am 
My robots also don't eat when this mod is on. We'll have to refuse it :(
cawphee.black Aug 7, 2021 @ 4:01am 
Originally posted by Twilight:
Well, i didnt complain about Worktab, i said i DO NOT have worktab but also the issues with the robots - this is the Misc Robots discussion. I am here to report on the robots. What i said is that i do NOT use any wortktab modification. Only thing i have is BPC. Still the robots are borked.

Didn't mean to highjack, sorry. Just adding info - There seems to be more compatibility broken than only WorkTab
That's me trying to help you since this thread is mostly about WORKTAB+ROBOTS....
so it seemed like a safe assumption that you had wortkab :P
Twilight Aug 7, 2021 @ 7:16am 
Ah, sry for that confusion then. No, i only have regular Misc Robots without Worktab; but also with problems now sincea few days
Norfgarb Aug 26, 2021 @ 9:43am 
Been having this some problem (Same stack trace as OP)

I'm writing as I test more things so its a bit in order of my testing

Bit of experimenting has led me to find that using the Scenario condition "Allowed age range" was for me preventing the bot from being able to spawn.
Creating games without this condition was working but any game with it would prevent bots from spawning

Text editing my ongoing save file to remove the corresponding Scenario condition "ScenPart_PawnFilter_Age" allowed me to spawn new bot in my current game.
I also text edited the age range to allow 0 as minimum age this also allowed me to spawn a bot (Note: the scenario editor has a minimum age of 15)


I have tested a few other scenario conditions which affect pawns and not found any others that give me this issue though there are plenty i have not tested


After cutting down my Load order to:

Harmony
Core
Royalty
Ideology
HugsLib
Misc. Robots
Misc. Robots++
Work Tab
MiscRobots WorkTab support
RimPy Mod Manager Database
RimSaves
[FSF] Complex Jobs

I found that after testing removing and re-adding mods from above list it seems to be MiscRobots WorkTab support which has introduced this issue
Trigger Sep 25, 2021 @ 7:08am 
Ok so on this day of our lord 25-09-2021 this ♥♥♥♥ aint working! Whats up?
< >
Showing 16-30 of 42 comments
Per page: 1530 50