Lethal Company
Install with App

Details

Latest version
1.0.1
Last Updated
First Uploaded
Downloads
170
Likes
0
Size
110KB
Dependants

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.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.