Difference between revisions of "Manual:Zone Manual/Appendices"

From DikuMUD Wiki
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 argument string is processed from left to right. Options  may
+
 
−
appear  between  filenames, but it should be noted that an option
+
Reference material for zone writers:
−
only takes effect when it is encountered. In most cases, options
+
* [[Manual:Zone Manual/Appendices/Reserved keyword listing|Reserved keyword listing]]: words vmc keeps for itself.
−
should be placed to the left of the filename arguments.
+
* [[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
 
|-
 
|-
−
|Option
+
| <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.
−
|Description
 
 
|-
 
|-
−
| -m
+
| <code>-s</code> || Check only: write no <code>.data</code> or <code>.reset</code> file.
−
|The location of the money file. Normally etc/money.
 
 
|-
 
|-
−
| -v
+
| <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>.
−
|Verbose compiler output shows much more information about objects and NPC
 
 
|-
 
|-
−
| -M
+
| <code>-I</code>''dir'' || A directory to search for <code>#include &lt;...&gt;</code> files, normally <code>vme/include/</code>. Written without a space: <code>-I../include/</code>. Can be given more than once.
−
|Make option. Only compile source files if they have been modified more recently than the corresponding output files.
 
 
|-
 
|-
−
| -p
+
| <code>-l</code> || Warnings are treated as errors.
−
|Pre process the file only
 
 
|-
 
|-
−
| -s
+
| <code>-v</code> || Verbose output.
−
|Suppress the generation of output files.
+
|-
 +
| <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.
 
|}
 
|}
  
−
These options are not available to the email or FTP compiler, but
+
The usual way to compile, from <code>vme/zone/</code>:
−
normally you should not bother with them - they are probably
+
 
−
set automatically.
+
<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:

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