V0id-SCP3166Fix icon

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

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

Preferred version: 5.4.2100
ProjectSCP-SCP3166-1.0.1 icon
ProjectSCP-SCP3166

Adds SCP3166 (aka Gorefield) to the game

Preferred version: 1.0.1

README

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:

  1. EnemyAI.PlayerIsTargetable (MissingMethodException):

    • Problem: Lethal Company updated EnemyAI.PlayerIsTargetable to require 4 parameters (bool force = false). In unpatched versions, whenever SCP3166 calculates target players during DoAIInterval() or Update(), a fatal MissingMethodException is thrown.
    • Fix: Automatically updates the call to pass force = false and targets the active 4-parameter method.
  2. EntranceTeleport.exitPoint (MissingFieldException):

    • Problem: The base-game EntranceTeleport.exitPoint field was removed, breaking SmartCanPathToPoint() and GetClosestExitFromPosition().
    • Fix: Retargets the navigation instructions to read the active entrancePoint field.

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 .orig backup of the unpatched binary.
  • Survives mod updates and reinstalls.