Update LuaModAutomator to 0.6.0 ZF API, update features and Workshop handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-10 19:55:43 +02:00
1 parent 322092729f
commit 389b5b19d7
17 files changed
+309 -101

No files matched your search

+15 -12
View File
@@ -11,7 +11,7 @@ Players keep the official, unmodified client; the mod runs on the server only.
## Requirements
- ZomboidForge 0.4.0 or newer, Project Zomboid Build 42 (dedicated server)
- ZomboidForge 0.6.0 or newer, Project Zomboid Build 42 (dedicated server)
- Steam mode (the default of the ZomboidForge image), which the Workshop download needs
- a **Public** Steam Workshop collection: unlisted, friends-only, and private collections are
invisible to Steam's Web API
@@ -45,10 +45,12 @@ replaces those values at every start anyway.
For every item of the collection, Steam's Web API returns its title, tags, and description.
- **Mod IDs** come from description lines such as `Mod ID: Foo` or `ModID = Foo; Bar`. An item
without one stays in `WorkshopItems=` (so the server downloads it) but is left out of `Mods=`,
with a warning; `[items.<id>] mod_ids` supplies it. The same applies to items Steam returns no
details for (private, unlisted, or removed items inside the collection).
- **Mod IDs** come from description lines such as `Mod ID: Foo` or `ModID = Foo; Bar`; IDs may
also be separated by `/`, `or`, or `and`, and a dash between spaces (`Foo - B42 only`) ends
the list. An item without one stays in `WorkshopItems=` (so the server downloads it) but is
left out of `Mods=`, with a warning; `[items.<id>] mod_ids` supplies it. The same applies to
items Steam returns no details for (private, unlisted, or removed items inside the
collection).
- **Buckets** decide the load order: `map` (a `Map Folder:` line in the description),
`framework` (the Steam tag *Framework*), or `misc`. Buckets load in the order of
`[order] buckets`, items within a bucket in collection order.
@@ -63,7 +65,7 @@ Values go into the server's `.ini` (`[ini] write`), so `showoptions` and the fil
The server always starts. The mod uses, in this order:
1. the collection, resolved live from Steam;
1. the collection, resolved live from Steam (tried a second time after 2 seconds);
2. the last successful resolution of the same collection, cached in the world's
`zomboidforge.db`;
3. the values already in the `.ini`.
@@ -120,9 +122,9 @@ exclude = true # left out of Mods=, WorkshopItems=, a
Problems that do not stop the mod are logged as warnings: `[items]` keys or `priority`
entries that match no item, two keys naming the same item (the workshop-id key wins field by
field), Mod IDs named by two items (`Mods=` lists them once), unknown keys. An item that lands
in a bucket missing from `[order] buckets` is an error: the mod then falls back as if Steam
could not be reached.
field), Mod IDs named by two items (`Mods=` lists them once), Mod IDs that differ only in case
(`Mods=` lists both), unknown keys. An item that lands in a bucket missing from
`[order] buckets` is an error: the mod then falls back as if Steam could not be reached.
## While the server runs
@@ -131,8 +133,9 @@ change:
- how the collection differs from what the server runs: items or Mod IDs added, removed, or in
another order, a different `Map=`;
- items that were updated on Steam after the server started. Clients that download the new
version may not be able to join until the server restarts and downloads it too.
- items with a newer version on Steam than the one the server downloaded. Clients that
download the new version may not be able to join until the server restarts and downloads it
too.
The mod never restarts the server; changes apply at the next start.
@@ -165,7 +168,7 @@ is idle. To try it with a collection, copy `build/mod/lua_mod_automator/` into a
directory (or set `zomboidForge.deployDirectory` and run `./gradlew deployMod`) and add a
`config.toml` there.
Pushing a tag `v<version>` that matches `version` in `build.gradle.kts` builds the mod and
Pushing a tag `v<version>` that matches `version` in `settings.gradle.kts` builds the mod and
publishes it as a release (`.gitea/workflows/release.yml`, `ci/release.sh`). Tags containing
`-` (e.g. `v0.2.0-rc.1`) and tags on commits that are not on `master` are built and tested but
not released.