1
define(FI,<tr><td><strong>$1</strong></td><td> ($2)</td></tr>)
2
define(FIS,<strong>$1</strong><br>)
5
The contents of the installation directory should be something like this:
9
ifelse(DOCSTYLE_RESULT,unix,
10
FI(bin,the directory with the executables and scripts),
11
FI(PROGNAME.exe,the main executable))
12
FI(models,the directory for the cycle models)
13
FI(sound,the directory for sound files)
14
FI(textures,the directory for textures and the icon)
15
FI(resources,the directory for maps)
16
FI(doc,the documentation you are just reading)
17
FI(language,the game's text messages)
18
ifelse(DOCSTYLE_RESUT,unix,,
19
[FI(config,static configuration files)]
21
dnl FI(var,game logs and custom configuration)
24
ifelse(DOCSTYLE_RESULT,unix,
27
The system wide configuration is stored in
29
[FILE([CONFIGPATH_ETC]) (default) or FILE([CONFIGPATH_NOETC]), depending on your distributors choice.],
30
[FILE([CONFIGPATH]).],
36
Additionally, if you installed the moviepack/moviesounds
37
from the ELINK(WEBBASE/addons.html,addons page),
38
you'll see the two directories
44
define(VAR, ifelse( DOCSTYLE_RESULT,unix, FILE(~/.armagetron/var), the FILE(var) subdirectory))
48
containing ONLY files and no subdirectories.
49
When you have run PROGTITLE, you'll see the additional files
53
FI([highscores.txt,ladder.txt,won_matches.txt and won_rounds.txt],
54
score statistics files)
55
FI(user.cfg,PROGTITLE custom configuration file)
60
You may want to create your own
61
<a href="config.html#files">configuration files</a>
65
FI(autoexec.cfg,config file read at every start)
68
FILE(config) subdirectory for your
69
custom modifications; that way, they don't get overwritten by the defaults the
70
next time you install an update.
72
define(CL,<tr><td valign=top width=200><strong>$1</strong> </td><td>$2</td></tr>)
74
<a name=cl>SUBSECTION(Command line switches)</a>
76
CL([-h, +h, --help ] ,[ get help and other available command line options])
77
CL([-v, +v, --version ], [ print version number ])
79
CL([--datadir <Directory> ], [ systemwide data directory; read game data (textures, sounds and text) from this directory. ] )
80
CL([--userdatadir <Directory> ], [ user data dir; try to read all game data from this directory first. ])
81
CL([--configdir <Directory> ], [ read game configuration (.cfg-files) from this directory.])
82
CL([--userconfigdir <Directory> ], [ user configuration directory; try to read the configuration from here first. ])
83
CL([--vardir <Directory> ], [ save game logs, highscores and user configuration in this directory. ])
85
CL([-f, +f, --fullscreen ], [ start in fullscreen mode])
86
CL([-w, +w, --window, --windowed], [ start in windowed mode ])
88
ifelse(DOCSTYLE_RESULT,windows,[
89
CL([+directx, -directx ], [ enable/disable usage of DirectX for screen initialisation])
91
CL([-d, +d, --daemon ], [allow the dedicated server to run as a daemon (will not poll for input on stdin)])
96
The various directories you can set have the following impact on how the game loads and saves files.
97
(Usually, you don't have to bother about it; there are reasonable defaults. But if you want to do
98
some meddling with the data, these options are your ticket.)
101
SUBSUBSECTION([Data])
103
Sounds, textures and models will be first looked for in the directory specified with OPTION(--userdatadir). If they are not
104
found there or if OPTION(--userdatadir) was not used, they are looked for in the directory specified with OPTION(--datadir).
105
This directory defaults to the current directory if not specified.
108
SUBSUBSECTION([Configuration])
110
(I'll leave out the bits about "if option xxx is not set" from now on )
111
Configuration files are first looked for in OPTION(--userconfigdir), then OPTION(--userdatadir/config) ( the dir passed to OPTION(--userdatadir), appended with FILE(/config) ),
112
then OPTION(--configdir) and finally OPTION(--datadir/config).
115
SUBSUBSECTION([Logs and user configuration])
117
Log files ( game results, the settings made in the in game menu ) are loaded from OPTION(--vardir), then, if not found there, from OPTION(--userdatadir/var) and finally from OPTION(--datadir/var).
118
They are only saved in the first of these directories that was specified.
121
ifelse(DOCSTYLE_RESULT, unix,
123
[The starter scripts will use the options OPTION([--datadir PREFIX/games/PROGNAME --userdatadir ~/.PROGNAME --configdir CONFIGPATH]). So, your personal configuration will sit in FILE([~.armagetron/var]).