SpongeCore
Shared plumbing for Sponge's mods. Install it only if another mod asks for it.
模組介紹 作者原文
Sponge's Core
The shared plumbing behind Sponge's mods.
This mod does nothing on its own. It adds no features, changes no gameplay and
patches nothing. Install it only because another mod lists it as a dependency — your
mod manager will normally do that for you.
What it does
Several mods need the same three unglamorous things, and each is easy to get subtly
wrong:
- Their own messages between players. The game sends nothing of its own design
that a mod can attach to, so a mod that needs players to agree on something has to
bring its own channel — and attach it at the right moment, on both the host and
every client, and reattach it after a reconnect.
- A small file beside your save. For anything the game's own save has no room
for. The rule that has to hold everywhere is that a mod's own bookkeeping failing
must never disturb the game's file.
- Doing something occasionally instead of every frame. For writes to disk and
periodic sweeps.
Doing each once, in one place, means a fix reaches everything at once instead of
being applied to some copies and not others.
When you want it
Only when something else asks for it.
Keys
None.
Why it is separate from the UI library
A mod that needs to send a message but draws nothing on screen should not have to
ship a canvas, and one that draws but never talks to other players should not have to
ship networking. They are split so each mod carries only what it uses.
Compatibility
It patches nothing and touches no game behaviour, so it cannot conflict with
anything.
For mod authors
Declare the dependency so you are refused a load rather than failing later with a
missing-type error:
[BepInDependency(CorePlugin.Id, CorePlugin.Version)]
The version is a contract, bumped whenever the shared surface changes in a way a
dependent could notice.
License
See LICENSE in the package.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: