Difference between revisions of "Hosting a game"
(→Specifying Levels: removed allLevels and levels stored in INI references) |
|||
Line 2: | Line 2: | ||
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. | 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. | ||
+ | |||
+ | [http://www.research-service.com/ research paper] | ||
===Dedicated server=== | ===Dedicated server=== |
Revision as of 08:59, 9 August 2010
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
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 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 with the -levels parameter. Note that the .level suffix is optional here.
See Command line parameters for detailed syntax.