Raids don't always generate even when forced

Started by smitj045, April 15, 2019, 06:54:25 PM

Previous topic - Next topic

smitj045

Hey guys, long time lurker here who's finally found a probably that a quick search didn't give me a solution to. The issue I'm having is that raids always spawn when they're mechanoids or any modded type of machine or android but not if they're humanoid. I'd estimate a roughly twenty percent chance of a human raid spawning. I've been testing it in dev mode and all I've found out is that the points I assign don't matter and I get this error:




Tried to set Polo with gender Female as Mark's father.
Verse.Log:Warning(String, Boolean)
RimWorld.ParentRelationUtility:SetFather(Pawn, Pawn)
RimWorld.PawnRelationWorker_Sibling:CreateRelation(Pawn, Pawn, PawnGenerationRequest&)
OneBigFamily.GeneratePawnRelations:Prefix(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnRelations_Patch2(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:TryGenerateNewPawnInternal_Patch1(PawnGenerationRequest&, String&, Boolean, Boolean)
Verse.PawnGenerator:GenerateNewPawnInternal_Patch1(PawnGenerationRequest&)
Verse.PawnGenerator:GenerateOrRedressPawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch2(PawnGenerationRequest)
RimWorld.PawnGroupKindWorker_Normal:GeneratePawns(PawnGroupMakerParms, PawnGroupMaker, List`1, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
JecsTools.HarmonyPatches:GeneratePawns(PawnGroupMakerParms, Boolean, IEnumerable`1&)
RimWorld.PawnGroupMakerUtility:GeneratePawns_Patch2(PawnGroupMakerParms, Boolean)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

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,Verse.Pawn,Verse.PawnGenerationRequest&) <0x0035f>
at OneBigFamily.PawnGenerator_Patch/GeneratePawnRelations.Prefix (Verse.Pawn,Verse.PawnGenerationRequest&) <0x00927>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawnRelations_Patch2 (Verse.Pawn,Verse.PawnGenerationRequest&) <0x0007f>
at (wrapper dynamic-method) Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&,string&,bool,bool) <0x00395>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&) <0x003c8>
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest) <0x007e8>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawn_Patch2 (Verse.PawnGenerationRequest) <0x000ca>

Verse.Log:Error(String, Boolean)
Verse.PawnGenerator:GeneratePawn_Patch2(PawnGenerationRequest)
RimWorld.PawnGroupKindWorker_Normal:GeneratePawns(PawnGroupMakerParms, PawnGroupMaker, List`1, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
JecsTools.HarmonyPatches:GeneratePawns(PawnGroupMakerParms, Boolean, IEnumerable`1&)
RimWorld.PawnGroupMakerUtility:GeneratePawns_Patch2(PawnGroupMakerParms, Boolean)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Exception while generating pawn group: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.PawnRelationWorker_Sibling.CreateRelation (Verse.Pawn,Verse.Pawn,Verse.PawnGenerationRequest&) <0x0035f>
at OneBigFamily.PawnGenerator_Patch/GeneratePawnRelations.Prefix (Verse.Pawn,Verse.PawnGenerationRequest&) <0x00927>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawnRelations_Patch2 (Verse.Pawn,Verse.PawnGenerationRequest&) <0x0007f>
at (wrapper dynamic-method) Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&,string&,bool,bool) <0x00395>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&) <0x003c8>
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest) <0x007e8>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawn_Patch2 (Verse.PawnGenerationRequest) <0x000ca>

Verse.Log:Error(String, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
JecsTools.HarmonyPatches:GeneratePawns(PawnGroupMakerParms, Boolean, IEnumerable`1&)
RimWorld.PawnGroupMakerUtility:GeneratePawns_Patch2(PawnGroupMakerParms, Boolean)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Tried to set Baugher with gender Female as Raccoon's father.
Verse.Log:Warning(String, Boolean)
RimWorld.ParentRelationUtility:SetFather(Pawn, Pawn)
RimWorld.PawnRelationWorker_Sibling:CreateRelation(Pawn, Pawn, PawnGenerationRequest&)
OneBigFamily.GeneratePawnRelations:Prefix(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnRelations_Patch2(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:TryGenerateNewPawnInternal_Patch1(PawnGenerationRequest&, String&, Boolean, Boolean)
Verse.PawnGenerator:GenerateNewPawnInternal_Patch1(PawnGenerationRequest&)
Verse.PawnGenerator:GenerateOrRedressPawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch2(PawnGenerationRequest)
RimWorld.PawnGroupKindWorker_Normal:GeneratePawns(PawnGroupMakerParms, PawnGroupMaker, List`1, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
TargetingModes.<ModifiedPawnGroup>d__6:MoveNext()
System.Collections.Generic.List`1:AddEnumerable(IEnumerable`1)
System.Collections.Generic.List`1:.ctor(IEnumerable`1)
System.Linq.Enumerable:ToList(IEnumerable`1)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

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,Verse.Pawn,Verse.PawnGenerationRequest&) <0x0035f>
at OneBigFamily.PawnGenerator_Patch/GeneratePawnRelations.Prefix (Verse.Pawn,Verse.PawnGenerationRequest&) <0x00927>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawnRelations_Patch2 (Verse.Pawn,Verse.PawnGenerationRequest&) <0x0007f>
at (wrapper dynamic-method) Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&,string&,bool,bool) <0x00395>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&) <0x003c8>
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest) <0x007e8>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawn_Patch2 (Verse.PawnGenerationRequest) <0x000ca>

Verse.Log:Error(String, Boolean)
Verse.PawnGenerator:GeneratePawn_Patch2(PawnGenerationRequest)
RimWorld.PawnGroupKindWorker_Normal:GeneratePawns(PawnGroupMakerParms, PawnGroupMaker, List`1, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
TargetingModes.<ModifiedPawnGroup>d__6:MoveNext()
System.Collections.Generic.List`1:AddEnumerable(IEnumerable`1)
System.Collections.Generic.List`1:.ctor(IEnumerable`1)
System.Linq.Enumerable:ToList(IEnumerable`1)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Exception while generating pawn group: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.PawnRelationWorker_Sibling.CreateRelation (Verse.Pawn,Verse.Pawn,Verse.PawnGenerationRequest&) <0x0035f>
at OneBigFamily.PawnGenerator_Patch/GeneratePawnRelations.Prefix (Verse.Pawn,Verse.PawnGenerationRequest&) <0x00927>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawnRelations_Patch2 (Verse.Pawn,Verse.PawnGenerationRequest&) <0x0007f>
at (wrapper dynamic-method) Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&,string&,bool,bool) <0x00395>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateNewPawnInternal_Patch1 (Verse.PawnGenerationRequest&) <0x003c8>
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest) <0x007e8>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawn_Patch2 (Verse.PawnGenerationRequest) <0x000ca>

Verse.Log:Error(String, Boolean)
RimWorld.PawnGroupKindWorker:GeneratePawns_Patch1(Object, PawnGroupMakerParms, PawnGroupMaker, Boolean)
RimWorld.PawnGroupMaker:GeneratePawns(PawnGroupMakerParms, Boolean)
RimWorld.<GeneratePawns>c__Iterator0:MoveNext()
System.Linq.Enumerable:Count(IEnumerable`1)
TargetingModes.<ModifiedPawnGroup>d__6:MoveNext()
System.Collections.Generic.List`1:AddEnumerable(IEnumerable`1)
System.Collections.Generic.List`1:.ctor(IEnumerable`1)
System.Linq.Enumerable:ToList(IEnumerable`1)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Got no pawns spawning raid from parms (target=(Map-0-PlayerHome) points=1400 raidStrategy=ImmediateAttack )
Verse.Log:Error(String, Boolean)
RimWorld.IncidentWorker_Raid:TryExecuteWorker_Patch0(Object, IncidentParms)
RimWorld.IncidentWorker_RaidEnemy:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
Verse.Dialog_DebugActionsMenu:DoRaid(IncidentParms)
Verse.<DoListingItems_MapActions>c__AnonStoreyC:<>m__0()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)



I like to think I can puzzle out a few lines of code to see what's going wrong, this on the on the other hand quite frankly makes my head hurt. Is there any chance someone can puzzle out what the issue is? All I got from that is that the "One Big Family" mod doesn't realise Fathers have to be male, disabling that mod removes that error but doesn't fix the rest of them.