OTCLoader

版本 v1.0.5·更新於 2026-03-31

MelonLoader plugin that auto-detects your game branch (IL2CPP or Mono) and disables incompatible mod DLLs before they crash. Works for all mods, not just OverTheCounter.

模組介紹 作者原文

OTC Loader

Release:

OTC Loader is a lightweight MelonLoader plugin that automatically detects your game branch (IL2CPP or Mono) and disables any incompatible mod DLLs before they can crash MelonLoader. It works for all mods, not just OverTheCounter.

OTC Loader is a standalone plugin — install it alongside any mod that ships dual-branch DLLs.

For mod authors

If your mod ships both IL2CPP and Mono DLLs, you can point your users to install OTC Loader instead of writing your own branch detection. Add it as a dependency or recommend it in your install instructions.

How it works

  • Restore pass — Re-enables any DLLs it previously disabled (.dll.off and legacy.dll.di formats), so branch switches work automatically without manual cleanup.
  • Scan pass — Checks every DLL in your Mods folder (including subdirectories). DLLs targeting the wrong branch are renamed to.dll.off. DLLs inside Plugins/ subfolders and infrastructure DLLs (S1API, SwapperPlugin) are always skipped.
  • Compatibility check — If a disabled DLL has no compatible counterpart, a detailed log warning identifies the mod and suggests checking for a compatible release or switching game branches.
  • Interactive review — On first-time disables, popup prompts let you review each incompatible mod, optionally whitelist individual DLLs, and manage your existing whitelist — all before a recommended restart.
  • Restart prompt — A final popup explains which mods were disabled, confirms the game is safe to run, and recommends restarting so the runtime fully unloads cached assemblies.

Branch detection

OTC Loader uses a two-stage detection strategy:

  • Filename keywords — DLLs containing "mono" or "il2cpp" in their filename are classified instantly.
  • Mono.Cecil fallback — If the filename is ambiguous, the DLL's type references are inspected via Mono.Cecil. IL2CPP-prefixed namespaces (Il2CppScheduleOne, Il2CppSystem) are matched first; bare ScheduleOne references are then used to identify Mono. DLLs with no recognizable references (native DLLs, locked files, branch-agnostic libraries) return unknown and are left alone.

Whitelist

When incompatible DLLs are detected for the first time, an interactive prompt walks you through each one — keep it disabled or whitelist it with a single click. If you already have a whitelist, you're given the option to keep or clear it.

You can also manage the whitelist manually by editing the Whitelist array in OTCLoader.config.json (created automatically next to the DLL on first run).

Duplicate safety

If both a standalone copy and a bundled copy (e.g. from an older OverTheCounter install) are present, the second instance detects the first already ran and skips execution. No conflicts, no double-processing.

Installation

Using a mod manager (recommended)

Install OTC Loader using r2modman, Vortex, or Gale. The only dependency is MelonLoader.

Manual installation

Drop OverTheCounter-Loader.dll into your game's Plugins folder.

Requirements

  • MelonLoader v0.7.0+
  • Schedule I by TVGS

Changelog

v1.0.5

  • Fixed branch detection for MelonPlugins in Plugins/ subfolders — dual-branch plugins (e.g. MeshVault) are now correctly handled instead of being skipped entirely
  • Plugins with only a single variant are left alone to avoid false-positive disables

v1.0.4

  • Packaged
  • Added MLVScan attestation for release builds

v1.0.1

  • Extracted OTC Loader into a standalone project (previously bundled inside the OverTheCounter repo)
  • Added interactive whitelist management — review each incompatible mod individually and whitelist with a single click, or keep/clear the existing whitelist via popup prompts
  • Improved restart prompt — clearer "SAFE TO RUN" messaging with explicit instructions to restart via mod manager
  • Fixed root Mods folder grouping — mods in the root Mods/ directory are now treated individually instead of being incorrectly grouped together
  • Added "compatible version kept" log messages when a matching branch DLL

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

LavaGang-MelonLoader

檔案與校驗

檔案名稱
OTCLoader-1.0.5.zip
檔案大小
23.1 KiB