RimWorld
Misc. Robots
irilis 2021년 8월 15일 오후 1시 17분
NullReferenceException in log
I see multiple errors like this in Player.log:

Exception in BreadthFirstTraverse: System.NullReferenceException: Object reference not set to an instance of an object at RimWorld.GenConstruct.CanConstruct (Verse.Thing t, Verse.Pawn pawn, Verse.WorkTypeDef workType, System.Boolean forced) [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.WorkGiver_ConstructDeliverResourcesToFrames.JobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x0002e] in <00638943358e4807bd44cd7bc8f572da>:0 at RimWorld.WorkGiver_Scanner.HasJobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x00000] in <00638943358e4807bd44cd7bc8f572da>:0 at AIRobot.X2_JobGiver_Work+<>c__DisplayClass1_0.<TryIssueJobPackage>b__1 (Verse.Thing t) [0x0000e] in <a0adc82c73eb48cc9870e2f9e12039e7>:0 at Verse.GenClosest+<>c__DisplayClass4_0.<RegionwiseBFSWorker>b__1 (Verse.Region r) [0x000f7] in <00638943358e4807bd44cd7bc8f572da>:0 at Verse.RegionTraverser+BFSWorker.BreadthFirstTraverseWork (Verse.Region root, Verse.RegionEntryPredicate entryCondition, Verse.RegionProcessor regionProcessor, System.Int32 maxRegions, Verse.RegionType traversableRegionTypes) [0x00054] in <00638943358e4807bd44cd7bc8f572da>:0 at Verse.RegionTraverser.BreadthFirstTraverse (Verse.Region root, Verse.RegionEntryPredicate entryCondition, Verse.RegionProcessor regionProcessor, System.Int32 maxRegions, Verse.RegionType traversableRegionTypes) [0x00044] in <00638943358e4807bd44cd7bc8f572da>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
< >
전체 댓글 3개 중 1~3개 표시 중
irilis 2021년 8월 29일 오전 4시 03분 
I may have found the cause of this error.

Without "MiscRobots WorkTab support" mod robots have "<workSettings IsNull="True" />" in save files. With that mod robots have at least "<workSettings><priorities IsNull="True" /></workSettings>".

RimWorld.GenConstruct.CanConstruct seems to use pawn.workSettings without checking for null, which generates NullReferenceException.
Pacifist 2021년 11월 18일 오전 3시 30분 
irilis 님이 먼저 게시:
I may have found the cause of this error.

Without "MiscRobots WorkTab support" mod robots have "<workSettings IsNull="True" />" in save files. With that mod robots have at least "<workSettings><priorities IsNull="True" /></workSettings>".

RimWorld.GenConstruct.CanConstruct seems to use pawn.workSettings without checking for null, which generates NullReferenceException.
what does that mean? would you then not want MiscRobots WorkTab support then?
irilis 2021년 11월 18일 오전 8시 29분 
Pacifist-ish 님이 먼저 게시:
irilis 님이 먼저 게시:
I may have found the cause of this error.

Without "MiscRobots WorkTab support" mod robots have "<workSettings IsNull="True" />" in save files. With that mod robots have at least "<workSettings><priorities IsNull="True" /></workSettings>".

RimWorld.GenConstruct.CanConstruct seems to use pawn.workSettings without checking for null, which generates NullReferenceException.
what does that mean? would you then not want MiscRobots WorkTab support then?
That means that "MiscRobots WorkTab support" fixed a bug that was cousing NullReferenceException. I don't use "MiscRobots WorkTab support" to change robot priorities, I just use as a patch for a bug.
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50