RimWorld

RimWorld

NR_AutoMachineTool
Red Error
When the AutoMachineTool makes the following items, the error appears and the AutoMachineTool no longer works

the second " artificial ear "
the second " Heavy submachine gun "
" Synthetic lung "
" Surrogate kidney "
" Bionic spine "
" Bionic stomach "


Red Error:
System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.StatWorker.GetValueUnfinalized (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00373] in <000153db58284aa38698b9c41ca1154b>:0
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00043] in <000153db58284aa38698b9c41ca1154b>:0
at RimWorld.StatWorker.GetValueAbstract (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00009] in <000153db58284aa38698b9c41ca1154b>:0
at RimWorld.StatExtension.GetStatValueAbstract (Verse.BuildableDef def, RimWorld.StatDef stat, Verse.ThingDef stuff) [0x00006] in <000153db58284aa38698b9c41ca1154b>:0
at Verse.RecipeDef.WorkAmountTotal (Verse.ThingDef stuffDef) [0x00020] in <000153db58284aa38698b9c41ca1154b>:0
at NR_AutoMachineTool.Building_AutoMachineTool.<TryStartWorking>b__47_1 (NR_AutoMachineTool.Utilities.Tuple`2[T1,T2] tuple) [0x00112] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Utilities.Option`1[T].Select[TO] (System.Func`2[T,TResult] func) [0x0000e] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_AutoMachineTool.TryStartWorking (NR_AutoMachineTool.Building_AutoMachineTool& target, System.Single& workAmount) [0x0004b] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_Base`1[T].Ready () [0x0003a] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_BaseRange`1[T].Ready () [0x00000] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_AutoMachineTool.Ready () [0x00006] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.MapTickManager.Exec (System.Action act) [0x00000] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
Verse.Log:Error(String, Boolean)
NR_AutoMachineTool.MapTickManager:Exec(Action)
System.Collections.Generic.List`1:ForEach(Action`1)
NR_AutoMachineTool.<>c:<MapComponentTick>b__1_1(HashSet`1)
NR_AutoMachineTool.Utilities.Option`1:ForEach(Action`1)
NR_AutoMachineTool.MapTickManager:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Last edited by 珍奶正常微冰; 9 Mar, 2020 @ 9:52pm
< >
Showing 1-5 of 5 comments
MOD:

Harmony
Core
Rimworld DLC
HugsLib
NR_AutoMachineTool

As before, when making certain specific items, red errors occasionally occur. Once this error occurs, the AutoMachineTool making the specific item will stop working.
You can only continue to craft that specific item by removing the AutoMachineTool and rebuilding a new one.

Red error
System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.StatWorker.GetValueUnfinalized (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00373] in <f022d63938c4495c89633af859c233cf>:0
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00043] in <f022d63938c4495c89633af859c233cf>:0
at RimWorld.StatWorker.GetValueAbstract (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00009] in <f022d63938c4495c89633af859c233cf>:0
at RimWorld.StatExtension.GetStatValueAbstract (Verse.BuildableDef def, RimWorld.StatDef stat, Verse.ThingDef stuff) [0x00006] in <f022d63938c4495c89633af859c233cf>:0
at Verse.RecipeDef.WorkAmountTotal (Verse.ThingDef stuffDef) [0x00020] in <f022d63938c4495c89633af859c233cf>:0
at NR_AutoMachineTool.Building_AutoMachineTool.<TryStartWorking>b__47_1 (NR_AutoMachineTool.Utilities.Tuple`2[T1,T2] tuple) [0x00112] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Utilities.Option`1[T].Select[TO] (System.Func`2[T,TResult] func) [0x0000e] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_AutoMachineTool.TryStartWorking (NR_AutoMachineTool.Building_AutoMachineTool& target, System.Single& workAmount) [0x0004b] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_Base`1[T].Ready () [0x0003a] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_BaseRange`1[T].Ready () [0x00000] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.Building_AutoMachineTool.Ready () [0x00006] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
at NR_AutoMachineTool.MapTickManager.Exec (System.Action act) [0x00000] in <624db9a83bfa40d2b7a3d30b0db127a9>:0
Verse.Log:Error(String, Boolean)
NR_AutoMachineTool.MapTickManager:Exec(Action)
System.Collections.Generic.List`1:ForEach(Action`1)
NR_AutoMachineTool.<>c:<MapComponentTick>b__1_1(HashSet`1)
NR_AutoMachineTool.Utilities.Option`1:ForEach(Action`1)
NR_AutoMachineTool.MapTickManager:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Today, when I entered the game developer mode to check for errors, I found that there is a kind of white errors that constantly jump out. The content is similar, but it does not affect the game.
Here are two of those white errors.

first:
--- Main thread ---
0.9182ms (self: 0.0186 ms) ExecuteToExecuteWhenFinished()
- 0.8996ms (self: 0.8996 ms) Verse.Sound.SubSustainer -> Void <.ctor>b__12_0()


Hotspot analysis
----------------------------------------
1x Verse.Sound.SubSustainer -> Void <.ctor>b__12_0() -> 0.8996 ms (total (w/children): 0.8996 ms)
1x ExecuteToExecuteWhenFinished() -> 0.0186 ms (total (w/children): 0.9182 ms)

Verse.Log:Message(String, Boolean)
Verse.ThreadLocalDeepProfiler:Output(Watcher)
Verse.ThreadLocalDeepProfiler:End()
Verse.DeepProfiler:DMD<DMD<End_Patch1>?1026053120::End_Patch1>()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:ExecuteWhenFinished(Action)
Verse.Sound.SubSustainer:.ctor(Sustainer, SubSoundDef)
Verse.Sound.Sustainer:.ctor(SoundDef, SoundInfo)
Verse.Sound.SoundStarter:TrySpawnSustainer(SoundDef, SoundInfo)
NR_AutoMachineTool.<>c__DisplayClass36_0:<CreateWorkingEffect>b__7(SoundDef)
NR_AutoMachineTool.Utilities.Option`1:Select(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:<CreateWorkingEffect>b__36_6(Building_WorkTable)
NR_AutoMachineTool.Utilities.Option`1:SelectMany(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:<CreateWorkingEffect>b__36_2()
NR_AutoMachineTool.Utilities.<>c__DisplayClass16_0`1:<Fold>b__1(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:CreateWorkingEffect()
NR_AutoMachineTool.Building_Base`1:StartWork()
NR_AutoMachineTool.MapTickManager:Exec(Action)
System.Collections.Generic.List`1:ForEach(Action`1)
NR_AutoMachineTool.<>c:<MapComponentTick>b__1_1(HashSet`1)
NR_AutoMachineTool.Utilities.Option`1:ForEach(Action`1)
NR_AutoMachineTool.MapTickManager:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()




second:

--- Main thread ---
0.0123ms (self: 0.0113 ms) ExecuteToExecuteWhenFinished()
- 0.0010ms (self: 0.0010 ms) Verse.Sound.Sustainer -> Void <.ctor>b__15_0()


Hotspot analysis
----------------------------------------
1x ExecuteToExecuteWhenFinished() -> 0.0113 ms (total (w/children): 0.0123 ms)
1x Verse.Sound.Sustainer -> Void <.ctor>b__15_0() -> 0.0010 ms (total (w/children): 0.0010 ms)

Verse.Log:Message(String, Boolean)
Verse.ThreadLocalDeepProfiler:Output(Watcher)
Verse.ThreadLocalDeepProfiler:End()
Verse.DeepProfiler:DMD<DMD<End_Patch1>?1026053120::End_Patch1>()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:ExecuteWhenFinished(Action)
Verse.Sound.Sustainer:.ctor(SoundDef, SoundInfo)
Verse.Sound.SoundStarter:TrySpawnSustainer(SoundDef, SoundInfo)
NR_AutoMachineTool.<>c__DisplayClass36_0:<CreateWorkingEffect>b__7(SoundDef)
NR_AutoMachineTool.Utilities.Option`1:Select(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:<CreateWorkingEffect>b__36_6(Building_WorkTable)
NR_AutoMachineTool.Utilities.Option`1:SelectMany(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:<CreateWorkingEffect>b__36_2()
NR_AutoMachineTool.Utilities.<>c__DisplayClass16_0`1:<Fold>b__1(Func`2)
NR_AutoMachineTool.Building_AutoMachineTool:CreateWorkingEffect()
NR_AutoMachineTool.Building_Base`1:StartWork()
NR_AutoMachineTool.MapTickManager:Exec(Action)
System.Collections.Generic.List`1:ForEach(Action`1)
NR_AutoMachineTool.<>c:<MapComponentTick>b__1_1(HashSet`1)
NR_AutoMachineTool.Utilities.Option`1:ForEach(Action`1)
NR_AutoMachineTool.MapTickManager:MapComponentTick()
Verse.MapComponentUtility:MapComponentTick(Map)
Verse.Map:MapPostTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
I just found that the white errors did not reappear,
but the previous red errors still appeared.
uu 28 Aug, 2020 @ 5:03am 
SaveableFromNode exception: System.NullReferenceException: Object reference not set to an instance of an object
at NR_AutoMachineTool.Building_BaseRange`1[T].SetPower () [0x00057] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_BaseRange`1[T].set_SupplyPowerForRange (System.Single value) [0x0001d] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_BaseRange`1[T].ReloadSettings (System.Object sender, System.EventArgs e) [0x00016] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_BaseMachine`1[T].ExposeData () [0x0001e] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_BaseLimitation`1[T].ExposeData () [0x00000] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_BaseRange`1[T].ExposeData () [0x00000] in <74570a4a7a2e49b3b78d778391fd1443>:0
at NR_AutoMachineTool.Building_AutoMachineTool.ExposeData () [0x00000] in <74570a4a7a2e49b3b78d778391fd1443>:0
at Verse.ScribeExtractor.SaveableFromNode[T] (System.Xml.XmlNode subNode, System.Object[] ctorArgs) [0x001ca] in <7b345446a85d4ed599f9c604ae61854b>:0
Subnode:
<thing Class="NR_AutoMachineTool.Building_AutoMachineTool"><def>Building_NR_AutoMachineTool_TierOne</def><id>Building_NR_AutoMachineTool_TierOne880436</id><map>0</map><pos>(76, 0, 144)</pos><rot>2</rot><health>100</health><faction>Faction_24</faction><questTags IsNull="True" /><parentThing>Thing_MUR_SubsurfaceConduit48630</parentThing><products /><working>Thing_Building_NR_AutoMachineTool_TierOne880436</working><supplyPowerForSpeed>10000</supplyPowerForSpeed><slotGroupParent>null</slotGroupParent><supplyPowerForRange>1000</supplyPowerForRange><unfinished IsNull="True" /><bill>null</bill><dominant>null</dominant><ingredients IsNull="True" /></thing>
Verse.Log:Error(String, Boolean)
Verse.ScribeExtractor:SaveableFromNode(XmlNode, Object[])
Verse.Scribe_Collections:Look(List`1&, Boolean, String, LookMode, Object[])
Verse.Scribe_Collections:Look(List`1&, String, LookMode, Object[])
Verse.Map:Verse.Map.ExposeData_Patch1(Map)
Verse.ScribeExtractor:SaveableFromNode(XmlNode, Object[])
Verse.Scribe_Collections:Look(List`1&, Boolean, String, LookMode, Object[])
Verse.Scribe_Collections:Look(List`1&, String, LookMode, Object[])
Verse.Game:Verse.Game.LoadGame_Patch1(Game)
Verse.SavedGameLoaderNow:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch3(String)
Verse.<>c:<Start>b__1_1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()
< >
Showing 1-5 of 5 comments
Per page: 1530 50