RimWorld

RimWorld

Xenotype Spawn Control
Nasty Dog 28 Sep, 2023 @ 12:14am
Bug Report: Possible AVP Compatibility
So, this is reading as an AVP error at first, but it appears to be coming from this mod. I wanted to see if I could get a little help with narrowing this down. I appreciate your time :) Noticed this error when it would freeze up like a raid was coming in, and confirmed it with DevConsole.

Exception while generating pawn group: System.NullReferenceException: Object reference not set to an instance of an object
at AvP.HarmonyInstance.AvP_RaidStrategyWorker_CanUsePawnGenOption_FactionLeader_Patch+<>c__DisplayClass0_0.<CanUse_factionLeader_Postfix>b__0 (RimWorld.PawnGenOption x) [0x00000] in <3b2329ae63dc455582dec7a05a56b61e>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <95de19971c5d40878d8742747904cdcd>:0
at AvP.HarmonyInstance.AvP_RaidStrategyWorker_CanUsePawnGenOption_FactionLeader_Patch.CanUse_factionLeader_Postfix (RimWorld.RaidStrategyWorker __instance, RimWorld.PawnGenOption g, System.Collections.Generic.List`1[T] chosenGroups, System.Boolean& __result) [0x0005b] in <3b2329ae63dc455582dec7a05a56b61e>:0
at (wrapper dynamic-method) RimWorld.RaidStrategyWorker.RimWorld.RaidStrategyWorker.CanUsePawnGenOption_Patch2(RimWorld.RaidStrategyWorker,single,RimWorld.PawnGenOption,System.Collections.Generic.List`1<RimWorld.PawnGenOptionWithXenotype>,RimWorld.Faction)
at (wrapper dynamic-method) RimWorld.PawnGroupMakerUtility.RimWorld.PawnGroupMakerUtility.PawnGenOptionValid_Patch1(RimWorld.PawnGenOption,RimWorld.PawnGroupMakerParms,System.Collections.Generic.List`1<RimWorld.PawnGenOptionWithXenotype>)
at RimWorld.PawnGroupMakerUtility.CanUseOption (RimWorld.PawnGenOption o, RimWorld.XenotypeDef xenotype, RimWorld.PawnGroupMakerParms groupParms, System.Collections.Generic.List`1[T] chosenOptions, System.Single pointsLeft, System.Single maxOptionCost, System.Boolean leaderChosen) [0x00034] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.PawnGroupMakerUtility.GetOptions (RimWorld.PawnGroupMakerParms groupParms, RimWorld.FactionDef faction, System.Collections.Generic.List`1[T] options, System.Single pointsTotal, System.Single pointsLeft, System.Nullable`1[T] maxCost, System.Collections.Generic.List`1[T] chosenOptions, System.Boolean leaderChosen) [0x000a6] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.PawnGroupMakerUtility.ChoosePawnGenOptionsByPoints (System.Single pointsTotal, System.Collections.Generic.List`1[T] options, RimWorld.PawnGroupMakerParms groupParms) [0x0005a] in <95de19971c5d40878d8742747904cdcd>:0
at RimWorld.PawnGroupKindWorker_Normal.GeneratePawns (RimWorld.PawnGroupMakerParms parms, RimWorld.PawnGroupMaker groupMaker, System.Collections.Generic.List`1[T] outPawns, System.Boolean errorOnZeroResults) [0x000db] in <95de19971c5d40878d8742747904cdcd>:0
at (wrapper dynamic-method) RimWorld.PawnGroupKindWorker.RimWorld.PawnGroupKindWorker.GeneratePawns_Patch1(RimWorld.PawnGroupKindWorker,RimWorld.PawnGroupMakerParms,RimWorld.PawnGroupMaker,bool)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
(wrapper dynamic-method) RimWorld.PawnGroupKindWorker:RimWorld.PawnGroupKindWorker.GeneratePawns_Patch1 (RimWorld.PawnGroupKindWorker,RimWorld.PawnGroupMakerParms,RimWorld.PawnGroupMaker,bool)
RimWorld.PawnGroupMaker:GeneratePawns (RimWorld.PawnGroupMakerParms,bool)
RimWorld.PawnGroupMakerUtility/<GeneratePawns>d__2:MoveNext ()
System.Collections.Generic.List`1<Verse.Pawn>:.ctor (System.Collections.Generic.IEnumerable`1<Verse.Pawn>)
System.Linq.Enumerable:ToList<Verse.Pawn> (System.Collections.Generic.IEnumerable`1<Verse.Pawn>)
(wrapper dynamic-method) RimWorld.IncidentWorker_Raid:RimWorld.IncidentWorker_Raid.TryGenerateRaidInfo_Patch1 (RimWorld.IncidentWorker_Raid,RimWorld.IncidentParms,System.Collections.Generic.List`1<Verse.Pawn>&,bool)
(wrapper dynamic-method) RimWorld.IncidentWorker_Raid:RimWorld.IncidentWorker_Raid.TryExecuteWorker_Patch1 (RimWorld.IncidentWorker_Raid,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.IncidentWorker_RaidEnemy:RimWorld.IncidentWorker_RaidEnemy.TryExecuteWorker_Patch3 (RimWorld.IncidentWorker_RaidEnemy,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.IncidentWorker:RimWorld.IncidentWorker.TryExecute_Patch2 (RimWorld.IncidentWorker,RimWorld.IncidentParms)
Verse.DebugActionsIncidents:DoRaid (RimWorld.IncidentParms)
Verse.DebugActionsIncidents/<>c__DisplayClass3_0:<ExecuteRaidWithSpecifics>b__6 ()
Verse.Dialog_DebugOptionLister:DebugAction (string,System.Action,bool)
Verse.Dialog_DebugOptionListLister:DoListingItems ()
Verse.Dialog_OptionLister:DoWindowContents (UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
Last edited by Nasty Dog; 28 Sep, 2023 @ 12:15am