Help

ZONE

For immortals

Syntaxzone load <zone> [yes]zone unload <zone> [yes]zone revert <zone> [to <snapshot>] [yes]zone history <zone> [<n>]zone snapshot <zone> <name>zone numbers [<zone>]

An architect takes a whole zone out of the game, or puts it back, while the game runs. zone alone shows the usage and the zones that aren't loaded. Without yes each command shows what it would do; the same command with yes does it, worked out again at that moment.

zone load xmas reads the zone's file as the boot does, loads first the zones it imports that aren't loaded, and runs each one's first reset. It is refused when the zone's file was edited on disk since the game read it (the edit is read at the next boot), or when a room in it doesn't read.

zone unload xmas takes its rooms out of the game and stops its resets, room scripts and zone behaviours. Its own creatures, and the objects on its floors that no player ever carried, are removed: its resets make them again when it is loaded. Everything else in it moves to the nearest room outside it: creatures from other zones, pets, player corpses, and whatever a player dropped there. Its creature and object prototypes stay, dormant: things already in the game (a player's items, a pet) are themselves, and nothing makes a new copy until the zone is loaded again.

An unload is refused

  • for the game's own zones (limbo, sys, imm, stk, spec, hallm, unas) and for a zone holding a room the game names (the void, the entrances, the tomb, a class's or race's hometown, a gate);
  • while a loaded zone imports it (unload that zone first, or zimports <zone> -xmas);
  • while anyone is in it, linkdead or switched included (they walk out, or are brought out, first);
  • while someone edits one of its things, while its rooms or resets hold changes not folded (rfold, zfold first), and while a layer is on in it (lset <layer> off first).

Walking never loads a zone: an exit into a zone that isn't loaded acts as no exit. goto into it, and minvoke or oinvoke of its prototypes, say which zone to load. zstat shows a zone's state.

Players aren't told when a zone comes or goes; announce it as you like.

zone revert moz (architects) takes back the newest merge or zone operation of the zone that isn't taken back yet; typed again, the one before it. A merge's revert gives back what it removed, with the same hidden ids, moves anyone standing in a room it added to the nearest room that stays, and gives the builder the layer back to keep building. It is refused when something the merge wrote has changed since, naming it and who changed it: revert that first, or use a snapshot. zone revert moz to before-docks goes back to a snapshot; it can itself be reverted. zrevert is the same command.

zone history moz (any immortal) lists the zone's merges, reverts, zone operations and snapshots, newest first. zone snapshot moz before-docks (builders of the zone, architects) keeps the zone file and its layers as they are now, under that name (2 to 16 lowercase letters, digits and hyphens).

zone numbers shows how often the old numbers were used since the boot instead of names, by how they came in: typed (a command), script (a script looking a thing up by number), behaviour (a behaviour's argument), gmcp (the building windows), changeset and connector, with the uses whose thing was renumbered (differ) and the scripts' reads of numbers. Below them, the last 20 places a number was used: when, how, the number, the command or script entry, and who (a builder, or the address of the script's owner), with how many uses there. With a zone, only the places in that zone. The numbers are removed after thirty days with none; the whole list, a line per place a day, is log/numbers.log.