CoronerFix
Preloader patch for Coroner fixing massive console log spam (Could not access dying player: Collider was not a player / Index not assigned).Coroner Fix
An automated BepInEx preloader patch for Coroner (EliteMasterEric-Coroner) that silences the rampant console log spam:
[Warning: Coroner] Could not access dying player: Collider was not a player!
[Warning: Coroner] Could not access dying player: Index not assigned!
What It Fixes
In unpatched versions of Coroner (v2.4.1), whenever an enemy attacks or collides with any non-player object (doors, terrain, items, or other enemies), CauseOfDeathPatchState repeatedly emits LogWarning entries. Over a standard session, this floods LogOutput.log with tens or hundreds of thousands of false-positive warning lines, reducing disk performance and cluttering game logs.
This patch cleanly demotes all non-player collision warnings in CauseOfDeathPatchState to LogDebug, suppressing them from standard console and log output while preserving normal cause-of-death reporting functionality.
How It Works
This mod runs as a BepInEx preloader patcher. At game startup, it scans for Coroner.dll in BepInEx/plugins/ and applies the IL patch in-place before plugins are loaded into memory:
- Fully automated—no manual file decompilation required.
- Automatically creates a
.origbackup of the unpatched binary. - Survives mod updates and reinstalls.
