RimWorld

RimWorld

Rimsenal Factions
Getting an error on worldgen when using this faction mod
I'm getting this error on worldgen:

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 ()

Don't understand why it's happening, and it's only happening with the factions added by this mod. When removing these factions from the faction screen, the world gen works again. When adding them back, the error occurs. How do I fix this?
< >
Viser 1-2 af 2 kommentarer
Nuff  [udvikler] 24. feb. 2023 kl. 5:52 
Hi, looking at the error, the issue is that the faction is unable to generate a faction leader for some reason. This is an error that we have not encountered in testing, and may be a conflict with another mod. Can you post your full mod list, so I can see what might be conflicting?

edit: never mind, the error says which mod it is: TBnRE is Technology Blueprints and Reverse Engineering. Lemme see if I can figure out why it is in conflict.

edit2: I downloaded the mod and tested it, and don't get the same error. Looking at its code, I don't see what the problem is, either. Can you post that full modlist, and also go into the setting for TBnRE and enable Debug Output, and then try again and post the full error log?
Sidst redigeret af Nuff; 24. feb. 2023 kl. 6:15
GwinnBleidd 20. mar. 2023 kl. 19:13 
I'm the developer of the Technology Blueprints & Reverse Engineering (TBnRE) mod.

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.

Like Nuff already mentioned, 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
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50