V0id-FacelessStalkerFix icon

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-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Sparble-FacelessStalker-1.2.1 icon
Sparble-FacelessStalker

Adds Slenderman as a unique enemy to Lethal Company, as well as haunted pages to collect! [v73 Update]

Preferred version: 1.2.1

README

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:

  1. GameNetcodeStuff.PlayerControllerB.HasLineOfSightToPosition received an additional int layerMask = -1 parameter (expanded from 4 to 5 arguments).
  2. GameNetcodeStuff.PlayerControllerB.KillPlayer received an additional bool setOverrideDropItems parameter (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.HasLineOfSightToPosition call-sites to pass the modern default layer mask (-1).
  • Updates PlayerControllerB.KillPlayer call-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)

  1. Install via r2modman or the Thunderstore Mod Manager.
  2. Launch modded Lethal Company.

Manual Installation

  1. Ensure BepInEx 5 is installed.
  2. Place FacelessStalkerFix.dll inside BepInEx/patchers/FacelessStalkerFix/.
  3. Launch the game.