RimWorld

RimWorld

Expanded Materials - Stones and Mortars
ROZNE GRY 24 Jan, 2023 @ 5:44am
An error after right-clicking an object
I'm getting an error from this mod, every time I right click on an item or pawn on the floor, with a pawn selected. I have both this mod, and Achtung installed. Looks like an issue between those 2 mods?

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) ExpandedMaterialsStones.Patch_RepairingWalls.ExpandedMaterialsStones.Patch_RepairingWalls.Postfix_Patch0(Verse.Pawn,Verse.Thing,bool,bool&)
at (wrapper dynamic-method) RimWorld.WorkGiver_Repair.RimWorld.WorkGiver_Repair.HasJobOnThing_Patch3(RimWorld.WorkGiver_Repair,Verse.Pawn,Verse.Thing,bool)
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders_Patch4(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>,bool)
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddUndraftedOrders_Patch1(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch6(UnityEngine.Vector3,Verse.Pawn,bool)
at AchtungMod.MultiActions.AddColonist (AchtungMod.Colonist colonist) [0x0001f] in <959daf06d03b47519bd351efd48511c8>:0
at AchtungMod.MultiActions.<.ctor>b__3_0 (AchtungMod.Colonist colonist) [0x00000] in <959daf06d03b47519bd351efd48511c8>:0
at AchtungMod.Tools.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <959daf06d03b47519bd351efd48511c8>:0
at AchtungMod.MultiActions..ctor (System.Collections.Generic.IEnumerable`1[T] colonists, UnityEngine.Vector3 clickPos) [0x00018] in <959daf06d03b47519bd351efd48511c8>:0
at AchtungMod.Controller.MouseDown (UnityEngine.Vector3 pos) [0x00076] in <959daf06d03b47519bd351efd48511c8>:0
at AchtungMod.Controller.HandleEvents () [0x0002f] in <959daf06d03b47519bd351efd48511c8>:0
at (wrapper dynamic-method) AchtungMod.Selector_HandleMapClicks_Patch.AchtungMod.Selector_HandleMapClicks_Patch.Prefix_Patch0()
at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch4(RimWorld.Selector)
at RimWorld.Selector.SelectorOnGUI () [0x00000] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0
at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0
at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch3(RimWorld.UIRoot_Play)
at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch2(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch6 (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch2 (Verse.Root)
< >
Showing 1-5 of 5 comments
Schadenfreude 10 Feb, 2023 @ 5:01pm 
Having the same issue.
RedGlobe 14 Feb, 2023 @ 2:10am 
Same issue here. Yet I am not certain if it is caused by Achtung!, but just reported by it (the mod author of Achtung! and related mods is very keen on issue troubleshooting via extensive error logging and reporting).

Exception in RimWorld.FloatMenuMakerMap.ChoicesAtFor: System.NullReferenceException: Object reference not set to an instance of an object at ExpandedMaterialsStones.Patch_RepairingWalls.Postfix (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced, System.Boolean& __result) [0x00008] in <a3f1ac6dc02e4482ab3f6e7fcae144be>:0 - transpiler PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_FasterGetCompReplacement:Transpiler(IEnumerable`1 instructions, MethodBase method) at RimWorld.WorkGiver_Repair.HasJobOnThing (Verse.Pawn pawn, Verse.Thing t, System.Boolean forced) [0x000fc] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 - transpiler net.pardeike.rimworld.mods.achtung: IEnumerable`1 AchtungMod.WorkGiver_Repair_HasJobOnThing_Patch:Transpiler(IEnumerable`1 instructions) - postfix Argon.ExpandedMaterials.Stones: Void ExpandedMaterialsStones.Patch_RepairingWalls:Postfix(Pawn pawn, Thing t, Boolean forced, Boolean& __result) at RimWorld.FloatMenuMakerMap.AddJobGiverWorkOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts, System.Boolean drafted) [0x0020d] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 - transpiler net.pardeike.rimworld.mods.achtung: IEnumerable`1 AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Transpiler(IEnumerable`1 instructions, MethodBase original) - prefix VanillaExpanded.VFEA: Void VFEAncients.PowerWorker_NoPrioritize:StoreOpts(List`1 opts, List`1& __state, Pawn pawn) - prefix net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Prefix(Pawn pawn, ForcedWork& __state) - postfix VanillaExpanded.VFEA: Void VFEAncients.PowerWorker_NoPrioritize:DisableOpts(List`1 opts, List`1 __state, Pawn pawn) - postfix net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_AddJobGiverWorkOrders_Patch:Postfix(Pawn pawn, ForcedWork __state) at RimWorld.FloatMenuMakerMap.AddUndraftedOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x00085] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x00108] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 - postfix OskarPotocki.VFECore: Void VFE.Mechanoids.HarmonyPatches.FloatMenuMakerMap_ChoicesAtFor_Patch:Postfix(List`1& __result, Vector3 clickPos, Pawn pawn, Boolean suppressAutoTakeableGoto) - postfix net.pardeike.rimworld.mods.achtung: Void AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Postfix:Postfix(List`1 __result, Vector3 clickPos, Pawn pawn) - finalizer net.pardeike.rimworld.mods.achtung: Exception AchtungMod.FloatMenuMakerMap_ChoicesAtFor_Finalizer:Finalizer(Exception __exception, List`1& __result)

Since the method which causes the exception is the very same. I'd advise the mod author (Argon) to take a look at it. "ExpandedMaterialsStones.Patch_RepairingWalls.Postfix". Something there seems to run into an exception.
oldnewone 21 Mar, 2023 @ 5:19am 
Same issue here
roheezy 9 Oct, 2023 @ 10:14am 
Same problem here. Removing Achtung allows me to prioritize work. Can't get it to work with both of them enabled.
TheCakeMachine 17 Feb, 2024 @ 2:46pm 
Also have this issue.
< >
Showing 1-5 of 5 comments
Per page: 1530 50