Difference between revisions of "Manual:Zone Manual/Appendices"
Jump to navigation
Jump to search
(checked against the current code (wiki review 2026-11-15)) |
|||
| Line 1: | Line 1: | ||
| − | ==== VMC command line options === | + | == Appendices == |
| − | The | + | |
| − | + | Reference material for zone writers: | |
| − | + | * [[Manual:Zone Manual/Appendices/Reserved keyword listing|Reserved keyword listing]]: words vmc keeps for itself. | |
| − | + | * [[Manual:Zone Manual/Appendices/Race Definitions in values.h|Race definitions]], [[Manual:Zone Manual/Appendices/weapon definitions in values.h|weapon definitions]], [[Manual:Zone Manual/Appendices/Skill definitions in values.h|skill definitions]] and [[Manual:Zone Manual/Appendices/Spell definitions in values.h|spell definitions]]: the <code>RACE_</code>, <code>WPN_</code>, <code>SKI_</code> and <code>SPL_</code> constants. | |
| + | * [[Manual:Zone Manual/Appendices/Liquid macros file|Liquid macros]]: the <code>LIQ_</code> drink macros. | ||
| + | * [[Manual:Zone Manual/Appendices/Complete magical transfers macros listing|Magical transfer macros]]: the <code>..._TRANSFER</code> macros for magic items. | ||
| + | |||
| + | === VMC command line options === | ||
| + | |||
| + | <pre> | ||
| + | vmc [options] zonefile.zon ... | ||
| + | </pre> | ||
| + | |||
| + | 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 <code>-m -s</code>, not <code>-ms</code> (that is read as <code>-m</code>). | ||
{| class="wikitable" | {| class="wikitable" | ||
| + | ! Option !! Description | ||
|- | |- | ||
| − | | | + | | <code>-m</code> || Make: compile a zone only if its <code>.zon</code> file is newer than its <code>.data</code> or <code>.reset</code> file. Changes to included header files are not noticed. |
| − | | | ||
|- | |- | ||
| − | | - | + | | <code>-s</code> || Check only: write no <code>.data</code> or <code>.reset</code> file. |
| − | | | ||
|- | |- | ||
| − | | - | + | | <code>-d</code>''dir'' || The directory that holds the <code>money</code> file, normally <code>vme/etc/</code>. vmc needs it to compile money. The name is put right in front of <code>money</code>, so end it with <code>/</code>: <code>-d ../etc/</code>. It may also be the next argument: <code>-d ../etc/</code> or <code>-d../etc/</code>. |
| − | | | ||
|- | |- | ||
| − | | - | + | | <code>-I</code>''dir'' || A directory to search for <code>#include <...></code> files, normally <code>vme/include/</code>. Written without a space: <code>-I../include/</code>. Can be given more than once. |
| − | | | ||
|- | |- | ||
| − | | - | + | | <code>-l</code> || Warnings are treated as errors. |
| − | | | ||
|- | |- | ||
| − | | - | + | | <code>-v</code> || Verbose output. |
| − | | | + | |- |
| + | | <code>-q</code> || Quiet: print nothing but errors. | ||
| + | |- | ||
| + | | <code>-p</code> || Run only the preprocessor and print the result, to see what the macros became. | ||
| + | |- | ||
| + | | <code>-j</code> || Also write the zone as JSON, to <code>zonefile.json</code>. | ||
| + | |- | ||
| + | | <code>-h</code> || Print the list of options. | ||
|} | |} | ||
| − | + | The usual way to compile, from <code>vme/zone/</code>: | |
| − | + | ||
| − | + | <pre> | |
| + | ../bin/vmc -m -d ../etc/ -I../include/ *.zon | ||
| + | </pre> | ||
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_DIL_Section|Previous: The DIL Section]]</div> | <div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_DIL_Section|Previous: The DIL Section]]</div> | ||
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Appendices/Reserved_keyword_listing|Next: Reserved keyword listing]]</div> | <div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Appendices/Reserved_keyword_listing|Next: Reserved keyword listing]]</div> | ||
Latest revision as of 06:23, 15 November 2026
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