RimWorld
Technology Blueprints & Reverse Engineering
TeleportBehindYou 2023 年 3 月 13 日 下午 12:52
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
TeleportBehindYou 2023 年 3 月 15 日 下午 4:48 
Apparently it's not only Rimsenal factions. Error extends to all modded faction.
GwinnBleidd  [開發人員] 2023 年 3 月 17 日 下午 3:53 
@TeleportBehindYou thanks for reporting it, i'll try to reproduce it during the weekend
GwinnBleidd  [開發人員] 2023 年 3 月 20 日 下午 7: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