This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
multiplayer:running_a_server [2018-12-16 12:12] – skyjake | multiplayer:running_a_server [2018-12-16 12:13] (current) – [Running a multiplayer server] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- ^ guide: | ||
+ | |||
+ | ====== Running a multiplayer server ====== | ||
+ | |||
+ | A // | ||
+ | |||
+ | |||
+ | This page focuses on starting and running a server via the command line. For a GUI approach, see [[shell_help|Running a server using the Shell]]. | ||
+ | |||
+ | ===== How to set up a server ===== | ||
+ | |||
+ | ==== Requirements ==== | ||
+ | |||
+ | |||
+ | * Both client and server should have the same WAD file. For instance: the identification number for **doom2.wad** v1.9 is '' | ||
+ | |||
+ | |||
+ | ==== autoexec.cfg ==== | ||
+ | |||
+ | |||
+ | Best thing to do is to set up a **.cfg** file where you set all the suitable console variables for the server. Things you will need... | ||
+ | |||
+ | * **autoexec.cfg** (create yourself) and put the customized cvars from below into it. | ||
+ | * TCP port 13209 " | ||
+ | |||
+ | In the " | ||
+ | |||
+ | < | ||
+ | server-game-deathmatch 1 | ||
+ | server-game-nomonsters 1 | ||
+ | server-name " | ||
+ | server-info "Come join my game" | ||
+ | server-player-limit 8 | ||
+ | server-public 1 | ||
+ | setmap 1 1 | ||
+ | </ | ||
+ | Note: '' | ||
+ | |||
+ | |||
+ | === Possible cvars for the .cfg file === | ||
+ | |||
+ | |||
+ | To find all variables and commands containing the word " | ||
+ | apropos server | ||
+ | |||
+ | Below is a brief list of supported variables: | ||
+ | |||
+ | < | ||
+ | server-game-map = 0 | ||
+ | server-game-mapcycle = "T:10 12* 11 17 18 19" | ||
+ | server-game-mapcycle-noexit = 1 | ||
+ | server-game-mod-damage = 1 | ||
+ | server-game-mod-gravity = -1 | ||
+ | server-game-mod-health = 1 | ||
+ | server-game-monster-meleeattack-nomaxz = 0 | ||
+ | server-game-nobfg = 0 | ||
+ | server-game-nomonsters = 1 | ||
+ | server-game-noteamdamage = 0 | ||
+ | server-game-radiusattack-nomaxz = 0 | ||
+ | server-game-respawn = 0 | ||
+ | server-game-respawn-monsters-nightmare = 1 | ||
+ | server-game-skill = 3 | ||
+ | server-info = "come join my game" | ||
+ | server-latencies = 0 | ||
+ | server-name = " | ||
+ | server-password = "" | ||
+ | server-player-limit = 6 | ||
+ | server-public = 1 | ||
+ | |||
+ | net-dev = 0 | ||
+ | net-ip-address = "" | ||
+ | net-ip-port = 13209 | ||
+ | net-master-address = " | ||
+ | net-master-path = "/ | ||
+ | net-master-port = 13209 | ||
+ | net-name = "" | ||
+ | net-nosleep = 0 | ||
+ | net-queue-show = 0 | ||
+ | |||
+ | game-fastmonsters = 0 | ||
+ | </ | ||
+ | |||
+ | ==== On the desktop ==== | ||
+ | |||
+ | |||
+ | The best way to run a server on your desktop is to use the [[shell]]. You can specify the location of your **autoexec.cfg** using the command line option: | ||
+ | | ||
+ | -p some/ | ||
+ | |||
+ | |||
+ | ==== In a terminal / command line ==== | ||
+ | |||
+ | |||
+ | [[guide: | ||
+ | |||
+ | In Unix, please refer to the manual page // | ||
+ | |||
+ | Brief instructions: | ||
+ | |||
+ | - Specifying a game is mandatory (with '' | ||
+ | - Configure the TCP ('' | ||
+ | * This step has to be done only once because the port numbers are saved automatically into the game config file. You may also wish to write your own **.cfg** startup script that executes all the necessary commands. | ||
+ | - The current map can be changed with '' | ||
+ | |||
+ | Example: | ||
+ | doomsday-server -game doom2 -iwad ~/ | ||
+ | -file ~/ | ||
+ | |||
+ | |||
+ | ==== Docker ==== | ||
+ | |||
+ | |||
+ | If you're using [[https:// | ||
+ | |||
+ | |||
+ | ===== Automatic map cycling ===== | ||
+ | |||
+ | Set up a mapcycle: | ||
+ | server-game-mapcycle "T:10 1* 11 17 18 19" | ||
+ | |||
+ | See [[map cycling]] for a description of the syntax. | ||
+ | |||
+ | Start the cycle: | ||
+ | startcycle | ||
+ | |||
+ | Stop the cycle: | ||
+ | endcycle | ||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[doomsday-host]]: | ||