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.
SCP3166Fix
Preloader compatibility patch fixing MissingMethodException and MissingFieldException crashes in ProjectSCP's SCP3166 for modern Lethal Company versions.
By V0id
| Last updated | 2 hours ago |
| Total downloads | 40 |
| Total rating | 0 |
| Categories | Bug Fixes AI Generated |
| Dependency string | V0id-SCP3166Fix-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.2100README
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.