vegapnk / RJW-Genes

Rimworld Biotech Genes related to RJW
MIT License
24 stars 28 forks source link

Error on generating raid with female only xenotypes #71

Closed nazeeeem closed 1 month ago

nazeeeem commented 7 months ago

So I used Xenotype Spawn Control to add my female only xenotype to a faction, and whenever I get a raid from that faction I would sometimes get this error, and the raid will fail to generate:

Tried to set Koala with gender Female as Opossum's father. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.PawnRelationWorker_Sibling.CreateRelation (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest& request) [0x000bc] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.PawnGenerator.GeneratePawnRelations (Verse.Pawn pawn, Verse.PawnGenerationRequest& request) [0x0012f] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x00366] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch5(Verse.PawnGenerationRequest&)
  at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest) 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Exception while generating pawn group: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.PawnRelationWorker_Sibling.CreateRelation (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest& request) [0x000bc] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.PawnGenerator.GeneratePawnRelations (Verse.Pawn pawn, Verse.PawnGenerationRequest& request) [0x0012f] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x00366] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch5(Verse.PawnGenerationRequest&)
  at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00188] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest)
  at RimWorld.PawnGroupKindWorker_Normal.GeneratePawns (RimWorld.PawnGroupMakerParms parms, RimWorld.PawnGroupMaker groupMaker, System.Collections.Generic.List`1[T] outPawns, System.Boolean errorOnZeroResults) [0x002a0] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at RimWorld.PawnGroupKindWorker.GeneratePawns (RimWorld.PawnGroupMakerParms parms, RimWorld.PawnGroupMaker groupMaker, System.Boolean errorOnZeroResults) [0x00011] in <cd7169108ea74757aa50c5b33d275c15>:0  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Probably not a common issue but I'm also using RimWar, so it is very noticeable for me (the entire warband would just disappear) :( pls fix i want my catgirl tribe

vegapnk commented 7 months ago

Thanks for reaching out !

It might be a mod-conflict, but I am not super sure. The issue is that it is trying to add fathers but the father is a girl now (rude, lol). But I have some questions if you don't mind:

1) do they spawn in a raid as part of a mod-event? Or is it an vanilla event? 2) do a lot of pawns spawn? Does this happen often to you or is it rare?

nazeeeem commented 7 months ago

Hey man thanks for the response

Sad to hear that my game thinks girls can't be fathers :( even when theres girl pp in the game

  1. I tried spawning raids through the debug menu with basically only RJW + Xenotype Spawn Control + your mod active, and the error still happens, so I think it happens with just vanilla raids
  2. With 1000 raid points (around ~10 people) I would say it happens roughly half the time, but I am not too sure. In my game it would happen around half the time also.

Hope this helps~