Manual:Zone Manual/Appendices
Jump to navigation
Jump to search
Appendices
Reference material for zone writers:
- Reserved keyword listing: words vmc keeps for itself.
- Race definitions, weapon definitions, skill definitions and spell definitions: the
RACE_,WPN_,SKI_andSPL_constants. - Liquid macros: the
LIQ_drink macros. - Magical transfer macros: the
..._TRANSFERmacros for magic items.
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