RimWorld

RimWorld

[SR]Realistic Ore Generation (Continued)
Bug Reports
Root level exception in OnGUI(): System.InvalidOperationException: Collection was modified; enumeration operation may not execute. [Ref 333E2122] [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0 at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <51fded79cd284d4d911c5949aff4cb21>:0 at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <51fded79cd284d4d911c5949aff4cb21>:0 at RimWorld.Planet.ExpandableLandmarksUtility.ExpandableLandmarksOnGUI () [0x0009e] in <fcfab19af5d14a608a65ebd77f29482f>:0 at RimWorld.WorldInterface.WorldInterfaceOnGUI () [0x00038] in <fcfab19af5d14a608a65ebd77f29482f>:0 - POSTFIX azravos.factioncustomizer: Void FactionCustomizer.MoveSettlement:WorldInterfaceOnGUIPostfix() at Verse.UIRoot_Entry.UIRootOnGUI () [0x00012] in <fcfab19af5d14a608a65ebd77f29482f>:0 at Verse.Root.OnGUI () [0x00046] in <fcfab19af5d14a608a65ebd77f29482f>:0 - POSTFIX UnlimitedHugs.HugsLib: Void HugsLib.Patches.Root_OnGUI_Patch:OnGUIHookUnfiltered() UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)
Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object [Ref 6A3EAC0E] at FactionControl.IncreaseAttemptPatch+<>c__DisplayClass0_0.<Prefix>b__1 (System.Int32 x) [0x0000d] in <8a2c45e2c6b74676816b2f339c48c443>:0 at Verse.GenCollection.TryRandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector, T& result) [0x0012a] in <fcfab19af5d14a608a65ebd77f29482f>:0 at FactionControl.IncreaseAttemptPatch.Prefix (RimWorld.Planet.PlanetTile& __result, RimWorld.Planet.PlanetLayer layer, RimWorld.Faction faction, System.Boolean mustBeAutoChoosable, System.Predicate`1[T] extraValidator) [0x00053] in <8a2c45e2c6b74676816b2f339c48c443>:0 at RimWorld.Planet.TileFinder.RandomSettlementTileFor (RimWorld.Planet.PlanetLayer layer, RimWorld.Faction faction, System.Boolean mustBeAutoChoosable, System.Predicate`1[T] extraValidator) [0x00058] in <fcfab19af5d14a608a65ebd77f29482f>:0 - PREFIX com.rimworld.mod.factioncontrol: Void FactionControl.TileFinder_RandomSettlementTileFor:Prefix(Faction faction) - PREFIX OskarPotocki.VEF: Void VEF.Factions.VanillaExpandedFramework_TileFinder_RandomSettlementTileFor_Patch+VanillaExpandedFramework_TileFinder_RandomSettlementTileFor_Prefix_Patch:Prefix(Faction faction) - PREFIX com.rimworld.mod.factioncontrol: Boolean FactionControl.IncreaseAttemptPatch:Prefix(PlanetTile& __result, PlanetLayer layer, Faction faction, Boolean mustBeAutoChoosable, Predicate`1 extraValidator) - POSTFIX com.rimworld.mod.factioncontrol: Void FactionControl.TileFinder_RandomSettlementTileFor:Postfix(PlanetTile& __result, PlanetLayer layer, Faction faction, Boolean mustBeAutoChoosable, Predicate`1 extraValidator) - POSTFIX OskarPotocki.VEF: Void VEF.Factions.VanillaExpandedFramework_TileFinder_RandomSettlementTileFor_Patch+VanillaExpandedFramework_TileFinder_RandomSettlementTileFor_Prefix_Patch:Postfix() at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.Planet.PlanetLayer layer, RimWorld.FactionGeneratorParms parms) [0x00209] in <fcfab19af5d14a608a65ebd77f29482f>:0 - POSTFIX OskarPotocki.VEF: Void VEF.Planet.VanillaExpandedFramework_FactionGenerator_NewGeneratedFaction_Patch:Postfix(PlanetLayer layer, FactionGeneratorParms parms, Faction& __result) at RimWorld.FactionGenerator.CreateFactionAndAddToManager (RimWorld.Planet.PlanetLayer layer, RimWorld.FactionDef facDef) [0x000cf] in <fcfab19af5d14a608a65ebd77f29482f>:0 at RimWorld.FactionGenerator.AddFactionToManager (RimWorld.Planet.PlanetLayer layer, RimWorld.FactionDef facDef) [0x00000] in <fcfab19af5d14a608a65ebd77f29482f>:0 at RimWorld.FactionGenerator.InitializeFactions (RimWorld.Planet.PlanetLayer layer, System.Collections.Generic.List`1[T] factions) [0x0001d] in <fcfab19af5d14a608a65ebd77f29482f>:0 at RimWorld.FactionGenerator.GenerateFactionsIntoWorldLayer (RimWorld.Planet.PlanetLayer layer, System.Collections.Generic.List`1[T] factions) [0x00031] in <fcfab19af5d14a608a65ebd77f29482f>:0 - PREFIX com.rimworld.mod.factioncontrol: Void FactionControl.Patch_FactionGenerator_GenerateFactionsIntoWorldLayer:Prefix(PlanetLayer layer) - POSTFIX com.rimworld.mod.factioncontrol: Void FactionControl.Patch_FactionGenerator_GenerateFactionsIntoWorld:Postfix() at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed, RimWorld.Planet.PlanetLayer layer) [0x00006] in <fcfab19af5d14a608a65ebd77f29482f>:0 at RimWorld.Planet.WorldGenerator.GeneratePlanetLayer (RimWorld.Planet.PlanetLayer layer, System.String seedString, System.Int32 seed) [0x0004f] in <fcfab19af5d14a608a65ebd77f29482f>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string) RimWorld.Planet.WorldGenerator:GeneratePlanetLayer (RimWorld.Planet.PlanetLayer,string,int) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Planet.WorldGenerator.GenerateWorld_Patch3 (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,RimWorld.Planet.LandmarkDensity,System.Collections.Generic.List`1<RimWorld.FactionDef>,single) RimWorld.Page_CreateWorldParams:<CanDoNext>b__20_0 () 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 ()

https://gist.github.com/HugsLibRecordKeeper/ceb360a7bce097a22db646ebfd188f26