1NMLC(1)                   BSD General Commands Manual                  NMLC(1)
2

NAME

4     NMLC — A compiler from NML code to NFO and/or GRF files.
5

SYNOPSIS

7     nmlc [options] [file]
8

OPTIONS

10     -c          Crop extraneous transparent blue from real sprites.
11
12     -u          Save real sprites uncompressed to GRF files. This saves a lot
13                 of time during encoding but it's not recommended when creat‐
14                 ing a file for distribution since it makes the output file
15                 substantially bigger.
16
17     --grf=file  Write output in GRF format to <file>.
18
19     --nfo=file  Write output in NFO format to <file>.
20
21     --nml=file  Write output in NML format to <file>.
22
23     --output=file | -o file
24                 Write output to <file>. The output type is detected from the
25                 extension of the filename. It must be one of nfo, nml or grf.
26
27     --md5=file  Write an md5sum of the resulting grf to <file>.
28
29     --debug | -d
30                 Print a dump of the AST to stdout.
31
32     --version   Print programme's version number and exit.
33
34     --help | -h
35                 Print usage information.
36
37     --stack | -s
38                 Dump stack when an error occurs.
39
40     -M          Output a rule suitable for make describing the graphics
41                 dependencies of the main grf file (requires input file or
42                 --grf)
43
44     --MF=file   When used with -M, specifies a file to write the dependencies
45                 to
46
47     --MT=file   Target of the rule emitted by dependency generation (requires
48                 -M)
49
50     --custom-tags=file | -t file
51                 Load custom tags from <file> [default: custom_tags.txt].
52
53     --lang-dir=dir | -l dir
54                 Load language files from directory <dir> [default: lang].
55
56     --default-lang=file
57                 The default language is stored in <file> [default: eng‐
58                 lish.lng].
59
60     --sprites-dir=dir | -a dir
61                 Store 32bpp sprites in directory <dir> [default: sprites].
62
63     --start-sprite=num
64                 Set the first sprite number to write (do not use except when
65                 you output nfo that you want to include in other files).
66
67     --palette=palette | -p palette
68                 Force nml to use the palette <pal> [default: ANY]. Valid val‐
69                 ues are 'DOS', 'WIN', 'ANY'.
70
71     --quiet     Disable all warnings. Errors will be printed normally.
72
73     --cache-dir=dir
74                 Cache files are stored in directory <dir> [default: .nml‐
75                 cache].
76
77     --clear-orphaned
78                 Remove unused / orphaned items from cache files.
79
80     --verbosity=level
81                 Set the verbosity level for informational output [default: 3,
82                 max: 4].
83

SEE ALSO

85     The language reference at http://newgrf-specs.tt-wiki.net/wiki/NML:Main
86

AUTHOR

88     NML was written by Albert Hofkamp, Christoph Elsenhans, Jasper Reichardt,
89     Ingo von Borstel, José Soler and Thijs Marinussen.
90
91     This manual page was originally written by Thijs Marinussen.
92
93                               January 07, 2016
Impressum