Skip to content

"Disable Lethal Damage Threshold" #26

@GitBeavis

Description

@GitBeavis

Description:
Enabling this option consistently throws an error about killing some random pawn during world generation. Like this example
McKinney died during GiveInjuriesToForceDowned
-(Scratch torso ticksSinceCreation=0)
-(Scratch stomach ticksSinceCreation=0)
-(Scratch torso ticksSinceCreation=0)

By the way, the referenced pawn is not present anywhere on the map, neither in sarcophagi nor among scattered corpses. There's always ONE new pawn being referenced like this in every Dev Quicktest.

To Reproduce:
Steps to reproduce the behaviour, e.g.

  1. Enable the option in mod settings
  2. Enable dev mode
  3. Initialize Dev Quicktest

Expected Behaviour
No weird red errors regarding pawns being killed from GiveInjuriesToForceDowned.

HugsLib Log:
https://gist.github.com/HugsLibRecordKeeper/0bdd78e669de1941fc8026f785ea1302

Additional context
I have tried disabling Death Rattle Continued mod as another suspected culprit, but the problem consistently persisted until i unticked the option from this mod, leading me to suspect this mod primarily, although it could be an interaction with a different mod, i am unable to say.

Exact error code from console (it's probably present in the full log, putting here also for convenience)

McKinney died during GiveInjuriesToForceDowned
-(Scratch torso ticksSinceCreation=0)
-(Scratch stomach ticksSinceCreation=0)
-(Scratch torso ticksSinceCreation=0)

[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch4(System.String)
[Core, Assembly-CSharp.dll] Verse.HealthUtility.DamageUntilDowned(Verse.Pawn p, System.Boolean allowBleedingWounds, Verse.DamageDef damage, Verse.ThingDef sourceDef, Verse.BodyPartGroupDef bodyGroupDef)
[Core, Assembly-CSharp.dll] RimWorld.ThingSetMaker_MapGen_AncientPodContents.GenerateSlave()
[Core, Assembly-CSharp.dll] RimWorld.ThingSetMaker_MapGen_AncientPodContents.Generate(RimWorld.ThingSetMakerParams parms, System.Collections.Generic.List1[Verse.Thing] outThings) [Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.RimWorld.ThingSetMaker.Generate_Patch2(RimWorld.ThingSetMaker, RimWorld.ThingSetMakerParams) [Core, Assembly-CSharp.dll] RimWorld.RoomGenUtility.SpawnCryptoCasket(Verse.IntVec3 cell, Verse.Map map, Verse.Rot4 rot, System.Int32 groupID, RimWorld.PodContentsType type, RimWorld.ThingSetMakerDef thingSetMakerDef) [Core, Assembly-CSharp.dll] RimWorld.BaseGen.SymbolResolver_AncientCryptosleepCasket.Resolve(RimWorld.BaseGen.ResolveParams rp) [Core, Assembly-CSharp.dll] RimWorld.BaseGen.BaseGen.Resolve(RimWorld.BaseGen.SymbolStack+Element toResolve) [Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.RimWorld.BaseGen.BaseGen.Generate_Patch1() [Core, Assembly-CSharp.dll] RimWorld.GenStep_ScatterShrines.ScatterAt(Verse.IntVec3 loc, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount) [Core, Assembly-CSharp.dll] Verse.GenStep_Scatterer.Generate(Verse.Map map, Verse.GenStepParams parms) [Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.MapGenerator.GenerateContentsIntoMap_Patch1(System.Collections.Generic.IEnumerable1[Verse.GenStepWithParams], Verse.Map, System.Int32, System.Boolean)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.MapGenerator.GenerateMap_Patch2(Verse.IntVec3, RimWorld.Planet.MapParent, Verse.MapGeneratorDef, System.Collections.Generic.IEnumerable1[Verse.GenStepWithParams], System.Action1[Verse.Map], System.Boolean, System.Boolean)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Game.InitNewGame_Patch4(Verse.Game)
[Core, Assembly-CSharp.dll] Verse.Root_Play+<>c.b__1_2()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.LongEventHandler.RunEventFromAnotherThread_Patch1(System.Action)
[Core, Assembly-CSharp.dll] Verse.LongEventHandler+<>c.b__28_0()
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart_Context(System.Object state)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart()

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions