Installing Server

From Goldeneye: Source

Jump to: navigation, search

Contents

Installing (Windows)

Downloading

First of all you need the HLDS Update Tool. This is what we use to update/download the server. You will also need the Goldeneye Source dedicated server files from the list of mirrors supplied below.

Installing

  • First we need to download the SDS (Source Dedicated Server). To download we open up hldsupdatetool.exe and download the tool to an arbitrary location on your machine, for example:
C:\HL2DS
  • Start -> Run -> type "cmd" -> hit ok -> then type "cd \location" Location is where the SDS was installed. Default is \HLServer If you saved it to the C Drive. If you followed the above directions it would look like this "cd \HL2DS".
  • Now type "hldsupdatetool" in the command prompt and hit enter, then hit Ctrl-C.
  • When you have finished installing the update tool type:
hldsupdatetool.exe -command update -game "hl2mp" -dir C:\HL2DS  
  • If that doesnt work or your stuck or having trouble getting hl2mp then you can go here for a more indepth tutorial on how to get it.

Tip: Make sure you replace C:\HL2DS with your install path if it's different.

This will download all files necessary to host a Half-Life 2 Deathmatch server (and GE:S). And remember to "Go get yourself a cup of coffee." as Valve said, this will take some time.

  • Install the Goldeneye Source Dedicated Server files to "C:\HL2DS\gesource" (use your own install path).
  • Create a shortcut of srcds.exe and place it where you want then go to properties of the shortcut. Add the following to the end of the shortcut target:
-game gesource +maxplayers 16 -port 27015 -console +map ge_caves -autoupdate

It should look like this:

srcds.exe  -game gesource +maxplayers 16 -port 27015 -console +map ge_caves -autoupdate

Tip: You can adjust your port and maxplayers via the shortcut or the server.cfg file.

Correction/Update: maxplayers is known NOT to work in server.cfg with the beta

Configuration

Next, edit your mapcycle.txt and server.cfg files to your liking.
Warning: When editing your server.cfg remember to change your rcon_password and hostname directives!

rcon_password "pass"  //Your rcon password
hostname "Servername" //The name of your server

These are the most important settings to change, there are more in the cfg so test around what is best for you.

Starting

You should now be able to double-click your server shortcut, which will start up your dedicated server.

Installing (Linux)

Currently all GE:S Beta Linux servers are experiencing a bug that will cause them to crash about every 10 minutes if there's players in them. The only known workaround is here.

Setting up the initial directories and permissions

In this setup I have a CentOS 4 machine, and full root access. I am also assuming you use SSH, if your not remotely controlling, just skip that detail. Also to extract the hldsupdatetool, you need to have the ncompress rpm installed (as root: yum install ncompress).

  • As 'root' create a new user useradd -g users -m -s /bin/bash -d /home/myuser myuser
  • Set this new users password: passwd myuser
  • SSH in, you should be at your home users directory. mkdir hlds && cd hlds
  • download the hldsupdatetool, wget http://storefront.steampowered.com/download/hldsupdatetool.bin
  • chmod +x hldsupdatetool.bin
  • ./hldsupdatetool.bin - 'yes' you now have a steam executable
Note: if you receive a 'uncompress: command not found' message it means your server does not 
have uncompress installed. You have two options to easily work around this, try the following 
while logged-in as root:
Code:

ln -s /bin/gunzip /bin/uncompress

Then try to run ./hldsupdatetool.bin again. If that does not work, or you do not have root 
privileges you can download the binary file we have available:
Code:

wget http://www.cstrike-planet.com/dls/steam
  • ./steam -command update -game hl2mp -dir ./2
  • install gesource into ~/hlds/2/gesource like you would any other mod.
  • vi gesource hit i for insert, then paste the script below(shift-ins), after chmod +x gesource
#!/bin/bash
cd ./2
./srcds_run -console -game gesource +map ge_facility -maxplayers 16 
#if you have multiple IPs, or need to run from another port,  -ip x.x.x.x -port 27015
#You can put this at the end of the run command to send stdout and stderr into /dev/null (basically sends all output into no-mans-land).
#>/dev/null 2>&1 &

Optional

#!/bin/bash
#file: update
./steam -command update -game $1 -dir ./2

#!/bin/bash
#file: goldeneye
cd ./2
./srcds_run -console -game gesource +map ge_facility -maxplayers 16

#!/bin/bash
#file:  loop
mydir=`pwd`
while true; do
  cd $mydir
  ./update hl2mp >/dev/null 2>&1
  ./gesource >/dev/null 2>&1
done

End Result

  • User to login to and run your server.
  • ~/hlds/1 <- Half-Life 1 install (if desired)
  • ~/hlds/2 <- Half-Life 2 install
  • ~/hlds/* <- scripts to help you run your server.

GE:S Server Cvars

See Server Commands

List of mirrors

FOR BETA MIRRORS CLICK HERE

Personal tools