Commit Graph

4 Commits

Author SHA1 Message Date
Aaron Kimbrell
b87b7df6a6 fix(master): max_instances does not stop an instance that replaces another
A live update, a world reload and an instance migration start a new
instance that takes over from a running one, which stops once it is
empty. With max_instances reached they were refused, which left the old
instance with no replacement. These starts are no longer held to
max_instances; they still have to be zones of the ZoneTable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:03:02 -06:00
Aaron Kimbrell
7dd2f075ce feat(master): the world file watch follows the override folder, and can hold a zone
For a file under maps/ master watches the file a world would read now: the override
when one is there, else the client's. An override that appears, changes or goes away
makes the instances that read another version stale, also for files from the packs.
The dashboard can hold a zone's automatic reloads (WORLD_RELOAD_HOLD, a new message
after the existing ones) until a reload of the zone is asked for. The status sent to
the dashboard counts what reloads did per zone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 19:11:37 -06:00
Aaron Kimbrell
9951a0c7b4 feat(world-reload): keep properties until empty
Busy property instances on changed files are kept (KEEP_UNTIL_EMPTY) instead
of saved, frozen and moved. Every instance acted on is marked outdated; the
files status carries the flag (bit 4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 04:29:54 -05:00
Aaron Kimbrell
fba7485128 feat(master): watch world zone files and replace instances that loaded old ones
Master hashes each reported file on a worker, polls size and mtime every
world_watch_seconds (a change must hold still for one poll), and replaces
stale instances with the instance migration (Mythran shift, or seamless
with world_reload_seamless=1); empty ones are stopped. Also on WORLD_RELOAD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 02:51:21 -05:00