Add BackupStoragePatch to wrap save folder backups, ensuring storage writes are paused during backups. Introduce ModStorage and ModTables for per-mod database management, supporting schema migrations and table versioning. Add ForgeInstance as a static reference to server-side Forge. Include relevant tests.
This commit is contained in:
1 parent
c56046469e
commit
68cd9fc4f9
31 files changed
+2124
-42
No files matched your search
@@ -93,16 +93,19 @@ forge/
|
||||
podman run ... -v ./forge:/forge zomboidforge
|
||||
```
|
||||
|
||||
- **Settings:** a missing `config.toml` is created from the mod's defaults when the folder is
|
||||
writable by UID 1000; otherwise the defaults are used without a file. Keys missing from
|
||||
`config.toml` take the default.
|
||||
- **Switching a mod off:** `enabled = false` in the `[forge]` table of its `config.toml`.
|
||||
Mods that depend on it then fail to load.
|
||||
- **Failures:** a mod that cannot be loaded stops the server with exit code 1, and the log
|
||||
lists every problem. Examples: a missing or too old dependency, an unsupported game
|
||||
version, game classes or methods that do not exist in the running version, invalid
|
||||
settings, an exception in the mod's startup code.
|
||||
- **Changes** to mods and their settings take effect when the server restarts.
|
||||
A mod's settings live in its `config.toml`. When the file is missing, it is created from the
|
||||
mod's defaults if the folder is writable by UID 1000; otherwise the defaults are used without a
|
||||
file. Keys missing from `config.toml` take the default. `enabled = false` in its `[forge]`
|
||||
table switches the mod off; mods that depend on it then fail to load.
|
||||
|
||||
Mods keep their data in `zomboidforge.db` in the world's save folder
|
||||
(`/data/Saves/Multiplayer/<server>/`). Vanilla backups include it, and deleting the world
|
||||
deletes it.
|
||||
|
||||
A mod that cannot be loaded stops the server with exit code 1, and the log lists every
|
||||
problem: a missing or too old dependency, an unsupported game version, game classes or methods
|
||||
that do not exist in the running version, invalid settings, or an exception in the mod's
|
||||
startup code. Changes to mods and their settings take effect when the server restarts.
|
||||
|
||||
`forge.toml`, every key optional:
|
||||
|
||||
|
||||
Reference in new issue
Block a user