LCHECK
lcheck <layer> [on|off]The lcheck command runs every check a layer must pass to go on in live, or to go off, against the live stack of its zone, and prints them without changing anything. Builders of the zone may type it anywhere, an instance included, so you see them while you build. Without on or off it checks the layer going on if it is off in live, going off if it is on.
lcheck drow-siege on in live: base > winter -> base > winter > drow-siege
! reach: moz.back-lane can't be reached after the change (moz.market led to it).
held: drow-siege: desc of moz.camp (needs moz.camp: only winter adds it, and winter is off)
1 to fix (!), 1 to look at: lset drow-siege on would be refused.
A line with ! refuses lset <layer> on, a change of order that players would see, and a merge that changes live. For off every line is a warning: an off always goes ahead. The same checks run in the preview of lset, again at yes, and once more just before the flip.
The checks
| Code | Refuses when, and what fixes it |
| reach | a room players can reach now (from any exit into the zone, its fallback room, a recall or portal target) can't be reached after the change, or a room the layer adds can't be reached at all. Rooms flagged closed, and rooms nobody reaches now, don't count. The line names the room that led to it. Fix: an exit to it in the layer (dig, redit), or remove the room too. |
| gates | an exit into another zone (a gate) leads to a room that doesn't exist, or that isn't in that zone's live stack. Fix: lead it to a room that exists, or turn on the other zone's layer that adds the room first. A gate made one-way, and a door state the exit back doesn't share, are warnings. |
| resets | a reset line names a room, creature or object the stack after doesn't have, or one of a zone the zone doesn't import or that doesn't exist; or it loads a layer's own creature with a max over 20. Fix: the line (zedit in the layer), the thing it names, or a max of 20 or less. |
| scripts | a behaviour the stack after has, new or changed, doesn't compile or names an address that doesn't resolve with the layer on. The compiler's message follows. Fix: the script. |
| moves | a room goes and no room of the zone stays for its occupants. Fix: keep a room, or give the zone a fallback room. Who will move, and where, is listed as a warning. |
| referenced | a thing the change removes is still named by an exit, reset line, key, portal list or script of another zone, or of a layer that stays on. Fix: that reference first, or keep the thing. |
| stale | an entry of the layer is stale: the value beneath (the base, or the layer it is over) changed since it was written, or a name it adds is taken. Fix: lset <layer> keep or drop (see lstat). |
| unfolded | the zone has building in live not yet in its zone file: a flip builds from the files and would lose it. Fix: fold it first (zfold <zone>). |
| imports | the layer would import a zone that doesn't exist or can't be loaded. Fix: the layer's imports. |
| saved | the change removes an object prototype that things players keep are made from. Fix: keep the prototype. Turning a layer off never removes its own. |
| damaged | the zone's stack, or a layer in it, can't be read. The reason follows. |
| cross-zone | the layer holds things of another zone. Fix: move them into a layer of that zone. |
| limits | the layer is over a size limit. The limit follows. |
| busy | a flip or a merge of the zone is under way. Try again in a moment. |
| budget | the estimate of the flip pulse is over 250 ms. Fix: a smaller change, or two layers. |
Warnings, never refusals: held (an entry that waits for a thing the stack beneath doesn't have; it applies when the thing is there), covers (a field another layer on sets too, and which wins), one-way gates, and moves of the players who will be moved.