POYModManager
A Mod manager for peaks of yore! Now with dual Melon and BepInEx support
截圖 共 1 張
模組介紹 作者原文
POY Mod Manager
I will try to keep this as compatible with old mods as possible
FORKED FROM
This is a continuation, i dont know about the drama i just want to mod:p
Documentation:
POYMM is a simple mod manager for peaks of yore made in for Melon and BepInEx, it allows enabling, disabling and configurating mods easily.
POYMM is still in development so expect bugs.
Documentation
Template for POYMM mods is available here.
If you need help setting up bepinex look at this
Or if you are using melonloader look at this:
You will also need to add a reference to the POY Mod Manager dll.
To create a mod, you will need to create a new mod class.
using POKModManager;
namespace Mod
{
public class TemplateMod: ModClass
{
}
}
the mod class has a field called "RunUpdateOnMenu", this will tell the mod manager if to run update in the menu, and another field called "Enabled", this is just says if the mod is enabled or not.
the mod manager can override many built in functions into mod class,
void OnEnabled() { "val1", "val2", "val3", "val4", "val5" } };
[Name("Input")] public KeyCode keyCode { get; set; } = KeyCode.K;
// Example button use case
public override void Start()
{
TestButton.AddListener(OnButton);
}
void OnButton()
{
Debug.Log("Button pressed!");
}
}
}
Ints and floats are required to have the attribute "POKRange", it has 2 parameters, min and max.
There is also another attribute called "DoNotSave", this will not save the modified values.
As well as "Editable" (Explained later on)
There are 3 ways to register the mod, the legacy way, automatic and Explicit
using BepInEx;
using POKModManager;
namespace Mod
{
[BepInPlugin(MOD_GUID, MOD_NAME, MOD_VERSION)]
public class Mod: BaseUnityPlugin
{
private void Start()
{
// Legacy
POKManager.RegisterMod(new TemplateMod(), MOD_NAME, MOD_VERSION, MOD_DESCRIPTION, "TestInt", "TestFloat", "TestBool", "TestButton", "TestString");
// Automatic
POKManager.RegisterMod(new TemplateMod(), MOD_NAME, MOD_VERSION, MOD_DESCRIPTION);
// Explicit
POKManager.RegisterMod(new TemplateMod(), MOD_NAME, MOD_VERSION, MOD_DESCRIPTION, UseEditableAttributeOnly=true);
// Note that with explicit all variables that you want the player to be able to change must have [Editable] before it
// Example: [Editable] public bool TestBool { get; set; }
}
}
}
and thats then the rest is up to you.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: