CommandLineOptions.wiki
changeset 275 910cde9995b8
parent 274 aae06d0bd175
child 276 5d525c4b0130
equal deleted inserted replaced
274:aae06d0bd175 275:910cde9995b8
    20 It is possible to start a replay or save file directly from the terminal issuing the standalone {{{hwengine}}} utility with very simple syntax. 
    20 It is possible to start a replay or save file directly from the terminal issuing the standalone {{{hwengine}}} utility with very simple syntax. 
    21 
    21 
    22 == Standard Use ==
    22 == Standard Use ==
    23 {{{$ hwengine [path to hedgewars folder] <path to data folder> <path to replay file>}}}
    23 {{{$ hwengine [path to hedgewars folder] <path to data folder> <path to replay file>}}}
    24 
    24 
    25 The hedgewars folder is optional, but may be useful if you have more than one installation.
       
    26 
       
    27 The data folder is where you installed the game, or where you configured it at compile time.
    25 The data folder is where you installed the game, or where you configured it at compile time.
    28 By default it is contained in the following directory:
    26 By default it is contained in the following directory:
    29 
    27 
    30   * _Windows_: {{{%USERPROFILE%\Hedgewars}}}
    28   * _Windows_: {{{%USERPROFILE%\Hedgewars}}}
    31   * _Linux_: {{{~/.hedgewars}}}
    29   * _Linux_: {{{~/.hedgewars}}}
    34 The replay file can be stored anywhere.
    32 The replay file can be stored anywhere.
    35 
    33 
    36 == Advanced Use ==
    34 == Advanced Use ==
    37 It is possible to specify settings by adding additional arguments:
    35 It is possible to specify settings by adding additional arguments:
    38 
    36 
       
    37   * {{{--user-dir [path to hedgewars folder]}}} - Sets the path to game folder
    39   * {{{--locale [path to language file]}}} - Sets the game language
    38   * {{{--locale [path to language file]}}} - Sets the game language
    40   * {{{--width [size]}}} - Starts the game with the given width (in pixels)
    39   * {{{--width [size]}}} - Starts the game with the given width (in pixels)
    41   * {{{--height [size]}}} - Starts the game with the given height (in pixels)
    40   * {{{--height [size]}}} - Starts the game with the given height (in pixels)
    42   * {{{--volume [level]}}} - Sets the volume level, possible values range from 0-100 (negative is muted)
    41   * {{{--volume [level]}}} - Sets the volume level, possible values range from 0-100 (negative is muted)
    43   * {{{--frame-interval [interval]}}} - Sets minimum timer interval between each frame in milliseconds. Ex: 40 would make the game run at most 25 fps
    42   * {{{--frame-interval [interval]}}} - Sets minimum timer interval between each frame in milliseconds. Ex: 40 would make the game run at most 25 fps
    62   * {{{--set-audio [volume] [enable music] [enable sounds]}}}
    61   * {{{--set-audio [volume] [enable music] [enable sounds]}}}
    63   * {{{--set-other [language file] [full screen] [show FPS]}}}
    62   * {{{--set-other [language file] [full screen] [show FPS]}}}
    64   * {{{--set-multimedia [screen height] [screen width] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen]}}}
    63   * {{{--set-multimedia [screen height] [screen width] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen]}}}
    65   * {{{--set-everything [screen height] [screen width] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen] [show FPS] [alternate damage] [timer value] [reduced quality]}}}
    64   * {{{--set-everything [screen height] [screen width] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen] [show FPS] [alternate damage] [timer value] [reduced quality]}}}
    66 
    65 
    67 == Very Advanced Use (l33t only) ==
    66 == Advanced Quality Options ==
    68 If you want to get your hands dirty and see how the engine interprets commands, you can check out the source code.
       
    69 [http://code.google.com/p/hedgewars/source/browse/hedgewars/ArgParsers.inc ArgParsers.inc]
       
    70 
    67 
    71 --raw-quality value is determined by combining the values of the flags you wish to enable.
    68 --raw-quality value is determined by combining the values of the flags you wish to enable.
    72 Up to date variables (in hex) are online. [http://code.google.com/p/hedgewars/source/browse/hedgewars/uConsts.pas#62 uConsts.pas]
    69 Up to date variables (in hex) are online. [http://code.google.com/p/hedgewars/source/browse/hedgewars/uConsts.pas#62 uConsts.pas]
    73 
    70 
    74   * {{{qLowRes        = 1}}}
    71   * {{{qLowRes        = 1}}}
   100 {{{
    97 {{{
   101 $ hwengine anywhere/replay.hwd
    98 $ hwengine anywhere/replay.hwd
   102 $ hwengine installpath/hedgewars/Data anywhere/replay.hwd --set-video 1024 768
    99 $ hwengine installpath/hedgewars/Data anywhere/replay.hwd --set-video 1024 768
   103 $ hwengine installpath/hedgewars/Data anywhere/replay.hwd --nosound 1
   100 $ hwengine installpath/hedgewars/Data anywhere/replay.hwd --nosound 1
   104 }}}
   101 }}}
       
   102 
       
   103 If you want to get your hands dirty and see how the engine interprets commands, you can check out the source code.
       
   104 [http://code.google.com/p/hedgewars/source/browse/hedgewars/ArgParsers.inc ArgParsers.inc]