FacelessStalkerFix
Preloader compatibility patch fixing MissingMethodException crashes (HasLineOfSightToPosition & KillPlayer) in Sparble's FacelessStalker for modern Lethal Company versions.FacelessStalkerFix
Compatibility fix for FacelessStalker (Slenderman mod by Sparble) on modern Lethal Company versions (v50, v55, v60, v68, v73+).
The Issue
In modern Lethal Company updates, multiple base game method signatures were changed:
GameNetcodeStuff.PlayerControllerB.HasLineOfSightToPositionreceived an additionalint layerMask = -1parameter (expanded from 4 to 5 arguments).GameNetcodeStuff.PlayerControllerB.KillPlayerreceived an additionalbool setOverrideDropItemsparameter (expanded from 5 to 6 arguments).
Because SlendermanMod.dll was compiled against older game binaries, calling these methods caused immediate runtime crashes:
[Error : Unity Log] MissingMethodException: Method not found: bool GameNetcodeStuff.PlayerControllerB.HasLineOfSightToPosition(UnityEngine.Vector3,single,int,single)
The Fix
This BepInEx preloader patch dynamically rewrites outdated IL instructions in SlendermanMod.dll at launch or on disk:
- Updates
PlayerControllerB.HasLineOfSightToPositioncall-sites to pass the modern default layer mask (-1). - Updates
PlayerControllerB.KillPlayercall-sites to pass the modern default parameters. - Restores full functionality to Slenderman's haunting, line-of-sight tracking, and kill mechanics without modifying original game logic.
Installation
Via Mod Manager (Recommended)
- Install via r2modman or the Thunderstore Mod Manager.
- Launch modded Lethal Company.
Manual Installation
- Ensure BepInEx 5 is installed.
- Place
FacelessStalkerFix.dllinsideBepInEx/patchers/FacelessStalkerFix/. - Launch the game.
