savegames keep breaking - error every time raid tries to spawn =(

Started by chickenman, September 11, 2021, 03:51:49 PM

Previous topic - Next topic

chickenman

I've restarted a few times now and when I start out, everything seems fine...but after a few days of playing I start getting errors anytime a raid is supposed to spawn:

error log: https://gist.github.com/HugsLibRecordKeeper/78c6675c29cbae64074697a6502e017b


this seems like the relevant problem area? not sure what mod would be causing...
Quote
Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.ChildRelationUtility.GetMelanin (Verse.Pawn pawn, System.Nullable`1[T] request) [0x0001c] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
  at RimWorld.ChildRelationUtility.ChanceOfBecomingChildOf (Verse.Pawn child, Verse.Pawn father, Verse.Pawn mother, System.Nullable`1[T] childGenerationRequest, System.Nullable`1[T] fatherGenerationRequest, System.Nullable`1[T] motherGenerationRequest) [0x000c3] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
  at (wrapper dynamic-method) RimWorld.PawnRelationWorker_Sibling.RimWorld.PawnRelationWorker_Sibling.GenerationChance_Patch1(RimWorld.PawnRelationWorker_Sibling,Verse.Pawn,Verse.Pawn,Verse.PawnGenerationRequest)
  at Verse.PawnGenerator+<>c__DisplayClass38_0.<GeneratePawnRelations>b__1 (Verse.Pair`2[T1,T2] x) [0x00025] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
  at Verse.GenCollection.RandomElementByWeightWithDefault[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector, System.Single defaultValueWeight) [0x0002f] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawnRelations_Patch2(Verse.Pawn,Verse.PawnGenerationRequest&)
  at AlienRace.HarmonyPatches.GenerateTraitsPostfix (Verse.Pawn pawn, Verse.PawnGenerationRequest request) [0x0001f] in <7a7300e6015848b5bccd02355978078b>:0
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateTraits_Patch2(Verse.Pawn,Verse.PawnGenerationRequest)
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool)
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch1(Verse.PawnGenerationRequest&)
  at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch5(Verse.PawnGenerationRequest)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

any ideas on how to fix? would love to figure this out!

Canute

Hi,
the problems is one of the Alienraces, but i can't say which one.

And before you start a colony you should fix the error's you got after you start Rimworld (take a look at the 2.link from my signature).