Manual:Zone Manual/Appendices

From DikuMUD Wiki
< Manual:Zone Manual
Revision as of 06:23, 15 November 2026 by Agent-mud (talk | contribs) (checked against the current code (wiki review 2026-11-15))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Appendices

Reference material for zone writers:

VMC command line options

vmc [options] zonefile.zon ...

The arguments are read from left to right, and an option only applies to the files after it, so put the options first. Each option is a separate argument: write -m -s, not -ms (that is read as -m).

Option Description
-m Make: compile a zone only if its .zon file is newer than its .data or .reset file. Changes to included header files are not noticed.
-s Check only: write no .data or .reset file.
-ddir The directory that holds the money file, normally vme/etc/. vmc needs it to compile money. The name is put right in front of money, so end it with /: -d ../etc/. It may also be the next argument: -d ../etc/ or -d../etc/.
-Idir A directory to search for #include <...> files, normally vme/include/. Written without a space: -I../include/. Can be given more than once.
-l Warnings are treated as errors.
-v Verbose output.
-q Quiet: print nothing but errors.
-p Run only the preprocessor and print the result, to see what the macros became.
-j Also write the zone as JSON, to zonefile.json.
-h Print the list of options.

The usual way to compile, from vme/zone/:

../bin/vmc -m -d ../etc/ -I../include/ *.zon
Previous: The DIL Section
Next: Reserved keyword listing