ModManager
A Mod for Rogue Genesia that can manage other Mods for Rogue Genesia
模組介紹 作者原文
Rogue Genesia Mod Manager
A simple mod that adds a button to the main menu and displays a list of loaded mods. More to come in the future.
How to add support for ModManager to your mod?
ModManager will detect your mod automatically and display the name, version and a description placeholder without doing anything.
However, it can pull some additional information from your mod. To enable that functionality, do the following:
First, add Path to Rogue Genesia game folder\BepInEx\plugins\ModManager\ModManager.RogueGenesiaMod.dll as a reference to your project.
Then, instead of extending BasePlugin, extend RogueGenesiaMod and you will have additional functionality available:
using BepInEx;
using BepInEx.Unity.IL2CPP;
namespace MyMod
{
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
public class MyMod: RogueGenesiaMod
{
// The description that will be displayed for your mod in ModManager.
// This can be dynamically generated, as it is only called when the ModManager window displays.
public override string ModDescription() => "My awesome mod description";
// If you return true here, if you want ModManager to display a small '?' button next to your mod info
public override bool SupportsDetailButtonClick() => false;
// This method will be called when the small '?' button for your mod is clicked. You can do
// whatever you want in here. This could be a UI specific to your mod.
public override void OnDetailButtonClicked(GameObject modManagerDialog)
{
Log.LogInfo("Detail button clicked");
}
}
}
Changelog
1.0.1
- Add R2modman & Mod Manager support
- Improved locating existing game elements to show the mod button. It will now consistently show up.
1.0.0
- Initial release
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: