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.
FacelessStalkerFix
Preloader compatibility patch fixing MissingMethodException crashes (HasLineOfSightToPosition & KillPlayer) in Sparble's FacelessStalker for modern Lethal Company versions.
By V0id
| Last updated | a week ago |
| Total downloads | 570 |
| Total rating | 0 |
| Categories | Bug Fixes AI Generated |
| Dependency string | V0id-FacelessStalkerFix-1.0.0 |
| Dependants | 1 other package depends 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.2100Sparble-FacelessStalker
Adds Slenderman as a unique enemy to Lethal Company, as well as haunted pages to collect! [v73 Update]
Preferred version: 1.2.1README
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.