Skip to content

(Second) Server Setup

El Diablo edited this page Feb 18, 2023 · 23 revisions

Jump to Server Requirements:

Linux Server startup script examples:

I highly recommend using "screen" Linux application.

apt-get install screen

  • ctrl + A then press D to keep server running in background
  • ctrl + A then press ESC to scroll up or down or page up or page down while in screen ... press ESC twice to exit scrolling
  • ctrl + c to exit screen and shutdown server, but it's recommended you type quit in the server first, what for it to say in 10 seconds it'll restart server, then press ctrl + c
  • if you want to resume a session in screen type screen -r
  • if you have more than one screen running, type screen -ls to see a list
  • if you want to go to a specific screen type screen -r

Make sure you get and change the +sv_setsteamaccount for your own account! The numbers I gave you are fake. Also change your +ip and directories for your server. These are examples scripts that I used to get the server going.

remember chmod ? it will help make your scripts executable or was it chown? oh well.

chmod +x startCSS.sh

if you need a log file from screen: -Logfile screen.txt -mSL

startCSS.sh:

#!/bin/sh

screen -mS css /home/steamgameserver/hlserver/css/srcds_run -game cstrike -secure -console -usercon +map de_dust +ip 197.141.121.10 +port 27015 -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/CSSupdate

CSSupdate:

force_install_dir /home/steamgameserver/hlserver/css

login anonymous

app_update 232330

validate

quit

startCSGO.sh:

#!/bin/sh

screen -mS csgo /home/steamgameserver/hlserver/csgo/srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +ip 197.141.121.10 +port 27015 -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/CSGOupdate

CSGOupdate:

force_install_dir /home/steamgameserver/hlserver/csgo

login anonymous

app_update 740

validate

quit

startTF2.sh:

#!/bin/sh

screen -mS teamfortress2 /home/steamgameserver/hlserver/tf2/srcds_run +ip 197.141.121.10 +port 27015 -autoupdate +sv_pure 0 +map koth_nucleus +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/update

update:

force_install_dir /home/steamgameserver/hlserver/tf2

login anonymous

app_update 232250

validate

quit

startFOF.sh:

#!/bin/sh

screen -mS FOF /home/steamgameserver/hlserver/fof/srcds_run +ip 197.141.121.10 +port 27015 -console -game fof -autoupdate +sv_pure 0 +map fof_robertlee_12 +maxplayers 24 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/updateFOF

updateFOF:

force_install_dir /home/steamgameserver/hlserver/fof

login anonymous

app_update 295230

validate

quit

Server Requirements:

Download and put on your server:

Steps in Order:

MetaMod Installation

SourceMod Installation

  1. MetaMod Stable Latest: https://www.metamodsource.net/downloads.php?branch=stable
  2. SourceMod Stable Latest: https://www.sourcemod.net/downloads.php?branch=stable
  3. Download Plugin for your server: https://forums.alliedmods.net/showpost.php?p=2430764&postcount=1

LINUX EXAMPLE:

EXAMPLE DIRECTORY /home/steamgameserver/hlserver/fof/fof

make sure your in a directory that contains these 3 directories:

  • bin
  • cfg
  • maps

Steps in Order:

  1. wget https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1148-linux.tar.gz
  2. tar xvf mmsource-1.11.0-git1148-linux.tar.gz
  3. wget https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6928-linux.tar.gz
  4. tar xvf sourcemod-1.11.0-git6928-linux.tar.gz
  5. wget "https://forums.alliedmods.net/attachment.php?attachmentid=199419&d=1675454483" -O war3source-evo.zip
  6. unzip -o war3source-evo.zip

For War3Source-EVO:

You can find a compressed zip here: https://forums.alliedmods.net/showpost.php?p=2430764&postcount=1 at the very bottom.

Do NOT extract inside the addons folder.

In the directory that you extract the plugins should have these sub directories (and other directories depending on game):

  • addons
  • bin
  • cfg
  • maps

Make sure you:

  • use my version of war3source.ini and war3sourceMVM.ini in the configs section.
  • use war3source_tf2.cfg for TF2 and war3source_csgo.cfg for CSGO in the cfg section.
  • use only my version of the translation files.
  • install from my version of the gamedata
  • use and modify my version of the war3source configuration (cfg) files
  • download and install steamtools extension: https://forums.alliedmods.net/showthread.php?t=236206

NOTE: steamtools extension is included in the War3Source-EVO Github and should be included in any future download of the plugins.

Notes

see https://github.com/War3Evo/War3Source-EVO/wiki/TF2-File-Directory-(addons-folder) for an idea of possible files you might be missing. Not all the files in there are required, but gives you a basic idea where things go.

Linux shell script(s) example(s)

Requires Linux screen application

Basic commands:

To resume a screen:

  • screen -r

To exit a screen while keeping it in background:

  • CTRL + A, then D

To scroll back:

  • CTRL + A, then ESC
  • Then use Page up or Page down or Arrow Up or Arrow Down

To kill a screen (while using screen)

  • CTRL + C

To install screen

  • sudo apt-get install screen

Changes you need to make:

  • sv_setsteamaccount
  • ip
  • port
  • map
  • maxplayers
  • steamcmd_script

startFOF.sh

  • #!/bin/sh
  • screen -dmS fof /home/steamgameserver/hlserver/fof/srcds_run +ip 1.2.3.4 +port 27015 -autoupdate +sv_pure 0 +map fof_nest.bsp +maxplayers 24 +exec server.cfg +sv_setsteamaccount B834BA92JD9AK9RF392JRF9FVJ392KRF -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/updateFOF

/home/steamgameserver/hlserver/steamcmd/updateFOF is a text file that contains server update information

example script:

FOF

  • force_install_dir /home/steamgameserver/hlserver/fof
  • login anonymous
  • app_update 295230
  • validate
  • quit

Wiki Link - (Third)-Server-Configuration

Wiki Link - (Third)-Server-Configuration