12 Configuration
12.1 Command line arguments
12.1.1 Basic options
- --help display a short help message.
- --copyright display copyright information.
- --version display the version of the program.
12.1.2 Usefull, everyday options
- --fullscreen switches to fullscreen mode.
Use --fullscreen=false to force windowed mode.
- --width=... defines, in pixels, the desired
screen width. Note that you must be in windowed mode
and/or have a working corresponding fullscreen mode
for this to work.
- --width=... defines, in pixels, the desired
screen height. Note that you must be in windowed mode
and/or have a working corresponding fullscreen mode
for this to work.
12.1.3 Advanced options
- --prefix returns the
prefix
used by the
game, that is the main directory it should be installed to.
Usually, it is /usr/local
or /usr
.
It is the exact parameter that is passed to the ./configure
script.
- --cflags returns a string containing the flags
which could be used to compile programs using the various
Liquid War 6 convenience libraries. This can be usefull
if you want to compile a test program, an extension,
whatever.
- --configure-args
returns a string containing all the options that were
passed to the
./configure
script.
- --max-frames-per-sec
defines the maximum number of frames (displays) per second.
Values over 60 are pretty useless, you probably won't see
the difference. But if you have a slow computer or what
to play on big maps and/or high resolutions, limiting the
number of frames might give your CPU a breath a avoid your
fan to do the dirty and noisy job of trying to cool it down.
A value of 20 for instance will still allow enough interactivity
without melting your CPU down.
Beware, there's a
min-msec-per-frame
parameter
in the config file, but it's not read, only automatically
calculated from of max-frames-per-sec
.
12.2 Config file
The user config file keeps a track of all the player
options in $HOME/.liquidwar6/config.xml
.
For instance /home/ufoot/.liquidwar6/config.xml
.
It's a plain XML file, with entries of the form:
<option key="<a-command-line-option-without-the-->" value="<its-value>" />
For instance:
<option key="fullscreen" value="false" />
Modifying this file with an editor before starting
the game or passing the corresponding command line option
has pretty much the same effect.
Just a matter of taste 8-)
Some command line options such as --help does
not have corresponding entries in the config file,
mostly because it does not make sense.