RimWorld

RimWorld

Vanilla Factions Expanded - Pirates
Kelowna 18 Jan, 2022 @ 9:21pm
Incompatibility with Combat Shields by N7Hunstman
https://gist.github.com/HugsLibRecordKeeper/d24549cf37ae6a8950f659a805dcf534

Got a error when a pawn uses a Warcasket foundry, instead of the menu to customize, colour, apply, ect the warcascket to the pawn, the pawn has all their apparel deleted and a baseline warcasket shell is spawn on them. Trying to spawn the two new added pirate factions doesn't work either.

Here is the error.

JobDriver threw exception in initAction for pawn Nendra driver=JobDriver_EntombIn (toilIndex=2) driver.job=(VFEP_EntombIn (Job_5475991) A=Thing_VFEP_WarcasketFoundry1705844)
System.NullReferenceException: Object reference not set to an instance of an object
at CombatShields.Harmonypatches.ShieldPatchWearApparel (Verse.Pawn_EquipmentTracker __instance, RimWorld.Apparel newApparel) [0x00004] in <c979ed80725149dea2b3ffcf7f1e42b2>:0
at (wrapper dynamic-method) RimWorld.Pawn_ApparelTracker.RimWorld.Pawn_ApparelTracker.Wear_Patch4(RimWorld.Pawn_ApparelTracker,RimWorld.Apparel,bool,bool)
at VFEPirates.WarcasketProject.ApplyOn (Verse.Pawn pawn) [0x00024] in <989c71cf1963437f9887e3008869294a>:0
at VFEPirates.Buildings.Dialog_WarcasketCustomization.Notify_SettingsChanged () [0x00001] in <989c71cf1963437f9887e3008869294a>:0
at VFEPirates.Buildings.Dialog_WarcasketCustomization..ctor (VFEPirates.WarcasketProject project, Verse.Pawn pawn, System.Action onAccept, System.Action onCancel) [0x000ce] in <989c71cf1963437f9887e3008869294a>:0
at VFEPirates.JobDriver_EntombIn.<MakeNewToils>b__6_0 () [0x000a4] in <989c71cf1963437f9887e3008869294a>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001de] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
(wrapper dynamic-method) Verse.AI.JobUtility:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch1 (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:Notify_PatherArrived ()
Verse.AI.Pawn_PathFollower:PatherArrived ()
(wrapper dynamic-method) Verse.AI.Pawn_PathFollower:Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) Verse.AI.Pawn_PathFollower:Verse.AI.Pawn_PathFollower.PatherTick_Patch4 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch3 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()


Putting Combat Shields below VFE Pirates did not resolve the issue, only removing it fixed the problem.

Link to Shields mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1588616696

Hope I didn't mess this up and I gave you enough info. If I missed anything please let me know I will try to get it to you as quickly as I can.
< >
Showing 1-2 of 2 comments
Petrothian 18 Jan, 2022 @ 11:29pm 
^the exact same thing causes factions (junkers and mercs) to fail to be added to saved games.

*it worked for me once I removed combat shields from modlist.
lloki 19 Jan, 2022 @ 12:28am 
Yes, I can confirm I had the same problem.
< >
Showing 1-2 of 2 comments
Per page: 1530 50