Readme-styles:

* Added style for <em> to style-sheets

English readmes:
* Updated 'Configuration' (includes 'WZ-dir and configuration file', 'Command-line options', 'Music' and 'Multiplaying via the internet')
* Added empty dummy sections 'Cheats' and 'Debug-keys' to not forget to add them (later), updated TOC


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5220 4a71c877-e1ca-e34f-864e-861f7616d084
master
Steven Koenig 2008-06-06 17:30:12 +00:00
parent 4c0fd74aae
commit 69d91b86dd
4 changed files with 213 additions and 75 deletions

View File

@ -10,8 +10,10 @@ Content
3.2 Command-line options 3.2 Command-line options
3.3 Music 3.3 Music
3.4 Multiplaying via internet 3.4 Multiplaying via internet
4. Important hotkeys 4. Cheats
5. Additional resources 5. Debug-keys
6. Important hotkeys
7. Additional resources
1. Contents of Warzone 2100 1. Contents of Warzone 2100
=========================== ===========================
@ -63,8 +65,8 @@ those bugs we require that you follow these rules:
================ ================
3.1 WZ-dir and configuration file 3.1 WZ-dir and configuration file
--------------------------------- ---------------------------------
Warzone saves your configuration data in a file named "config". Where this file Warzone saves your configuration data in a file named "config". The location of
is located depends on your operating system. this file depends on the operating system.
Warzone-dir under GNU/Linux Warzone-dir under GNU/Linux
*************************** ***************************
@ -77,41 +79,98 @@ Warzone-dir under Windows
************************* *************************
The folder is called "Warzone 2100" and is located in "My Documents". The folder is called "Warzone 2100" and is located in "My Documents".
Warzone-dir under Mac OS X
**************************
The folder "Warzone 2100" can be found in your home-directory at:
~/Library/Application Support/
3.2 Command-line options 3.2 Command-line options
------------------------ ------------------------
Additionally to the configuration-file Warzone can be started with different Additionally to the configuration-file Warzone 2100 can be started with dif-
parameters. ferent options and arguments.
Note: This parameters all have two dashes (--), not one dash only (-). Trying to Notes: These options all have two dashes (--), not one dash only (-). Trying to
use the parameters with one dash only will not work. use the options with one dash only will not work. The game will display a notice
Parameter Effect when trying to use invalid command-line options. Arguments that need paths need
--fullscreen play in fullscreen-mode them in the form they are used on the operating system.
--window play in windowed mode
--resolution WIDTHxHEIGHT sets the size of the viewport, usable with
fullscreen and windowed
--datadir DIR sets the default data-dir to DIR
--shadows enables shadows
--noshadows disables shadows
--sound enables sound
--nosound disables sound
--cheat enables the usage of cheats and debug-keys
Note: All mentioned command-line parameters except --datadir change the appro- --fullscreen
priate value in your config-file. Starting warzone by double-clicking the exe- Starts the game in fullscreen-mode
cutable/binary will then start the game with the settings used last time. So
don't wonder, if there is no sound, when you started warzone with --nosound last
time.
Note: This is list is not complete. A complete list and further information on --window
command-line options (http://wiki.wz2100.net/command_line_options) can be found Starts the game in windowed mode
at the Wiki of Warzone Resurrection Project (http://wiki.wz2100.net/).
--resolution WIDTHxHEIGHT
Sets the resolution Warzone 2100 will use; usable for fullscreen mode and
windowed mode
--shadows
Enables shadows
--noshadows
Disables shadows
--sound
Enables sound
--nosound
Disables sound
--datadir path
Sets the data-directory to the path specified
--configdir path
Sets the configuration-directory to the path specified
--savegame name
Loads a saved game
--cheat
Enables the usage of cheats and debug-keys, see cheats and debug-keys
--help
Outputs a help message and exits; only useful when run from command-line
--debug option
Shows debug information; option can be any of the following: all, main,
sound, video, wz, 3d, texture, net, memory, error, script. If you want
more than one option, you will have to use another --debug. The option
"all" contains every other option.
--debugfile file
Directs debug output to the specified file.
--version
Outputs the Warzone 2100 version and exits
--mod_ca mod-file
Enables the specified campaign mod. You have to specify the full name of
the mod-file.
--mod_mp mod-file
Enables the specified multiplayer mod. You have to specify the full name
of the mod-file.
--mod mod-file
Enables the specified mod globally - for campaign and multiplayer. You
have to specify the full name of the mod-file. Global mods are only
useful when things are changed that affect both, campaign and multi-
player.
Note: Some options have corresponding entries in the configuration-file and will
persist from one start of Warzone 2100 to the next. For example starting the
game with --nosound only once will silence it as long as you do not start it
with --sound or change the corresponding value in the configuration file. Fur-
ther information on command-line options can be found at the Wiki of the War-
zone 2100 Resurrection Project (http://wiki.wz2100.net/command_line_options).
3.3 Music 3.3 Music
--------- ---------
As the original game music is part of the data that was not liberated, we are As the original game music is part of the data that was not liberated, music is
reintroducing music, but in a different way. We use a playlist system that can reintroduced in a different way. A playlist-system is used that can point to any
point to any *.ogg or *.mp3-file in your warzone-data-path. This is still *.ogg in your warzone-data-path. This is still experimental and we are gradually
experimental and we are gradually making this more usable. making this more usable.
Warzone reads the following two playlists (in the order they are mentioned) and Warzone reads the following two playlists (in the order they are mentioned) and
the first playlist found will be used: the first playlist found will be used:
@ -119,23 +178,29 @@ the first playlist found will be used:
* Warzone-directory in your personal directory: * Warzone-directory in your personal directory:
o for GNU/Linux: ~/.warzone2100/music/music.wpl o for GNU/Linux: ~/.warzone2100/music/music.wpl
o for Windows: ~/My Documents/Warzone 2100/music/music.wpl o for Windows: ~/My Documents/Warzone 2100/music/music.wpl
o for Mac OS X: ~/Library/Application Support/Warzone 2100/music/music.wpl
* Warzone-install-path: * Warzone-install-path:
o <whereverwarzoneisinstalled>/music/music.wpl o <whereverwarzoneisinstalled>/music/music.wpl
Using the playlist Using the playlist
****************** ******************
The playlist contains two sections, [game] and [menu]. For each section you can The playlist contains two sections, [game] and [menu]. For each section you can
define a list of songs you want to played in-game. Supported file-formats are define a list of songs you want to be played in-game. The only supported file-
OGG and MP3 as long as all necessary libraries are installed. format is Ogg/Vorbis as long as all necessary libraries are installed.
With "shuffle=yes" you specify that you want the songs to played in random "shuffle=yes" specifies that you want the songs to played in random order. You
order. You need to set this for each section individually. need to set this for each section individually.
Using "path=." you specify that the following files are found in the folder the "path=." specifies that the following files are found in the folder the playlist
playlist was found. If you do not specify a path all file-names have to be given was found. If you do not specify a path all file-names have to be given with
with "absolute" path. This "absolute" path is still relative to your "absolute" path. This "absolute" path is still relative to your warzone-data-
warzone-data-dir. All file-names should be lower-case. However file-names have dir. File-names have to match those in the file-system and you can not specify
to match those in the file-system. files outside of the warzone-data-dir.
Note: Since we are using PhysFS we recommend you to use only Latin letters in
directory and file-names (more exactly this means: A to Z, a to z, 0 to 9, _-+
and space). You will receive the following error (running with --debug sound) if
"bad" characters are used: Failed opening [[PATH TO FILE]]: Insecure filename.
This example shows how a playlist-file could look like: This example shows how a playlist-file could look like:
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -153,6 +218,9 @@ path=.
neos_symphonie_du_vide.ogg neos_symphonie_du_vide.ogg
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Music replay may be choppy, so you may want to use an external player for your
music instead.
3.4 Multiplaying via internet 3.4 Multiplaying via internet
----------------------------- -----------------------------
There are two methods to start a multiplayer-game via internet: using the host's There are two methods to start a multiplayer-game via internet: using the host's
@ -181,7 +249,13 @@ enter "lobby.wz2100.net" when prompted to enter the host's IP or change the
entry in the config-file back. You will have to restart Warzone 2100 in order entry in the config-file back. You will have to restart Warzone 2100 in order
for config-changes to take effect. for config-changes to take effect.
4. Important hotkeys 4. Cheats
=========
5. Debug-keys
=============
6. Important hotkeys
==================== ====================
Hotkey Effect Hotkey Effect
Ctrl + Tab Toggle display of terrain in map Ctrl + Tab Toggle display of terrain in map
@ -192,7 +266,7 @@ Alt + S Toggle shadows
Shift + Backspace Allow/disallow usage of cheats Shift + Backspace Allow/disallow usage of cheats
Ctrl + O Display debug-menu Ctrl + O Display debug-menu
5. Additional resources 7. Additional resources
======================= =======================
Homepage of the Warzone Resurrection Project (English): Homepage of the Warzone Resurrection Project (English):
http://wz2100.net/ http://wz2100.net/
@ -207,4 +281,4 @@ Warzone2100.de (German):
http://warzone2100.de/ http://warzone2100.de/
AUTHOR: Kreuvf (kreuvf@warzone2100.de) AUTHOR: Kreuvf (kreuvf@warzone2100.de)
LAST UPDATE: 2008/06/04 LAST UPDATE: 2008/06/06

View File

@ -33,6 +33,8 @@
<li><a href="#multiplay">Multiplaying via internet</a></li> <li><a href="#multiplay">Multiplaying via internet</a></li>
</ul> </ul>
</li> </li>
<li><a href="#cheats">Cheats</a></li>
<li><a href="#debugkeys">Debug-keys</a></li>
<li><a href="#hotkeys">Important hotkeys</a></li> <li><a href="#hotkeys">Important hotkeys</a></li>
<li><a href="#furtherinfo">Additional resources</a></li> <li><a href="#furtherinfo">Additional resources</a></li>
</ul> </ul>
@ -76,68 +78,106 @@
<h2 id="configuration">Configuration</h2> <h2 id="configuration">Configuration</h2>
<h3 id="configfile">WZ-dir and configuration file</h3> <h3 id="configfile">WZ-dir and configuration file</h3>
<p>Warzone saves your configuration data in a file named "config". Where this file is located depends on your operating system.</p> <p>Warzone saves your configuration data in a file named "config". The location of this file depends on the operating system.</p>
<h4>Warzone-dir under GNU/Linux</h4> <h4>Warzone-dir under GNU/Linux</h4>
<p>It can be found in your home-directory and is called ".warzone2100". The leading dot indicates that it is a hidden folder so depending on your configuration you may not be able to see it. However, you can still access it by typing the path into your address-bar.</p> <p>It can be found in your home-directory and is called ".warzone2100". The leading dot indicates that it is a hidden folder so depending on your configuration you may not be able to see it. However, you can still access it by typing the path into your address-bar.</p>
<h4>Warzone-dir under Windows</h4> <h4>Warzone-dir under Windows</h4>
<p>The folder is called "Warzone 2100" and is located in "My Documents".</p> <p>The folder is called "Warzone 2100" and is located in "My Documents".</p>
<h4>Warzone-dir under Mac OS X</h4>
<p>The folder "Warzone 2100" can be found in your home-directory at: ~/Library/Application Support/</p>
<h3 id="cmdline">Command-line options</h3> <h3 id="cmdline">Command-line options</h3>
<p>Additionally to the configuration-file Warzone can be started with different parameters.</p> <p>Additionally to the configuration-file Warzone 2100 can be started with different options and arguments.</p>
<p>Note: This parameters all have two dashes (--), not one dash only (-). Trying to use the parameters with one dash only will not work.</p> <p>Notes: These options all have two dashes (--), not one dash only (-). Trying to use the options with one dash only will not work. The game will display a notice when trying to use invalid command-line options. Arguments that need paths need them in the form they are used on the operating system.</p>
<table> <table>
<tr> <tr>
<th>Parameter</th> <th>Option (<em>with arguments</em>)</th>
<th>Effect</th> <th>Effect</th>
</tr> </tr>
<tr> <tr>
<td>--fullscreen</td> <td>--fullscreen</td>
<td>play in fullscreen-mode</td> <td>Starts the game in fullscreen-mode</td>
</tr> </tr>
<tr> <tr>
<td>--window</td> <td>--window</td>
<td>play in windowed mode</td> <td>Starts the game in windowed mode</td>
</tr> </tr>
<tr> <tr>
<td>--resolution WIDTHxHEIGHT</td> <td>--resolution <em>WIDTHxHEIGHT</em></td>
<td>sets the size of the viewport, usable with fullscreen and windowed</td> <td>Sets the resolution Warzone 2100 will use; usable for fullscreen mode and windowed mode</td>
</tr>
<tr>
<td>--datadir DIR</td>
<td>sets the default data-dir to DIR</td>
</tr> </tr>
<tr> <tr>
<td>--shadows</td> <td>--shadows</td>
<td>enables shadows</td> <td>Enables shadows</td>
</tr> </tr>
<tr> <tr>
<td>--noshadows</td> <td>--noshadows</td>
<td>disables shadows</td> <td>Disables shadows</td>
</tr> </tr>
<tr> <tr>
<td>--sound</td> <td>--sound</td>
<td>enables sound</td> <td>Enables sound</td>
</tr> </tr>
<tr> <tr>
<td>--nosound</td> <td>--nosound</td>
<td>disables sound</td> <td>Disables sound</td>
</tr>
<tr>
<td>--datadir <em>path</em></td>
<td>Sets the data-directory to the path specified</td>
</tr>
<tr>
<td>--configdir <em>path</em></td>
<td>Sets the configuration-directory to the path specified</td>
</tr>
<tr>
<td>--savegame <em>name</em></td>
<td>Loads a saved game</td>
</tr> </tr>
<tr> <tr>
<td>--cheat</td> <td>--cheat</td>
<td>enables the usage of cheats and debug-keys</td> <td>Enables the usage of cheats and debug-keys, see <a href="#cheats" title="Cheats">cheats</a> and <a href="#debugkeys" title="Debug-keys">debug-keys</a></td>
</tr>
<tr>
<td>--help</td>
<td>Outputs a help message and exits; only useful when run from command-line</td>
</tr>
<tr>
<td>--debug <em>option</em></td>
<td>Shows debug information; <em>option</em> can be any of the following: all, main, sound, video, wz, 3d, texture, net, memory, error, script. If you want more than one option, you will have to use another --debug. The option "all" contains every other option.</td>
</tr>
<tr>
<td>--debugfile <em>file</em></td>
<td>Directs debug output to the specified file.</td>
</tr>
<tr>
<td>--version</td>
<td>Outputs the Warzone 2100 version and exits</td>
</tr>
<tr>
<td>--mod_ca <em>mod-file</em></td>
<td>Enables the specified campaign mod. You have to specify the full name of the mod-file.</td>
</tr>
<tr>
<td>--mod_mp <em>mod-file</em></td>
<td>Enables the specified multiplayer mod. You have to specify the full name of the mod-file.</td>
</tr>
<tr>
<td>--mod <em>mod-file</em></td>
<td>Enables the specified mod globally - for campaign and multiplayer. You have to specify the full name of the mod-file. Global mods are only useful when things are changed that affect both, campaign and multiplayer.</td>
</tr> </tr>
</table> </table>
<p>Note: All mentioned command-line parameters except --datadir change the appropriate value in your config-file. Starting warzone by double-clicking the executable/binary will then start the game with the settings used last time. So don't wonder, if there is no sound, when you started warzone with --nosound last time.</p> <p>Note: Some options have corresponding entries in the configuration-file and will persist from one start of Warzone 2100 to the next. For example starting the game with --nosound only once will silence it as long as you do not start it with --sound or change the corresponding value in the configuration file. <a href="http://wiki.wz2100.net/command_line_options" title="Command Line Options for Warzone 2100" hreflang="en">Further information on command-line options</a> can be found at the <a href="http://wiki.wz2100.net/" title="Wiki for Warzone 2100" hreflang="en">Wiki of the Warzone 2100 Resurrection Project</a>.</p>
<p>Note: This list is not complete. An extended list and <a href="http://wiki.wz2100.net/command_line_options" title="Command Line Options for Warzone 2100" hreflang="en">further information on command-line options</a> can be found at the <a href="http://wiki.wz2100.net/" title="Wiki for Warzone 2100" hreflang="en">Wiki of Warzone Resurrection Project</a>.</p>
<h3 id="music">Music</h3> <h3 id="music">Music</h3>
<p>As the original game music is part of the data that was not liberated, music is reintroduced in a different way. A playlist-system is used that can point to any *.ogg or *.mp3-file in your warzone-data-path. This is still experimental and we are gradually making this more usable.</p> <p>As the original game music is part of the data that was not liberated, music is reintroduced in a different way. A playlist-system is used that can point to any *.ogg in your warzone-data-path. This is still experimental and we are gradually making this more usable.</p>
<p>Warzone reads the following two playlists (in the order they are mentioned) and the first playlist found will be used:</p> <p>Warzone reads the following two playlists (in the order they are mentioned) and the first playlist found will be used:</p>
<ul> <ul>
<li>Warzone-directory in your personal directory: <li>Warzone-directory in your personal directory:
<ul> <ul>
<li>for GNU/Linux: ~/.warzone2100/music/music.wpl</li> <li>for GNU/Linux: ~/.warzone2100/music/music.wpl</li>
<li>for Windows: ~/My Documents/Warzone 2100/music/music.wpl</li> <li>for Windows: ~/My Documents/Warzone 2100/music/music.wpl</li>
<li>for Mac OS X: ~/Library/Application Support/Warzone 2100/music/music.wpl</li>
</ul> </ul>
</li> </li>
<li>Warzone-install-path: <li>Warzone-install-path:
@ -147,9 +187,10 @@
</li> </li>
</ul> </ul>
<h4>Using the playlist</h4> <h4>Using the playlist</h4>
<p>The playlist contains two sections, [game] and [menu]. For each section you can define a list of songs you want to be played in-game. Supported file-formats are OGG and MP3 as long as all necessary libraries are installed.</p> <p>The playlist contains two sections, [game] and [menu]. For each section you can define a list of songs you want to be played in-game. The only supported file-format is Ogg/Vorbis as long as all necessary libraries are installed.</p>
<p>With "shuffle=yes" you specify that you want the songs to played in random order. You need to set this for each section individually.</p> <p>"shuffle=yes" specifies that you want the songs to played in random order. You need to set this for each section individually.</p>
<p>Using "path=." you specify that the following files are found in the folder the playlist was found. If you do not specify a path all file-names have to be given with "absolute" path. This "absolute" path is still relative to your warzone-data-dir. File-names have to match those in the file-system and you can not specify files outside of the warzone-data-dir.</p> <p>"path=." specifies that the following files are found in the folder the playlist was found. If you do not specify a path all file-names have to be given with "absolute" path. This "absolute" path is still relative to your warzone-data-dir. File-names have to match those in the file-system and you can not specify files outside of the warzone-data-dir.</p>
<p>Note: Since we are using PhysFS we recommend you to use only Latin letters in directory and file-names (more exactly this means: A to Z, a to z, 0 to 9, _-+ and space). You will receive the following error (running with --debug sound) if "bad" characters are used: Failed opening [[PATH TO FILE]]: Insecure filename.</p>
<p>This example shows how a playlist-file could look like:</p> <p>This example shows how a playlist-file could look like:</p>
<pre> <pre>
[game] [game]
@ -165,18 +206,33 @@ neos_indy.ogg
path=. path=.
neos_symphonie_du_vide.ogg neos_symphonie_du_vide.ogg
</pre> </pre>
<p>Music replay may be choppy, so you may want to use an external player for your music instead.</p>
<h3 id="multiplay">Multiplaying via internet</h3> <h3 id="multiplay">Multiplaying via internet</h3>
<p>There are two methods to start a multiplayer-game via internet: using the host's IP or using the lobby-server. Make sure to be able to communicate on TCP-ports 9998 and 9999.</p> <p>There are two methods to start a multiplayer-game via internet: using the host's IP or using the lobby-server. For both you should sure to be able to communicate on TCP-ports 9998 and 9999.</p>
<p>You can choose whether to connect via Lobby or IP:</p> <p>You can choose whether to connect via Lobby or IP:</p>
<ul> <ul>
<li>If you choose IP, Warzone 2100 asks you for the ip-address of the host and will try to connect to that IP.</li> <li>If you choose IP, Warzone 2100 asks you for the IP-address of the host and will try to connect to that IP.</li>
<li>If you choose Lobby, Warzone 2100 will connect to the lobby server, as long as the lobby-server-address in your config-file has not been changed.</li> <li>If you choose Lobby, Warzone 2100 will connect to the lobby server, as long as the lobby-server-address in your configuration file has not been changed.</li>
</ul> </ul>
<p>You will see a list of games from which you can select one.</p> <p>You will see a list of games from which you can select one.</p>
<p>You can kick unwanted players out of not-yet-started game by clicking left on them while holding the right mouse button.</p> <p>You can kick unwanted players out of not-yet-started games by clicking left on them while holding the right mouse button.</p>
<p>When you are hosting a game it will automatically be listed on the lobby-server. If you do not want your games to be listed on the lobby-server, you have to change the entry "masterserver_name=lobby.wz2100.net" in your config to something invalid as "nomasterserverplease".</p> <p>When you are hosting a game it will automatically be listed on the lobby server. If you do not want your games to be listed on the lobby-server, you have to change the entry "masterserver_name=lobby.wz2100.net" in your configuration file to something invalid as "nomasterserverplease".</p>
<p>If you then want to see the games that are listed on the lobby-server you may enter "lobby.wz2100.net" when prompted to enter the host's IP or change the entry in the config-file back. You will have to restart Warzone 2100 in order for config-changes to take effect.</p> <p>If you then want to see the games that are listed on the lobby server you may enter "lobby.wz2100.net" when prompted to enter the host's IP or change the entry in the configuration file back. You will have to restart Warzone 2100 in order for configuration changes to take effect.</p>
<div class="rt">
<p><a href="#top">back to top</a></p>
</div>
<hr/>
<h2 id="cheats">Cheats</h2>
<div class="rt">
<p><a href="#top">back to top</a></p>
</div>
<hr/>
<h2 id="debugkeys">Debug-keys</h2>
<div class="rt"> <div class="rt">
<p><a href="#top">back to top</a></p> <p><a href="#top">back to top</a></p>
</div> </div>
@ -239,7 +295,7 @@ neos_symphonie_du_vide.ogg
<div id="fileinfo"> <div id="fileinfo">
<ul> <ul>
<li>AUTHOR: <a href="mailto:kreuvf@warzone2100.de">Kreuvf</a></li> <li>AUTHOR: <a href="mailto:kreuvf@warzone2100.de">Kreuvf</a></li>
<li>LAST UPDATE: 2008/06/04</li> <li>LAST UPDATE: 2008/06/06</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
/* /*
AUTHOR: Steven "Kreuvf" Koenig AUTHOR: Steven "Kreuvf" Koenig
CONTACT: webmaster@kreuvf.de or kreuvf@warzone2100.de CONTACT: webmaster@kreuvf.de or kreuvf@warzone2100.de
LAST UPDATE: 2008/05/25 LAST UPDATE: 2008/06/05
DESCRIPTION: CSS-file for print-look of Warzone 2100-Readme DESCRIPTION: CSS-file for print-look of Warzone 2100-Readme
*/ */
@ -56,6 +56,10 @@ pre {
margin: 4pt 4pt 4pt 4pt; margin: 4pt 4pt 4pt 4pt;
} }
em {
font-style: italic;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
} }

View File

@ -1,7 +1,7 @@
/* /*
AUTHOR: Steven "Kreuvf" Koenig AUTHOR: Steven "Kreuvf" Koenig
CONTACT: webmaster@kreuvf.de or kreuvf@warzone2100.de CONTACT: webmaster@kreuvf.de or kreuvf@warzone2100.de
LAST UPDATE: 2008/05/25 LAST UPDATE: 2008/06/05
DESCRIPTION: CSS-file for screen-look of Warzone 2100-Readme DESCRIPTION: CSS-file for screen-look of Warzone 2100-Readme
*/ */
@ -49,6 +49,10 @@ pre {
margin: 0.2em 0.2em 0.2em 0.2em; margin: 0.2em 0.2em 0.2em 0.2em;
} }
em {
font-style: italic;
}
table { table {
border-collapse: collapse; border-collapse: collapse;
} }