TEXT   23

liquidwar parameters

Guest on 17th August 2022 02:08:40 PM

  1. Liquid War (v5.6.4) - Command line parameters
  2.  
  3.  
  4.  
  5.  
  6. Introduction
  7. ============
  8.  
  9.  
  10.   When you launch Liquid War 5, you can use command line options. If you have
  11.   no problems launching Liquid War, this section should not interest you very
  12.   much.
  13.  
  14.   You can use several options at the same time. The basic syntax for options
  15.   looks like this:
  16.  
  17.   lw -option1 -option2 parameter2 -option3 parameter3 -option4 -option5
  18.  
  19.   Note that most of the options are legacy options which where usefull with the
  20.   initial releases of Liquid War, when you had to run in a Windows DOS box, and
  21.   when there were still plenty of 486 computers with only 8Mb ram...
  22.  
  23.  
  24.  
  25. Version checking
  26. ================
  27.  
  28.  
  29.   These are basic options which can be usefull to figure out which release of
  30.   Liquid War is installed.
  31.  
  32.   * "-v" : returns the version number of the program.
  33.  
  34.   * "-h" : displays a short description and copyright information.
  35.  
  36.  
  37.  
  38. Changing default paths
  39. ======================
  40.  
  41.  
  42.   Very usefull options, especially if you can not install Liquid War in default
  43.   directories or want to put the game in a special place.
  44.  
  45.   * "-cfg myconfigfile.cfg" : causes Liquid War to use the specified config
  46.     file.
  47.  
  48.   * "-dat mydatafilefile.dat" : causes Liquid War to use the specified
  49.     datafile. This might be a very interesting option if you run Liquid War on
  50.     a GNU/Linux box where you do not have root access and therefore can not put
  51.     the datafile in /usr.
  52.  
  53.   * "-map mycustommapdir" : causes Liquid War to use the specified directory as
  54.     the user map directory. The user map directory is where you can put plain
  55.     bitmaps to be used as maps.
  56.  
  57.   * "-tex mycustomtexturedir" : causes Liquid War to use the specified
  58.     directory as the user texture directory. The user texture directory is
  59.     where you can put plain bitmaps to be used as textures.
  60.  
  61.   * "-mid mycustommusicdir" : causes Liquid War to use the specified directory
  62.     as the user music directory. Any midi file placed in this directory will be
  63.     added to the list of available musics.
  64.  
  65.   * "-server myliquidwarserverfile" : causes Liquid War to use the specified
  66.     file as the server executable. This option has no effect for now since the
  67.     server is not launched by the client.
  68.  
  69.   * "-mapgen mylwmapgenfile" : causes Liquid War to use the specified file as
  70.     the "lwmapgen" executable. "lwmapgen" is an utility by David Redick which
  71.     generates random maps automatically for Liquid War. You might wish to
  72.     change this option if random map generation does not work for some reason,
  73.     or if you want to use your own map generator.
  74.  
  75.  
  76.  
  77. Troubleshooting switches
  78. ========================
  79.  
  80.  
  81.   These options give you control on how Liquid War treats initialisation
  82.   errors, how much memory it should reserve, what kind of video mode sit should
  83.   not choose etc...
  84.  
  85.   * "-vga" : This option forces Liquid War to use your video card as if it was
  86.     only a basic VGA card. This option is required if you play Liquid War from
  87.     Windows NT.
  88.  
  89.   * "-no400300" : This option disables the VGA 400x300 video mode. I created
  90.     this options for I know that some video cards/monitors don't support the
  91.     400x300 mode.
  92.  
  93.   * "-silent" : With this option, Liquid War will not play any sound. It will
  94.     not search for any sound card. This can be interesting if you don't have
  95.     any sound card or if Liquid War doesn't handle your card correctly.
  96.  
  97.   * "-nowater" : Causes Liquid War not to load any water sound. Use this if
  98.     Liquid War runs short of memory, and you should gain about 850kb.
  99.  
  100.   * "-nosfx" : Causes Liquid War not to load any sound fx. Use this if Liquid
  101.     War runs short of memory, and you should gain about 150kb.
  102.  
  103.   * "-nomusic" : Causes Liquid War not to load any midi music.
  104.  
  105.   * "-mem n" : The parameter "n" sets the amount of memory (in Mb) Liquid War
  106.     will allocate to do all its calculus. If this number is too small, you
  107.     won't be able to play on all the levels. If it is too high, Liquid War may
  108.     not start at all or crash while you are playing. The default value is 8. If
  109.     you play Liquid War from Windows and Liquid War refuses to run because this
  110.     parameter is too high, then try and give more dpmi memory to Liquid War.
  111.  
  112.   * "-nojoy" : This option disables joystick support.
  113.  
  114.   * "-noback" : Causes Liquid War not to load the background image. Use this if
  115.     Liquid War runs short of memory, and you should gain about 300kb.
  116.  
  117.   * "-notex" : Causes Liquid War not to load any texture. Use this if Liquid
  118.     War runs short of memory, and you should gain about 750kb.
  119.  
  120.   * "-auto" : If you set this option, Liquid War won't generate any error while
  121.     allocating memory or loading data.
  122.  
  123.   * "-safe" : With this option, you will play with a very reduced version of
  124.     Liquid War. It looks rather ugly but should work in a DOS box with only 4Mb
  125.     of DPMI memory. Use this if you experience serious memory or device
  126.     problems. If Liquid War doesn't start with this option turned on, I really
  127.     don't think I can do anything for you...
  128.  
  129.   * "-nice" : With this option, Liquid War will use a mode which is between the
  130.     default mode and the "safe" mode.
  131.  
  132.   * "-check" : With this option, Liquid War will stop as soon as it detects
  133.     something strange while initializing.
  134.  
  135.   * "-stop" : If you set this option, Liquid War will prompt you for a key when
  136.     the init process is completed.
  137.  
  138.   * "-c" : This is a weird option, if you turn it on, the game will only use
  139.     fonctions which are programmed in C langage. The default behaviour is to
  140.     use some functions I rewrote in assembly langage, so that the game is a
  141.     little faster.
  142.  
  143.  
  144.  
  145. Debug options
  146. =============
  147.  
  148.  
  149.   These options are usefull if you want to debug the game and trace what's
  150.   happening.
  151.  
  152.   * "-netlog" : Dumps all the network traffic on the standard output. This can
  153.     help finding problems when trying to connect to the server in a network
  154.     game.
  155.  
  156.  
  157.  
  158. Server options
  159. ==============
  160.  
  161.  
  162.   The server command line options are described in the section which deals
  163.   which network games in general. IMHO you need to understand how network works
  164.   in LW before trying to tweak the server 8-)
  165.  
  166.  
  167.  
  168. Other options
  169. =============
  170.  
  171.  
  172.   Everything else 8-)
  173.  
  174.   * "-capture" : Activates the capture mode. In this mode, the game will dump a
  175.     .bmp file on the disk several times per second, which is usefull if you
  176.     want to create an mpeg movie of your game session afterwards. You can also
  177.     activate this mode interactively by pressing F9 within the game.
  178.  
  179.   * "-metaserver url" : redefines the URL of the meta-server. Usefull if you
  180.     want to use your own meta-server.
  181.  
  182.   * "-nobeep" : Disables the system beeps that the application might fire.
  183.     These beeps are mostly used on the server to notify clients connections.
  184.  
  185.   * "-tombola" : Activates a special mode where scores are not displayed
  186.     normally. Instead, the game displays 3 random numbers between 1 - 500.
  187.  
  188.  
  189.  
  190. lwmapgen options
  191. ================
  192.  
  193.  
  194.   The external lwmapgen program by David Redick accepts a number of command
  195.   line options. You can type:
  196.  
  197.   liquidwar-mapgen --help
  198.  
  199.   to get a list of all available options under UNIX. Under Windows the command
  200.   would be:
  201.  
  202.   lwwinmap --help
  203.  
  204.   Note that lwmapgen is called automatically by Liquid War when you click on
  205.   the "Random map" button.
  206.  
  207.   The idea behind lwmapgen is that you choose a function which sets the type of
  208.   map generated, and then pass various arguments to this function. If you do
  209.   not explicitly choose a function, one will be picked up for you randomly, and
  210.   all other parameters will use default values.
  211.  
  212.   The most usefull and common options are:
  213.  
  214.   * "--help" : displays help.
  215.  
  216.   * "--out filename" : save bitmap to filename.
  217.  
  218.   * "--size n" : bitmap size (an integer between 0 and 5).
  219.  
  220.   * "--list" : list all available functions.
  221.  
  222.   * "--function function_name" : which function to use.
  223.  
  224.   Here's a typical use of lwmapgen:
  225.  
  226.   liquidwar-mapgen --size 3 --function hole --out test.bmp

Raw Paste


Login or Register to edit or fork this paste. It's free.