
You are viewing a potentially older version of this package. View Latest Version
SCP3166Fix
Preloader compatibility patch fixing MissingMethodException and MissingFieldException crashes in ProjectSCP's SCP3166 for modern Lethal Company versions.SCP3166 Fix
An automated BepInEx preloader compatibility patch for ProjectSCP's SCP3166 (ProjectSCP-SCP3166) ensuring full compatibility with modern Lethal Company versions (v60+).
What It Fixes
ProjectSCP-SCP3166 v1.0.1 targets older Lethal Company releases and crashes in current versions due to base-game binary changes:
-
EnemyAI.PlayerIsTargetable(MissingMethodException):- Problem: Lethal Company updated
EnemyAI.PlayerIsTargetableto require 4 parameters (bool force = false). In unpatched versions, whenever SCP3166 calculates target players duringDoAIInterval()orUpdate(), a fatalMissingMethodExceptionis thrown. - Fix: Automatically updates the call to pass
force = falseand targets the active 4-parameter method.
- Problem: Lethal Company updated
-
EntranceTeleport.exitPoint(MissingFieldException):- Problem: The base-game
EntranceTeleport.exitPointfield was removed, breakingSmartCanPathToPoint()andGetClosestExitFromPosition(). - Fix: Retargets the navigation instructions to read the active
entrancePointfield.
- Problem: The base-game
How It Works
This mod runs as a BepInEx preloader patcher. At game startup, it scans for ProjectSCP.SCP3166.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.