HauntedHarpistFix

v1.0.1·Updated 2026-09-17

Preloader compatibility patch fixing MissingMethodException and MissingFieldException crashes in Bob123's Haunted Harpist for modern Lethal Company versions.

About this mod Author’s original text

Haunted Harpist Fix

A lightweight, automated BepInEx preloader patch for Bob123's Haunted Harpist (Haunted_Harpist) ensuring full compatibility with modern Lethal Company versions (v60+).

What It Fixes

Haunted_Harpist v1.3.24 targets older Lethal Company releases and crashes in recent versions due to base-game binary changes:

  • PlayerControllerB.HasLineOfSightToPosition (RPC Fear Calculation):
  • Problem: Lethal Company added a 5th parameter (int layerMask) to HasLineOfSightToPosition. In unpatched versions, whenever a player looks at or is targeted by a Harp Ghost or Enforcer Ghost, an unhandled RPC exception (MissingMethodException) is thrown.
  • Fix: Automatically updates the call to pass layerMask = -1 (default full mask) and resolves the active method signature.
  • EnemyAI.EnableEnemyMesh (Bagpipes Ghost Spawn):
  • Problem: Lethal Company added a 3rd parameter (bool tamperWithMeshes) to EnableEnemyMesh. In unpatched versions, the Bagpipes Ghost crashes upon spawning.
  • Fix: Automatically updates the call to pass tamperWithMeshes = false and targets the 3-parameter overload.
  • EntranceTeleport.exitPoint (Door Escape Navigation):
  • Problem: The base-game EntranceTeleport.exitPoint field was removed/refactored, causing MissingFieldException during Bagpipes Ghost AI intervals and escape door calculations.
  • Fix: Retargets the navigation instructions to read the valid entrancePoint field.
  • EnemyAI.ChooseFarthestNodeFromPosition (AI Node Navigation):
  • Problem: Lethal Company changed the 6th parameter of ChooseFarthestNodeFromPosition from bool to int capDistance = -1. In unpatched versions, BagpipesGhostAIServer.DoAIInterval and SwitchBehaviourStateLocally throw MissingMethodException.
  • Fix: Automatically updates the call to pass capDistance = -1 and resolves the active 6-parameter method signature.

How It Works

This mod runs as a BepInEx preloader patcher. At game startup, it scans for LethalCompanyHarpGhost.dll and applies the IL patch in-place before plugins are loaded into memory:

  • Fully automated—no manual file editing or decompilation required.
  • Automatically creates a.orig backup of the unpatched binary.
  • Survives mod updates and reinstalls.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPackBob123-Haunted_Harpist

File & checksum

Filename
HauntedHarpistFix-1.0.1.zip
File size
118.9 KiB