RimWorld

RimWorld

Combat Extended
FullGreaM 13 Feb, 2024 @ 1:18pm
[Bug Report:] Error in generating the map and faction settlements on the map
Error generating the map and faction settlements on the map.
Good afternoon, when I try to start a new game or load an old one, factions on the map and settlements disappear (in the case of a new game, faction settlements in the amount of 0 to 1 may appear).
I tried to disable all DLC (including Biotech), but this did not bring any results.

List of mods:
Harmony
BetterLoading
Core
Royalty
Ideology
HugsLib
JecsTools
Humanoid Alien Races
Orassans
Combat Extended

Console output:
Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object at CombatExtended.LoadoutPropertiesExtension.TryGenerateWeaponWithAmmoFor (Verse.Pawn pawn, CombatExtended.CompInventory inventory, CombatExtended.SidearmOption option, System.Single biocodeChance) [0x0010c] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0 at CombatExtended.LoadoutPropertiesExtension.GenerateLoadoutFor (Verse.Pawn pawn, System.Single biocodeWeaponChance) [0x00140] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0 at CombatExtended.HarmonyCE.Harmony_PawnInventoryGenerator_GenerateInventoryFor.Postfix (Verse.Pawn p, Verse.PawnGenerationRequest request) [0x00039] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0 at (wrapper dynamic-method) RimWorld.PawnInventoryGenerator.RimWorld.PawnInventoryGenerator.GenerateInventoryFor_Patch1(Verse.Pawn,Verse.PawnGenerationRequest) at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateGearFor_Patch2(Verse.Pawn,Verse.PawnGenerationRequest) at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool) at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x00094] in <cd7169108ea74757aa50c5b33d275c15>:0 at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <cd7169108ea74757aa50c5b33d275c15>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) (wrapper dynamic-method) Verse.PawnGenerator:Verse.PawnGenerator.GeneratePawn_Patch2 (Verse.PawnGenerationRequest) RimWorld.Faction:TryGenerateNewLeader () RimWorld.FactionGenerator:NewGeneratedFaction (RimWorld.FactionGeneratorParms) RimWorld.FactionGenerator:GenerateFactionsIntoWorld (System.Collections.Generic.List`1<RimWorld.FactionDef>) RimWorld.Planet.WorldGenStep_Factions:GenerateFresh (string) RimWorld.Planet.WorldGenerator:GenerateWorld (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,System.Collections.Generic.List`1<RimWorld.FactionDef>,single) RimWorld.Page_CreateWorldParams:<CanDoNext>b__19_0 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()
Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
at CombatExtended.LoadoutPropertiesExtension.TryGenerateWeaponWithAmmoFor (Verse.Pawn pawn, CombatExtended.CompInventory inventory, CombatExtended.SidearmOption option, System.Single biocodeChance) [0x0010c] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0
at CombatExtended.LoadoutPropertiesExtension.GenerateLoadoutFor (Verse.Pawn pawn, System.Single biocodeWeaponChance) [0x00140] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0
at CombatExtended.HarmonyCE.Harmony_PawnInventoryGenerator_GenerateInventoryFor.Postfix (Verse.Pawn p, Verse.PawnGenerationRequest request) [0x00039] in <ba9d4a40f0b5476b85c2e6b478c8d341>:0
at (wrapper dynamic-method) RimWorld.PawnInventoryGenerator.RimWorld.PawnInventoryGenerator.GenerateInventoryFor_Patch1(Verse.Pawn,Verse.PawnGenerationRequest)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateGearFor_Patch2(Verse.Pawn,Verse.PawnGenerationRequest)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool)
at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x00094] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest)
at RimWorld.Faction.TryGenerateNewLeader () [0x00254] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionGeneratorParms parms) [0x001f0] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.FactionGenerator.GenerateFactionsIntoWorld (System.Collections.Generic.List`1[T] factions) [0x00032] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed) [0x00005] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.Planet.WorldGenerator.GenerateWorld (System.Single planetCoverage, System.String seedString, RimWorld.Planet.OverallRainfall overallRainfall, RimWorld.Planet.OverallTemperature overallTemperature, RimWorld.Planet.OverallPopulation population, System.Collections.Generic.List`1[T] factions, System.Single pollution) [0x0010e] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.Planet.WorldGenerator:GenerateWorld (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,System.Collections.Generic.List`1<RimWorld.FactionDef>,single)
RimWorld.Page_CreateWorldParams:<CanDoNext>b__19_0 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()