RimWorld

RimWorld

Dress for the Weather
Kahned 3 Feb, 2024 @ 5:35am
Issue while spawning caravan
Repro rate is not 100%.
Modlist: https://rentry.co/hndqqgha
Logs: https://gist.github.com/HugsLibRecordKeeper/2453a6efd0f2fdef42931bcf841a1fcf

Before caravan were spawned I get spam of warnings + some errors, TPS and FPS went down really low, from ~1000TPS with already 2 caravans on map I went down to 50TPS while third caravan were spawned and for a few minutes after spawn.
From what I understand here, pawns are trying to wear animal clothing:

Min tried to wear Apparel_SmallAnimalScarf123698 but he has no body parts required to wear it.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
(wrapper dynamic-method) RimWorld.Pawn_ApparelTracker:RimWorld.Pawn_ApparelTracker.Wear_Patch8 (RimWorld.Pawn_ApparelTracker,RimWorld.Apparel,bool,bool)
DressForTheWeather.IncidentWorker_PawnsArrivePatch:DressPawnAppropriately (Verse.Pawn,Verse.Map)
(wrapper dynamic-method) DressForTheWeather.IncidentWorker_PawnsArrivePatch:DressForTheWeather.IncidentWorker_PawnsArrivePatch.Postfix_Patch0 (System.Collections.Generic.List`1<Verse.Pawn>&,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.IncidentWorker_NeutralGroup:RimWorld.IncidentWorker_NeutralGroup.SpawnPawns_Patch3 (RimWorld.IncidentWorker_NeutralGroup,RimWorld.IncidentParms)
GiddyUpCaravan.Harmony.Patch_IncidentWorkers:MountAnimals (RimWorld.IncidentWorker_TraderCaravanArrival,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.IncidentWorker_TraderCaravanArrival:RimWorld.IncidentWorker_TraderCaravanArrival.TryExecuteWorker_Patch0 (RimWorld.IncidentWorker_TraderCaravanArrival,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.IncidentWorker:RimWorld.IncidentWorker.TryExecute_Patch2 (RimWorld.IncidentWorker,RimWorld.IncidentParms)
(wrapper dynamic-method) RimWorld.Storyteller:RimWorld.Storyteller.TryFire_Patch1 (RimWorld.Storyteller,RimWorld.FiringIncident)
RimWorld.IncidentQueue:IncidentQueueTick ()
RimWorld.Storyteller:StorytellerTick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch7 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch3 (Verse.Root_Play)

And errors:

System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) VFECore.Pawn_ApparelTracker_Wear_Patch.VFECore.Pawn_ApparelTracker_Wear_Patch.Postfix_Patch0(RimWorld.Pawn_ApparelTracker,RimWorld.Apparel,bool,bool)
at (wrapper dynamic-method) RimWorld.Pawn_ApparelTracker.RimWorld.Pawn_ApparelTracker.Wear_Patch8(RimWorld.Pawn_ApparelTracker,RimWorld.Apparel,bool,bool)
at DressForTheWeather.IncidentWorker_PawnsArrivePatch.DressPawnAppropriately (Verse.Pawn pawn, Verse.Map map) [0x0035e] in <3c9bdbd106d14e27ba19de8523ee8b52>:0
at (wrapper dynamic-method) DressForTheWeather.IncidentWorker_PawnsArrivePatch.DressForTheWeather.IncidentWorker_PawnsArrivePatch.Postfix_Patch0(System.Collections.Generic.List`1<Verse.Pawn>&,RimWorld.IncidentParms)
at (wrapper dynamic-method) RimWorld.IncidentWorker_NeutralGroup.RimWorld.IncidentWorker_NeutralGroup.SpawnPawns_Patch3(RimWorld.IncidentWorker_NeutralGroup,RimWorld.IncidentParms)
at GiddyUpCaravan.Harmony.Patch_IncidentWorkers.MountAnimals (RimWorld.IncidentWorker_TraderCaravanArrival instance, RimWorld.IncidentParms parms) [0x00000] in <2c06e926398e44819faafd8e89da05b0>:0
at (wrapper dynamic-method) RimWorld.IncidentWorker_TraderCaravanArrival.RimWorld.IncidentWorker_TraderCaravanArrival.TryExecuteWorker_Patch0(RimWorld.IncidentWorker_TraderCaravanArrival,RimWorld.IncidentParms)
at (wrapper dynamic-method) RimWorld.IncidentWorker.RimWorld.IncidentWorker.TryExecute_Patch2(RimWorld.IncidentWorker,RimWorld.IncidentParms)
at (wrapper dynamic-method) RimWorld.Storyteller.RimWorld.Storyteller.TryFire_Patch1(RimWorld.Storyteller,RimWorld.FiringIncident)
at RimWorld.IncidentQueue.IncidentQueueTick () [0x00048] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.Storyteller.StorytellerTick () [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) Verse.TickManager.Verse.TickManager.DoSingleTick_Patch7(Verse.TickManager)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch7 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch3 (Verse.Root_Play)
< >
Showing 1-2 of 2 comments
Kahned 3 Feb, 2024 @ 6:30am 
I also noticed that removing this mod drastically changed time needed to spawn a quest/caravan.
Now they can spawn without any lag spikes (up to 15 second sometimes with a mod).
Daniel  [developer] 4 Feb, 2024 @ 11:05am 
In mod settings, you can filter which apparel items pawns may spawn with. Uncheck all the animal clothes.

There are too many apparel mods for me to fix them all.
< >
Showing 1-2 of 2 comments
Per page: 1530 50