At every start, resolves a public Steam Workshop collection into `Mods=`, `WorkshopItems=`, and `Map=` and saves them into the server `.ini`. - Mod IDs and map folders read from item descriptions; load order by bucket, priority, and pinned position - Per-item overrides in `config.toml` (mod_ids, title, bucket, position, exclude) - Falls back to the last cached result, then the existing .ini, so the server always starts - Periodic drift check logs collection changes and Workshop updates - `/collection [check]` admin command Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.8 KiB
TOML
36 lines
1.8 KiB
TOML
# LuaModAutomator: Mods=, WorkshopItems=, and Map= of the server come from a Steam Workshop
|
|
# collection, resolved at every start. <forge>/mods/lua_mod_automator/config.toml overrides
|
|
# these defaults key by key; a missing key keeps its default.
|
|
|
|
# The collection: its URL or numeric id. It must be Public; unlisted, friends-only, and private
|
|
# collections are invisible to Steam's Web API. Empty: the mod does nothing.
|
|
collection = ""
|
|
|
|
[ini]
|
|
write = true # save the resolved values into the server's .ini
|
|
manage_map = true # false: Map= stays as it is
|
|
base_map = ["Muldraugh, KY"] # Map= ends with these folders, after those of the map items
|
|
|
|
[steam]
|
|
timeout_s = 20 # seconds per Web API request
|
|
|
|
[drift]
|
|
interval_min = 30 # minutes between drift checks while the server runs; 0 turns them off
|
|
|
|
[order]
|
|
# Items land in "map" (a Map Folder line in the description), "framework" (the Steam tag
|
|
# Framework), or "misc", unless [items] says otherwise. Custom bucket names are allowed.
|
|
buckets = ["map", "framework", "misc"]
|
|
priority = [] # items loaded first, in this order: workshop ids or Mod IDs
|
|
|
|
# Overrides per item. The key is a workshop id or a Mod ID of an item in the collection; Mod
|
|
# IDs with characters other than letters, digits, _ and - need quotes. Every field is optional.
|
|
#
|
|
# [items.3790407759]
|
|
# mod_ids = ["RconDataBridge"] # replaces the Mod IDs parsed from the description
|
|
# title = "RCON Data Bridge" # name in the logged mod list
|
|
# bucket = "misc" # replaces the automatic bucket
|
|
# position = 1 # 1-based place in the final list, applied after priority
|
|
# exclude = true # left out of Mods=, WorkshopItems=, and Map=
|
|
[items]
|