Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
CoronerFix
Preloader patch for Coroner fixing massive console log spam (Could not access dying player: Collider was not a player / Index not assigned).
By V0id
| Last updated | 2 days ago |
| Total downloads | 198 |
| Total rating | 0 |
| Categories | Bug Fixes AI Generated |
| Dependency string | V0id-CoronerFix-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100EliteMasterEric-Coroner
Add Cause of Death to the performance report, now with a Mod API!
Preferred version: 2.4.1README
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.