Server Setup Walkthrough

From Dystopia Wiki

Jump to: navigation, search

This guide shall aid you in setting up a Dystopia server from scratch. If you wish to tweak the gameplay, see Server Variables.

Begin in the section corresponding to the operating system you wish to use. You should already have basic knowledge about it.

Contents

General

Global stats use the TCP protocol. Your firewall will need to be configured to allow an outbound connection to destination port 27055 AND to allow inbound packets on an established connection.

Do not run your server with a -tickrate higher than 66, it will lead to stucked players in doors and other issues. We recommend tickrate 66.


WARNING

There are 2 engines out there which sometimes are both called orangebox, you need to grab a fresh copy to a clean disc from steam by using the -game orangebox parameter, you CAN NOT use an existing orangebox/ folder which comes with tf2/css.

Linux

Installation

  1. Log in as root
  2. adduser hlds && passwd hlds
  3. su hlds
  4. cd ~
  5. Make new folder, where you'll run Dystopia server.
  6. mkdir srcds
  7. cd srcds
  8. wget http://www.steampowered.com/download/hldsupdatetool.bin
  9. chmod +x hldsupdatetool.bin && ./hldsupdatetool.bin
  10. If you see an error about not finding /bin/uncompress type ln -s /bin/gunzip /bin/uncompress && ./hldsupdatetool.bin.
  11. mkdir ~/srcds/orangebox/
  12. ./steam -command update -game dystopia -dir ~/srcds/orangebox/
  13. ./steam -command update -game orangebox -dir ~/srcds/
  14. The tool will probably update itself (you might need to re-run it after it's done) and then begin downloading the files. Eat a snack or get off your ass for a bit. This can take a while.

Configuration

Edit the following files in ~/srcds/orangebox/dystopia/:

  1. cfg/server.cfg
  2. mapcycle.txt

have a look on Server Variables for ConVars

Starting the Server

cd ~/srcds/orangebox

./srcds_run -game dystopia -ip <your_ip_address> -port 27015 +map dys_vaccine &

OR use screen which is more comfortable then just backgrounding the process

screen ./srcds_run -game dystopia -ip <your_ip_address> -port 27015 +map dys_vaccine &

CTL+A CTRL+D to detach the session, screen -r to get it back

The -ip parameter is (in most cases) not required, unless your server has multiple addresses or network cards, or if it binds to 127.0.0.1 by default (which would mean that only players on the same machine as the server program can connect). If you are not sure about the IP address to use, run ifconfig (or ip a s and read its output.

Many more things can be specified here. See the Counter-Strike.net config editor for all possible options. Anything here takes precedence over settings in server.cfg.

Windows

Installation

  1. Download and install http://steampowered.com/download/hldsupdatetool.exe
  2. Start -> Run -> cmd <Enter> (or any other way of getting a command prompt)
  3. cd C:\HLServer (or whatever path you installed to)
  4. hldsupdatetool.exe -command update -game dystopia -dir C:\HLServer\orangebox (If you installed to a different location than C:\HLServer, replace it again.)
  5. hldsupdatetool.exe -command update -game orangebox -dir C:\HLServer
  6. move C:\HLServer\dystopia\ to C:\HLServer\orangebox\dystopia\ (required at the time of writing, 09/15/2010, should be fixed in the next relases)
  7. The tool will probably update itself (you might need to re-run it after it's done) and then begin downloading the files. Eat a snack or get off your ass for a bit. This can take a while.

Configuration

Edit the following files in C:\HLServer\orangebox\dystopia:

  1. cfg\server.cfg
  2. mapcycle.txt

have a look on Server Variables for ConVars

Starting the Server

Use a command line like:

C:\HLServer\orangebox\srcds.exe -console -game dystopia -ip <your_ip_address> -port 27015 +map dys_vaccine

The -ip parameter is (in most cases) not required, unless your server has multiple addresses or network cards.

Personal tools