SlimVML Loader
(In)SlimVML loader for BepInEx. Small, simple and works on Windows and Linux out of the box.
模組介紹 作者原文
Basic DLL loader with (In)SlimVML compatibility
Native loader for BepInEx that naïvely loads DLLs from a given directory and executes their static void Main() methods.
Supports a few additional SlimVML env vars for compatibility.
Includes two base DLLs that come with (In)SlimVML for compatibility.
Features
- Small: only a basic BepInEx patcher that does one job.
- Native BepInEx patcher: does not require proprietrary closed-source edits to Doorstop to work.
- Supports BepInEx platforms: works on Windows and Linux out of the box.
- No need to overwrite game files: unstripping is done automatically by BepInEx without the need to mess with game files.
Usage
- Install BepInExPack 5.4.700 or newer.
- Download and extract the contets of this DLL into the game folder.
- Run the game.
Installing SlimVML DLLs
To install SlimVML DLLs, put them into BepInEx/SlimVML folder. This folder is configurable via BepInEx/config/SlimVML.cfg.
This path was chosed for compatibility with r2modman. It is suggested you use it for mod management.
Note about developing plugins
If you develop plugins with SlimVML, please understand that you don't get stable load ordering, simple logging and configuration APIs that are
compatible with visual tools like ConfigurationManager and easy consistent entrypoint into Unity scenes.
If you need proper plugin management and support consider writing a normal BepInEx plugin.
There is even a template to get you started.
If you do use SlimVML, at least don't use Thread.Sleep to get into a Unity scene: it is not consistent and will break depending on the PC and once the game load times increase (does happen over time once more features are added).
Use Harmony patches or BepInEx plugins for which this is handled automatically.
Changelog
1.1.0
- Added ability to use $(BepInExRoot) and $(GameRoot) template values in ModFolder configuration option
1.0.1
- Added missing helper DLLs
1.0.0
- Initial release
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: