RimWorld

RimWorld

Androids [1.3 | Discontinued]
Shaved Dave 14 Mar, 2020 @ 3:26am
Issues since last core update
The latest core update appears to have broken Androids for me - all the droids have normal pawn skins and in dev mode the game freezes with the error below which may have absolutely nothing to do with this mod, but the fact that all the droids' skins are gone is the only clue I have to the issue:

Exception in RimWorld.ThinkNode_ConditionalColonist TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.ThinkNode_ConditionalNeedPercentageAbove.Satisfied (Verse.Pawn pawn) [0x00011] in <059117ca525544ea8f4ce07c349ea4f9>:0
at Verse.AI.ThinkNode_Conditional.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <059117ca525544ea8f4ce07c349ea4f9>:0
at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <059117ca525544ea8f4ce07c349ea4f9>:0
Verse.Log:Error(String, Boolean)
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:DetermineNextJob(ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:CheckForJobOverride()
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:DMD<DMD<Tick_Patch1>?-357101952::Tick_Patch1>(Pawn)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

I appreciate that this is probably not particularly helpful so I'm happy to try whatever you need me to to get to the bottom of the issue.
< >
Showing 1-7 of 7 comments
Shaved Dave 14 Mar, 2020 @ 3:40am 
I gradually added the mods to the game and did a reboot as per this order:

Harmony
Core
Royalty
Humanoid Alien Races 2.0
Androids
Android tiers

They all rebooted without error until I added Android tiers - I get this error on the main menu when I added the mod:


RimWorld 1.1.2573 rev899
Verse.Log:Message(String, Boolean)
RimWorld.VersionControl:LogVersionNumber()
Verse.Root:CheckGlobalInit()
Verse.Root:Start()
Verse.Root_Entry:Start()

Alien race successfully completed 125 patches with harmony.
Verse.Log:Message(String, Boolean)
AlienRace.HarmonyPatches:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.<>c:<DoPlayLoad>b__4_2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

Androids: Fixing surgery recipes for Droids.
Verse.Log:Message(String, Boolean)
Androids.PostDefFixer:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.<>c:<DoPlayLoad>b__4_2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

Androids: Fixing belts whitelist for AlienRace.ThingDef_AlienRace with defName='ChjBattleDroid'.
Verse.Log:Message(String, Boolean)
Androids.PostDefFixer:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.<>c:<DoPlayLoad>b__4_2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

Patching
Verse.Log:Message(String, Boolean)
BlueLeakTest.<Transpiler>d__1:MoveNext()
System.Collections.Generic.List`1:.ctor(IEnumerable`1)
System.Linq.Enumerable:ToList(IEnumerable`1)
HarmonyLib.CodeTranspiler:GetResult(ILGenerator, MethodBase)
HarmonyLib.MethodBodyReader:FinalizeILCodes(Emitter, List`1, List`1, Boolean&)
HarmonyLib.MethodCopier:Finalize(Emitter, List`1, Boolean&)
HarmonyLib.MethodPatcher:CreateReplacement(Dictionary`2&)
HarmonyLib.PatchFunctions:UpdateWrapper(MethodBase, PatchInfo)
HarmonyLib.PatchClassProcessor:ProcessPatchJob(Job)
HarmonyLib.PatchClassProcessor:PatchWithAttributes(MethodBase&)
HarmonyLib.PatchClassProcessor:Patch()
HarmonyLib.Harmony:<PatchAll>b__10_0(Type)
HarmonyLib.CollectionExtensions:Do(IEnumerable`1, Action`1)
HarmonyLib.Harmony:PatchAll(Assembly)
BlueLeakTest.HarmonyPatches:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.<>c:<DoPlayLoad>b__4_2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

Could not execute post-long-event action. Exception: System.TypeInitializationException: The type initializer for 'BlueLeakTest.HarmonyPatches' threw an exception. ---> HarmonyLib.HarmonyException: Ambiguous match for HarmonyMethod[(class=RimWorld.StunHandler, methodname=Notify_DamageApplied, type=Normal, args=undefined)] ---> System.Reflection.AmbiguousMatchException: Ambiguous match found.
at System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00059] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <567df3e0919241ba98db88bec4c6696f>:0
at HarmonyLib.AccessTools.DeclaredMethod (System.Type type, System.String name, System.Type[] parameters, System.Type[] generics) [0x0003c] in <2161c8330234450b8141397c32c11571>:0
at HarmonyLib.PatchTools.GetOriginalMethod (HarmonyLib.HarmonyMethod attr) [0x00049] in <2161c8330234450b8141397c32c11571>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <2161c8330234450b8141397c32c11571>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00082] in <2161c8330234450b8141397c32c11571>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <2161c8330234450b8141397c32c11571>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <2161c8330234450b8141397c32c11571>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <2161c8330234450b8141397c32c11571>:0
at BlueLeakTest.HarmonyPatches..cctor () [0x0001a] in <3b27b835553d4ddc80cb538ebd8c2d4b>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <567df3e0919241ba98db88bec4c6696f>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00018] in <059117ca525544ea8f4ce07c349ea4f9>:0
at Verse.PlayDataLoader+<>c.<DoPlayLoad>b__4_2 () [0x0000a] in <059117ca525544ea8f4ce07c349ea4f9>:0
at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () [0x0007d] in <059117ca525544ea8f4ce07c349ea4f9>:0
Verse.Log:Error(String, Boolean)
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()
Shaved Dave 14 Mar, 2020 @ 3:46am 
Moving this to the right mod discussion area here:

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1386412863/2828702373011092512/

Sorry for posting in the wrong place! I'll leave this here for a bit so other folks don't make the same mistake as me.
Last edited by Shaved Dave; 14 Mar, 2020 @ 3:49am
JakeNinja989 14 Mar, 2020 @ 5:13am 
I'm having the same issue. This wasn't happening about 10 hours ago when I was playing the game
PerfectBalance 15 Mar, 2020 @ 10:44am 
Does anybody know if this is compatible with Robots++?
thierry6416 16 Apr, 2020 @ 1:21pm 
Exception ticking mothballed world pawn. Suppressing further errors. System.NullReferenceException: Object reference not set to an instance of an object
at Androids.HarmonyPatches.CompatPatch_ShouldMeasureTimeNow (System.Boolean __result, Verse.Pawn& pawn) [0x00014] in <18847b645c0d4736ba3a1f29258104be>:0
at (wrapper dynamic-method) RimWorld.RecordWorker_TimeInBedForMedicalReasons.DMD<DMD<ShouldMeasureTimeNow_Patch1>?1609184896::ShouldMeasureTimeNow_Patch1>(RimWorld.RecordWorker_TimeInBedForMedicalReasons,Verse.Pawn)
at RimWorld.Pawn_RecordsTracker.RecordsTickUpdate (System.Int32 interval) [0x00024] in <284a6ff744b9480aa693aa0b43675384>:0
at RimWorld.Pawn_RecordsTracker.RecordsTickMothballed (System.Int32 interval) [0x00000] in <284a6ff744b9480aa693aa0b43675384>:0
at Verse.Pawn.TickMothballed (System.Int32 interval) [0x00014] in <284a6ff744b9480aa693aa0b43675384>:0
at RimWorld.Planet.WorldPawns.DoMothballProcessing () [0x00020] in <284a6ff744b9480aa693aa0b43675384>:0
Verse.Log:Error(String, Boolean)
Verse.Log:ErrorOnce(String, Int32, Boolean)
RimWorld.Planet.WorldPawns:DoMothballProcessing()
RimWorld.Planet.WorldPawns:WorldPawnsTick()
RimWorld.Planet.World:WorldTick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?1845300736::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:DMD<DMD<Update_Patch1>?1540358912::Update_Patch1>(Root_Play)
rainbowflesh🥩 10 May, 2020 @ 8:03am 
i have same problem and i also have a UI disappear bug,its always happen when in game run a bit times,the HUD has disappear,but still can display jump out message,and the message windows will stick on screen not automated close
log:
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Root level exception in OnGUI(): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.ColonistBarColonistDrawer.DrawIcons (UnityEngine.Rect rect, Verse.Pawn colonist) [0x0014c] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <567df3e0919241ba98db88bec4c6696f>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
at MoodBarPatch.MoodPatch.Prefix (RimWorld.ColonistBarColonistDrawer __instance, UnityEngine.Rect& rect, Verse.Pawn& colonist, Verse.Map& pawnMap, System.Boolean& highlight, System.Boolean& reordering) [0x003a7] in <8f9fdcccb90b495b98ae09ba5335cb04>:0
at (wrapper dynamic-method) RimWorld.ColonistBarColonistDrawer.DMD<DMD<DrawColonist_Patch2>?-701553536::DrawColonist_Patch2>(RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool)
at RimWorld.ColonistBar.ColonistBarOnGUI () [0x00135] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs () [0x0003c] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x0001f] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at Verse.Root.OnGUI () [0x0003d] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
BeskarCowboy 11 Aug, 2020 @ 12:41pm 
Think there is a chance it will be fixed soon? Mine isn't working at all now.
< >
Showing 1-7 of 7 comments
Per page: 1530 50