RimWorld

RimWorld

Way Better Romance
This topic has been locked
Teusdv Dec 4, 2022 @ 6:27pm
bugs with world generation ?
[
Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object
at Verse.DefMap`2[D,V].get_Item (D def) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at RimWorld.Pawn_RecordsTracker.GetValue (RimWorld.RecordDef def) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at BetterRomance.HarmonyPatches.LovePartnerRelationUtility_LovePartnerRelationGenerationChance.Prefix (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean ex, System.Single& __result) [0x00066] in <1f9800281a5d4763be4dc4118efea03d>:0
at (wrapper dynamic-method) RimWorld.LovePartnerRelationUtility.RimWorld.LovePartnerRelationUtility.LovePartnerRelationGenerationChance_Patch2(Verse.Pawn,Verse.Pawn,Verse.PawnGenerationRequest,bool)
at RimWorld.PawnRelationWorker_Spouse.GenerationChance (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest request) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.PawnGenerator+<>c__DisplayClass62_0.<GeneratePawnRelations>b__2 (Verse.Pair`2[T1,T2] x) [0x00025] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.GenCollection.RandomElementByWeightWithDefault[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector, System.Single defaultValueWeight) [0x0002f] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.PawnGenerator.GeneratePawnRelations (Verse.Pawn pawn, Verse.PawnGenerationRequest& request) [0x00154] in <8c412d4a16f94d4cb337e846f2dee469>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1(Verse.PawnGenerationRequest&,string&,bool,bool)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch2(Verse.PawnGenerationRequest&)
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <8c412d4a16f94d4cb337e846f2dee469>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch1(Verse.PawnGenerationRequest)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) Verse.PawnGenerator:Verse.PawnGenerator.GeneratePawn_Patch1 (Verse.PawnGenerationRequest)
RimWorld.Faction:TryGenerateNewLeader ()
RimWorld.FactionGenerator:NewGeneratedFaction (RimWorld.FactionGeneratorParms)
(wrapper dynamic-method) RimWorld.FactionGenerator:RimWorld.FactionGenerator.GenerateFactionsIntoWorld_Patch0 (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 Verse.DefMap`2[D,V].get_Item (D def) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at RimWorld.Pawn_RecordsTracker.GetValue (RimWorld.RecordDef def) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at BetterRomance.HarmonyPatches.LovePartnerRelationUtility_LovePartnerRelationGenerationChance.Prefix (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean ex, System.Single& __result) [0x00066] in <1f9800281a5d4763be4dc4118efea03d>:0
at (wrapper dynamic-method) RimWorld.LovePartnerRelationUtility.RimWorld.LovePartnerRelationUtility.LovePartnerRelationGenerationChance_Patch2(Verse.Pawn,Verse.Pawn,Verse.PawnGenerationRequest,bool)
at RimWorld.PawnRelationWorker_Spouse.GenerationChance (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest request) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.PawnGenerator+<>c__DisplayClass62_0.<GeneratePawnRelations>b__2 (Verse.Pair`2[T1,T2] x) [0x00025] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.GenCollection.RandomElementByWeightWithDefault[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector, System.Single defaultValueWeight) [0x0002f] in <8c412d4a16f94d4cb337e846f2dee469>:0
at Verse.PawnGenerator.GeneratePawnRelations (Verse.Pawn pawn, Verse.PawnGenerationRequest& request) [0x00154] in <8c412d4a16f94d4cb337e846f2dee469>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1(Verse.PawnGenerationRequest&,string&,bool,bool)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch2(Verse.PawnGenerationRequest&)
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <8c412d4a16f94d4cb337e846f2dee469>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch1(Verse.PawnGenerationRequest)
at RimWorld.Faction.TryGenerateNewLeader () [0x00254] in <8c412d4a16f94d4cb337e846f2dee469>:0
at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionGeneratorParms parms) [0x001f0] in <8c412d4a16f94d4cb337e846f2dee469>:0
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 <8c412d4a16f94d4cb337e846f2dee469>: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 <8c412d4a16f94d4cb337e846f2dee469>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (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 ()
]
< >
Showing 1-6 of 6 comments
divineDerivative  [developer] Dec 5, 2022 @ 11:29am 
Can you confirm that this only happens with Way Better Romance? The code leading to the error is copied exactly from vanilla, so I doubt this mod is the problem. The only thing I can think is that you've somehow got Biotech active but don't have a file from Biotech. Make sure your game is updated, there should be a file at ...\RimWorld\Data\Biotech\Defs\RecordDefs called Records_Time.
Teusdv Dec 6, 2022 @ 5:24am 
i fixed it by deleting the indeology DLC folder and doing a integrity verifiy, idk why :Z
yxlylyly Dec 8, 2022 @ 1:14pm 
https://gist.github.com/84f7f2f0b8dc62bc70cf5b980024d611

im also having this problem. I removed every mod and added them back in stages and with all mods but this one the world generates. but if i activate way better romance it doesnt generate the world. if im not in dev mode there's no error or anything shown it just sends me back to the seed selection screen. i dont have any of the dlc so theres no ideology dlc folder to delete :/
i did try verifying the game files but that didnt make a difference
Teusdv Dec 8, 2022 @ 1:31pm 
try fully vanilla, then go adding mods related to worldgen one by one would be my advice
yxlylyly Dec 8, 2022 @ 3:07pm 
Originally posted by Teusdv:
try fully vanilla, then go adding mods related to worldgen one by one would be my advice
i did that lol i said that in my post

but my problem looks like it might be more a pawn gen issue then a world gen one. if i disable the mod and generate a world start a save, etc and then enable it and load that save everything works but no other pawns ever show up as raiders or whatever and checking the log it looks like the problem is RimWorld.RecordDefOf.TimeAsChildInColony is not found
divineDerivative  [developer] Dec 10, 2022 @ 1:22pm 
I cannot reproduce this with only Core and Way Better Romance. One of your other mods must be making ModsConfig.BiotechActive return true even though you don't have Biotech installed.
< >
Showing 1-6 of 6 comments
Per page: 1530 50