Home |
Rules |
Authors |
Game options and menus |
Network game |
Command line parameters |
Platform specific issues |
User levels |
Core algorithm |
Source code |
Bugs |
To do
Command line parameters
Introduction
When you launch Liquid War 5, you can use command line options.
If you have no problems launching Liquid War,
this section should not interest you very much.
You can use several options at the same time.
The basic syntax for options looks like this:
lw -option1 -option2 parameter2 -option3 parameter3 -option4 -option5
Note that most of the options are legacy options which where usefull
with the initial releases of Liquid War, when you had to run in a
Windows DOS box, and when there were still plenty of 486 computers
with only 8Mb ram...
Version checking
These are basic options which can be usefull to figure out
which release of Liquid War is installed.
- "-v" : returns the version number of the program.
- "-h" : displays a short description and copyright information.
Changing default paths
Very usefull options, especially if you can not install Liquid War
in default directories or want to put the game in a special place.
- "-cfg myconfigfile.cfg" : causes Liquid War to use the specified
config file.
- "-dat mydatafilefile.dat" : causes Liquid War to use the specified
datafile. This might be a very interesting option if you run
Liquid War on a GNU/Linux box where you do not have root access and
therefore can not put the datafile in /usr.
- "-map mycustommapdir" : causes Liquid War to use the specified
directory as the user map directory. The user map directory
is where you can put plain bitmaps to be used as maps.
- "-tex mycustomtexturedir" : causes Liquid War to use the specified
directory as the user texture directory. The user texture directory
is where you can put plain bitmaps to be used as textures.
Troubleshooting switches
These options give you control on how Liquid War treats
initialisation errors, how much memory it should reserve,
what kind of video mode sit should not choose etc...
- "-vga" :
This option forces Liquid War to use your video card
as if it was only a basic VGA card.
This option is required if you play Liquid War from Windows NT.
- "-no400300" :
This option disables the VGA 400x300 video mode.
I created this options for I know that some video cards/monitors
don't support the 400x300 mode.
- "-silent" :
With this option, Liquid War will not play any sound.
It will not search for any sound card.
This can be interesting if you don't have any sound card
or if Liquid War doesn't handle your card correctly.
- "-nowater" :
Causes Liquid War not to load any water sound.
Use this if Liquid War runs short of memory,
and you should gain about 850kb.
- "-nosfx" :
Causes Liquid War not to load any sound fx.
Use this if Liquid War runs short of memory,
and you should gain about 150kb.
- "-mem n" :
The parameter "n" sets the amount of memory (in Mb)
Liquid War will allocate to do all its calculus.
If this number is too small, you won't be able to play
on all the levels.
If it is too high, Liquid War may not start at all
or crash while you are playing.
The default value is 8.
If you play Liquid War from Windows and Liquid War
refuses to run because this parameter is too high,
then try and give more dpmi memory to Liquid War.
- "-nojoy" :
This option disables joystick support.
- "-noback" :
Causes Liquid War not to load the background image.
Use this if Liquid War runs short of memory,
and you should gain about 300kb.
- "-notex" :
Causes Liquid War not to load any texture.
Use this if Liquid War runs short of memory,
and you should gain about 750kb.
- "-auto" :
If you set this option, Liquid War won't generate
any error while allocating memory or loading data.
- "-safe" :
With this option, you will play with a very reduced
version of Liquid War. It looks rather ugly but
should work in a DOS box with only 4Mb of DPMI memory.
Use this if you experience serious memory or device problems.
If Liquid War doesn't start with this option turned on,
I really don't think I can do anything for you...
- "-nice" :
With this option, Liquid War will use a mode which
is between the default mode and thesafemode.
- "-check" :
With this option, Liquid War will stop as soon as it detects
something strange while initializing.
- "-stop" :
If you set this option, Liquid War will prompt you for a key
when the init process is completed.
- "-c" :
This is a weird option, if you turn it on,
the game will only use fonctions which are programmed in C langage.
The default behaviour is to use some functions I rewrote
in assembly langage, so that the game is a little faster.
Debug options
These options are usefull if you want to debug the game and
trace what's happening.
- "-netlog" :
Dumps all the network traffic on the standard output. This
can help finding problems when trying to connect to the server
in a network game.
This documentation is also available on:
www.ufoot.org/liquidwar.
Contact author:
ufoot@ufoot.org