RimWorld
Technology Blueprints & Reverse Engineering
Getting a bug with this mod and some faction mods
I'm getting this error, which causes the game to not be able to generate faction leaders, leading to the world map only spawning 1-2 factions:

Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
at TBnRE.PatchEntryPoint.GeneratePawn_PostFix (Verse.Pawn __result) [0x0013c] in <52047a9cff1f46c88d3ba200e371fcf3>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch7(Verse.PawnGenerationRequest)
at (wrapper dynamic-method) RimWorld.Faction.RimWorld.Faction.TryGenerateNewLeader_Patch1(RimWorld.Faction)
at (wrapper dynamic-method) RimWorld.FactionGenerator.RimWorld.FactionGenerator.NewGeneratedFaction_Patch0(RimWorld.FactionGeneratorParms)
at (wrapper dynamic-method) RimWorld.FactionGenerator.RimWorld.FactionGenerator.GenerateFactionsIntoWorld_Patch0(System.Collections.Generic.List`1<RimWorld.FactionDef>)
at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed) [0x00005] in <81148ba8d5c64b6285febed4a9d0a048>: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 <81148ba8d5c64b6285febed4a9d0a048>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (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 ()

Can someone point to a fix? The factions causing issues is the Rimsenal factions
< >
1-3 / 3 のコメントを表示
Apparently it's not only Rimsenal factions. Error extends to all modded faction.
GwinnBleidd  [開発者] 2023年3月17日 15時53分 
@TeleportBehindYou thanks for reporting it, i'll try to reproduce it during the weekend
GwinnBleidd  [開発者] 2023年3月20日 19時14分 
I tried to investigate the error, and I couldn't reproduce it. I wasn't getting any errors during the world generation or during the initial gameplay (I added Rimsenal factions mod to my regular mod list to test the issue).

I'd need a generated Husglib report to see what mods you were using, and, more importantly, what C# patches those mods added.

I strongly suspect the error is caused by some third-party mod patching one of the methods used by the TBnRE mod

Thanks you
< >
1-3 / 3 のコメントを表示
ページ毎: 1530 50