Difference between revisions of "Hosting a game"

From Bitfighter
(Specifying Levels)
Line 13: Line 13:
  
 
Note that the volume of the alerts can be controlled, or disabled altogether, in the bitfighter.ini file.  You'll need to restart your dedicated server for the new settings to take effect.
 
Note that the volume of the alerts can be controlled, or disabled altogether, in the bitfighter.ini file.  You'll need to restart your dedicated server for the new settings to take effect.
 
===Specifying Levels===
 
  
 
===Specifying Levels===
 
===Specifying Levels===

Revision as of 08:29, 21 February 2009

The most typical way of hosting a Bitfighter game is to simply run Bitfighter normally, and select Host Game from the main options menu. This will start combined Bitfighter server and client instance. This is ideal for short-term hosting of games, but consumes more resources if you are not actively playing. Also, a normal game window will be open while the game is running. If you quit the game, you will also shut down the host, causing any other players to be disconnected.

For running a game host long-term, or where you may be dropping into and out of the game, a dedicated server may be the better option.

Dedicated server

Bitfighter can be run in Dedicated Server mode, which creates a background process that provides a game server others can play on.

To start a dedicated server, run Bitfighter with the -dedicated option. You can do this from a cmd (Windows) or shell window (Mac/Linux), or by creating a shortcut (Windows) specifying that bitfighter.exe be run with the -dedicated option.

When running in dedicated mode, the program window will disappear, and the server will continue to run. The server has been designed to have low resource consumption when no players. The game will also make a sound indicating that a player has joined or left the game. Therefore, it is possible for you to run a server unobtrusively in the background, and be alerted when a player joins the game so you start playing too.

You can easily join a game on a local dedicated server by running a second Bitfighter instance, and choosing the Join Game option from the main menu.

Note that the volume of the alerts can be controlled, or disabled altogether, in the bitfighter.ini file. You'll need to restart your dedicated server for the new settings to take effect.

Specifying Levels

The following applies to Bitfighter 011 and above:

Levels can be specified in several ways. When you run Bitfighter out-of-the-box, it will attempt to load all levels in the levels folder contained in your Bitfighter installation directory. You can add additional levels to this folder if you wish, and they will automatically be loaded the next time you restart the game.

There are several command line parameters and INI settings that can change this behavior. You can specify an alternate level folder in your INI file with the LevelDir entry. This can point to any folder on your machine, either as an absolute path, or a path relative to the Bitfighter install folder.

You can also specify a folder on the command line using the -leveldir parameter. Bitfighter will first look to see if you specified a folder that exists somewhere on your machine. If it cannot find that folder, it assumes you are specifying a subdirectory under the levels directory in your game install folder (or an alternate location specified in the INI). Using this parameter, you could maintain several collections of levels in subfolders under your main levels directory, then select different collections at runtime with the -leveldir parameter.

If you wish to specify specific levels in your level folder (rather than loading them all), you can do so either via the INI file (in the Levels section), or on the command line, using the -levels parameter. Note that the .level suffix is optional here. Note also that if you list individual levels in your INI file, Bitfighter will not attempt to load any unnamed levels you place in your levels folder.

You can override the list of levels specified in the INI file with the -alllevels command line parameter. That will tell Bitfighter to load all levels it finds in the specified levels folder, and to ignore any specific levels listed in the INI file.

See Command line parameters for detailed syntax.