Add modular class loaders, enhanced mod verification, and new test cases for mod loading and validation.

This commit is contained in:
Overlord committed 2026-10-02 11:20:31 +02:00
1 parent df4d58a279
commit 3b21fc3aa6
27 files changed
+1871 -105

No files matched your search

+7 -4
View File
@@ -64,10 +64,13 @@ Notes:
items (`/data/steamapps`). The server runs as UID 1000. A bind-mounted host directory
must be writable by UID 1000 (`chown 1000:1000 <dir>`); with rootless Podman, use
`--userns=keep-id:uid=1000,gid=1000` to map it to your own user.
- **Java mods:** mount a directory at `/forge` (e.g. `-v ./forge:/forge:ro`) with one folder
per mod: `mods/<id>/<id>.jar`, optional `mods/<id>/lib/*.jar`. A mod that cannot be loaded
(missing dependency, wrong game version, failing `onLoad`) stops the server with exit code 1
and lists every problem in the log.
- **Java mods:** mount a directory at `/forge` (e.g. `-v ./forge:/forge`) with one folder
per mod: `mods/<id>/<id>.jar`, optional `mods/<id>/lib/*.jar`, and the mod's settings in
`mods/<id>/config.toml`. A missing `config.toml` is created from the mod's defaults when
the folder is writable by UID 1000. `[forge]` `enabled = false` in it switches the mod off.
A mod that cannot be loaded (missing dependency, wrong game version, game classes that do
not exist in the running version, failing `onLoad`) stops the server with exit code 1 and
lists every problem in the log.
- **Stopping:** `SIGTERM` triggers the game's own save-and-quit. Allow enough time for large
worlds (`podman stop -t 120`, `stop_grace_period` in compose).