RimWorld

RimWorld

[K]Extra Stone
Bug report
I'm getting an error. Also the map cannot be generated, and there is a conflict with Map Preview.

Error while instantiating a mod of type KurasStones.StonesMod: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method null ---> System.ArgumentException: Undefined target method for patch method static System.Void KurasStones.World_NaturalRockTypesIn::PostFix(System.Int32 tile, System.Collections.Generic.IEnumerable`1& __result)
[Ref 9F468612]
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal, System.Boolean unpatch) [0x00047] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x0006e] in <8124cc12bdf242eab0a5f7e7edecf387>:0
--- End of inner exception stack trace ---
[Ref F8388905]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00154] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <8124cc12bdf242eab0a5f7e7edecf387>:0
<0x219d59bca00 + 0x000fa> <unknown method>
(wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 88615891]
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.LoadedModManager.CreateModClasses () [0x00085] in <7a4ff24096e646578ec80b030e4544b3>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
< >
Showing 1-2 of 2 comments
Kuratheris  [developer] 19 Jul @ 3:27am 
This seems to be fixed for 1.6. We might not bother to fix it for 1.5 now that 1.6 is out.
This mod appears to be breaking insect cave openings - I can't generate a log as the game freaks out when the bug happens (I legit thought my graphics card was melting down due to the freaky psychedelic trip it sent me on) but I got this from the player log:

[Ref F357D06C] Duplicate stacktrace, see ref for original
[Geological Landforms v1.7.8] Map generator context: Biome: Underground, Landforms: None, BiomeVariants: None (F)
JobDriver threw exception in toil MakeNewToils's initAction for pawn Talon driver=JobDriver_EnterPortal (toilIndex=2) driver.job=(EnterPortal (Job_2740) A = Thing_InsectLairEntrance86860 Giver = ThinkNode_QueuedJob [workGiverDef: null])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref D0CC87B6]
at KurasStones.World_NaturalRockTypesIn.PostFix (RimWorld.Planet.PlanetTile tile, System.Collections.Generic.IEnumerable`1[Verse.ThingDef]& __result) [0x00019] in <f10011b8d3e04c118059539ff6324b88>:0
at RimWorld.Planet.World.NaturalRockTypesIn (RimWorld.Planet.PlanetTile tile) [0x00144] in <b43f3703071a46e8a87fef038ee448bd>:0
- PREFIX GeologicalLandforms.Main: Boolean GeologicalLandforms.Patches.Patch_RimWorld_World:NaturalRockTypesIn_Prefix(World __instance, PlanetTile tile, Boolean& __state)
- POSTFIX GeologicalLandforms.Main: Void GeologicalLandforms.Patches.Patch_RimWorld_World:NaturalRockTypesIn_Postfix(World __instance, PlanetTile tile, Boolean& __state, IEnumerable`1& __result)
- POSTFIX KurasStonesOverride: Void KurasStones.World_NaturalRockTypesIn:PostFix(PlanetTile tile, IEnumerable`1& __result)
at KurasStones.RockNoises_Init.Prefix (Verse.Map map) [0x00015] in <f10011b8d3e04c118059539ff6324b88>:0
at Verse.RockNoises.Init (Verse.Map map) [0x00016] in <b43f3703071a46e8a87fef038ee448bd>:0
- PREFIX KurasStonesOverride: Void KurasStones.RockNoises_Init:Prefix(Map map)
- POSTFIX rimworld.biomes.core: Void BiomesCore.Patches.RockNoises_Init:Postfix()
at Verse.MapGenerator.GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1[T] genStepDefs, Verse.Map map, System.Int32 seed, System.Boolean stepDebugger) [0x000ba] in <b43f3703071a46e8a87fef038ee448bd>:0
- PREFIX GeologicalLandforms.Main: Void GeologicalLandforms.Patches.Patch_Verse_MapGenerator:GenerateContentsIntoMap_Prefix(Map map, IEnumerable`1& genStepDefs)
- PREFIX QF_Patch: Boolean QuestEditor_Library.Patch_ExtraGenStepDefs:postfix(IEnumerable`1& genStepDefs)
- POSTFIX GeologicalLandforms.Main: Void GeologicalLandforms.Patches.Patch_Verse_MapGenerator:GenerateContentsIntoMap_Postfix(Map map)
at Verse.MapGenerator.GenerateMap (Verse.IntVec3 mapSize, RimWorld.Planet.MapParent parent, Verse.MapGeneratorDef mapGenerator, System.Collections.Generic.IEnumerable`1[T] extraGenStepDefs, System.Action`1[T] extraInitBeforeContentGen, System.Boolean isPocketMap, System.Boolean stepDebugger) [0x0064f] in <b43f3703071a46e8a87fef038ee448bd>:0
- TRANSPILER MapPreview.Main: IEnumerable`1 MapPreview.Patches.Patch_Verse_MapGenerator:GenerateMap_Transpiler(IEnumerable`1 instructions)
- PREFIX MapPreview.Main: Void MapPreview.Patches.Patch_Verse_MapGenerator:GenerateMap()
- PREFIX EncounterFramework.Mod: Void EncounterFramework.MapGenerator_GenerateMap_Patch:Prefix(IntVec3& mapSize, MapParent parent, MapGeneratorDef mapGenerator, IEnumerable`1 extraGenStepDefs, Action`1 extraInitBeforeContentGen)
- PREFIX QF_Patch: Boolean QuestEditor_Library.Patch_MapGenerate:prefix(IntVec3& mapSize, MapGeneratorDef mapGenerator)
- PREFIX com.woolstrand.realruins: Void RealRuins.RealRuins+MapGenerator_GenerateMap_Patch:Prefix(IntVec3& mapSize, MapParent& parent, MapGeneratorDef& mapGenerator, IEnumerable`1& extraGenStepDefs, Action`1& extraInitBeforeContentGen)
- POSTFIX OskarPotocki.VEF: Void VEF.Maps.VanillaExpandedFramework_MapGenerator_GenerateMap_Patch:Postfix(Map __result)
at Verse.PocketMapUtility.GeneratePocketMap (Verse.IntVec3 size, Verse.MapGeneratorDef generatorDef, System.Collections.Generic.IEnumerable`1[T] extraGenStepDefs, Verse.Map sourceMap) [0x0001e] in <b43f3703071a46e8a87fef038ee448bd>:0
at RimWorld.MapPortal.GeneratePocketMapInt () [0x00042] in <b43f3703071a46e8a87fef038ee448bd>:0
at RimWorld.MapPortal.GeneratePocketMap () [0x00006] in <b43f3703071a46e8a87fef038ee448bd>:0
at RimWorld.MapPortal.GetOtherMap () [0x00008] in <b43f3703071a46e8a87fef038ee448bd>:0
at RimWorld.JobDriver_EnterPortal.<MakeNewToils>b__5_1 () [0x0000c] in <b43f3703071a46e8a87fef038ee448bd>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <b43f3703071a46e8a87fef038ee448bd>:0
System.NullReferenceException: Object reference not set to an instance of an object
[Ref 5BA14CB6]
at Verse.FishShadowComponent.MapComponentTick () [0x00018] in <b43f3703071a46e8a87fef038ee448bd>:0
at Verse.MapComponentUtility.MapComponentTick (Verse.Map map) [0x00013] in <b43f3703071a46e8a87fef038ee448bd>:0
Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref BE22D223]
at Verse.MapDrawer.WholeMapChanged (System.UInt64 change) [0x00016] in <b43f3703071a46e8a87fef038ee448bd>:0
at Verse.GlowGrid.GlowGridUpdate_First () [0x001cf] in <b43f3703071a46e8a87fef038ee448bd>:0
at Verse.Map.MapUpdate () [0x00047] in <b43f3703071a46e8a87fef038ee448bd>:0
- PREFIX Dubwise.DubsBadHygiene: Void DubsBadHygiene.Patches.HarmonyPatches_Plumbing:GridRegen_Prefix(Map __instance)
at Verse.Game.UpdatePlay () [0x00066] in <b43f3703071a46e8a87fef038ee448bd>:0
- POSTFIX net.pardeike.rimworld.mod.camera+: Void CameraPlus.Game_UpdatePlay_Patch:Postfix()
at Verse.Root_Play.Update () [0x00032] in <b43f3703071a46e8a87fef038ee448bd>:0
System.NullReferenceException: Object reference not set to an instance of an object
< >
Showing 1-2 of 2 comments
Per page: 1530 50