BepInEx
BepInEx5.4.17 mod plugin framework, Mod框架
模組介紹 作者原文
BepInEx Framework (Author: bbepis)
This is the pack of all the things you need to both start using mods, and start making mods using the BepInEx framework.
To install, refer to installation guide on R2Wiki.
What each folder is for:
BepInEx/plugins - This is where normal mods/plugins are placed to be loaded.
For developers: There's no set format for what you need to name your plugins to load; if they're a valid plugin.dll file, they'll be loaded.
However please be considerate and isolate your files in their own folders, to prevent clutter, confusion, and in general, dependency hell. For example: BepInEx/plugins/YourMod/Plugin.dll.
BepInEx/patchers - These are more advanced types of plugins that need to access Mono.Cecil to edit.dll files during runtime. Only copy paste your plugins here if the author tells you to.
For developers: More info here:
BepInEx/monomod - MonoMod patches get placed in here. Only copy paste your plugins here if the author tells you to.
BepInEx/config - If your plugin has support for configuration, you can find the config file here to edit it.
BepInEx/core - Core BepInEx.dll files, you'll usually never want to touch these files (unless you're updating)
BepInEx 框架(作者: bbepis)
這是加載Mod插件所必須的框架。
安裝非常簡單,只需要把BepInEx文件夾、doorstop_config.ini、winhttp.dll放到遊戲的根目錄即可。
框架包含的內容:
BepInEx/plugins - 幾乎所有的Mod dll都需要放在這個文件夾下面,除非Mod作者有特別說明。
例子: BepInEx/plugins/YourMod/Plugin.dll.
BepInEx/patchers - 個別Mod可能會使用Mono.Cecil等高級功能,這時需要將他們放在這個文件夾內,只有當Mod作者特別說明時你纔會用到。
如果你是Mod作者,可以在這裏查看更多信息:
BepInEx/config - 如果Mod支持使用配置文件,那麼默認情況下,配置文件會在這個文件夾生成。
BepInEx/core - BepInEx的核心dll文件夾,除非以後需要更新框架,不然你需要打開它。
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。