Absurd Minds

Installing a CS:GO server
Page 1 of 1

Author:  Amaroq [ 13 May 2012 10:55 ]
Post subject:  Installing a CS:GO server

I'm installing a CS:GO server on CentOS 5.8, which requires a couple of work arounds. If you haven't already, you'll want to create a user to install and run the server.

First off, I need to download the steamcmd software. You want to place this in its own directory, not the directory you will put the game. So I created /home/gamer/go/steamcmd.
mkdir /home/gamer/go/steamcmd
You'll also want to create a seperate directory in which to install the dedicated server.
mkdir /home/gamer/go/server1
Download the steamcmd software.
wget http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
Unzip it:
tar xfz steamcmd.tar.gz
Now start the SteamCMD software.
STEAMEXE=steamcmd ./steam.sh
If you get this error:
/home/gamer/go/steamcmd/: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.10
' not found (required by /home/gamer/go/steamcmd)
/home/gamer/go/steamcmd: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9'
not found (required by /home/gamer/go/steamcmd)
CentOS 5 has a problem with this, because it uses older libraries than CS:GO. You can fix this by placing libstdc++.so.6 in some directory of your choice.
libstdc++.so.6.bz2 [309.18 KiB]
Downloaded 1993 times
Then use this command to direct the software to the library:
export LD_LIBRARY_PATH=/the/directory/you/chose
Then re-run the command.

This should load a steam interface.
login anonymous
(NOTE: Occasionally, anonymous logins don't work and you will receive errors. If this happens, I have a steam account I created just for this purpose. I have no games on it and I have steamguard turned off. I would login by using "login username password" instead of "login anonymous".)

Now you'll install the dedicated server software.
force_install_dir /home/gamer/go/server1/
app_update 740 validate
(If you ever want to update your dedicated server, you'll need to do all of the above, except just use "app_update 740", without the validate at the end. "validate" tells it to make sure all of the files are exactly default, where as running the command without "validate" will only download new files.)

Now type quit to exit the steam client.

Go to whatever directory you installed the game in
cd /home/gamer/go/server1
You can now launch the server with your favourite flavor of start up command. For more information, see this thread.
./srcds_linux -game csgo +game_type 0 +game_mode 1 +mapgroup mg_allclassic +map de_dust -ip +port 27017
The available game types and game modes can be seen here.

Check out this thread for more advanced server configuration.

Here is a video showing how to install a CS:GO server as well as Metamod and Sourcemod.

Author:  vov7512 [ 13 May 2012 14:20 ]
Post subject:  Re: Installing a CS:GO server

can not install libstdc++.so

Author:  Amaroq [ 13 May 2012 14:36 ]
Post subject:  Re: Installing a CS:GO server

Why not? What error does it give?

EDIT: Did you download it to your windows computer, unzip it, and then use ftp to put it on your server?

Author:  vov7512 [ 14 May 2012 07:10 ]
Post subject:  Re: Installing a CS:GO server

After the update command(app_update 740 validate) - write error

App state (0x2) unknown, progress: nan (0 / 0)
Error! App '740' state is 0x10102 after update job.

Author:  Amaroq [ 14 May 2012 10:40 ]
Post subject:  Re: Installing a CS:GO server

Are you installing it into a directory where you have write permissions?

Author:  Indi [ 20 Jun 2012 18:17 ]
Post subject:  Re: Installing a CS:GO server


Nice guide, question

at force_install_dir /home/gamer/go/server1/

what is meant to happen?


Author:  Amaroq [ 20 Jun 2012 18:44 ]
Post subject:  Re: Installing a CS:GO server

It tells the steamcmd where to install the server.

So make it

force_install_dir /directory/to/my/server/

Author:  Indi [ 20 Jun 2012 19:21 ]
Post subject:  Re: Installing a CS:GO server

i run that but it doesn't seem to do anything

doesn't put any files in that folder

Author:  Amaroq [ 20 Jun 2012 19:34 ]
Post subject:  Re: Installing a CS:GO server

Do you actually have that directory?

Author:  Indi [ 21 Jun 2012 16:50 ]
Post subject:  Re: Installing a CS:GO server

yes it does exist but doesn't seem to do anything, however it doesn't reject the command :(

Author:  Amaroq [ 21 Jun 2012 17:12 ]
Post subject:  Re: Installing a CS:GO server

Did you do app_update 740 validate next? The force_install_dir just tells the program where to put the files. The app_update 740 validate is the actual installation.

So the whole installation should go like this:
STEAMEXE=steamcmd ./steam.sh
login yourusername yourpassword
force_install_dir /home/gamer/go/server1/
app_update 740 validate

Author:  Indi [ 21 Jun 2012 17:27 ]
Post subject:  Re: Installing a CS:GO server

its got something to do with centos6 not allowing be to chose a full path works if i go ../server1/


but thanks for your help, valves instructions don't quite cut it.

now to configure server.cfg and gamemodes.txt lol

Author:  Amaroq [ 17 Aug 2012 21:43 ]
Post subject:  Re: Installing a CS:GO server

Once you've got the server installed, there are three basic files you need to configure. The first is your gamemodes_server.txt. This is where you put the basic server cvars. (Also take a look at gamemodes.txt - all of the cvars in there are the defaults. You only need to specify non-default values in gamemodes_server.txt). GameModes_Server.txt is located in /<baseserverdirectory>/csgo

Here is my overly detailed gamemodes_server.txt from a demolition server:
// To use this file, rename it to GameModes_Server.txt
// Values here override the default gamemodes.txt 

					"value 			"1"
					"matchmakingvalue"	"competitive"
					"uid"			"12"
					"maxplayers"		"11"

						"hostname"					"[AM] Demolition|absurdminds.net"

						"bot_quota_mode"                                "fill"
                                                "bot_quota"                                     "10"
                                                "bot_defer_to_human_items"                      "1"
                                                "bot_defer_to_human_goals"                      "1"
                                                "bot_difficulty"                                "2"
                                                "bot_dont_shoot"                                "0"
                                                "bot_chatter"                                   "normal"

                                                "cl_playerspraydisable"                         "1"

                                                "mp_friendlyfire"                               "1"
                                                "ff_damage_reduction_grenade"		        "0.85"
                                                "ff_damage_reduction_bullets"         		"0.33"
                                                "ff_damage_reduction_other"                     "0.4"
                                                "ff_damage_reduction_grenade_self"     		"0"

                                                "mp_startmoney"                                 "0"
                                                "mp_maxmoney"                                   "0"
                                                "mp_afterroundmoney"                            "0"
                                                "mp_playercashawards"                           "0"
                                                "mp_teamcashawards"                             "0"

                                                "mp_timelimit"                                  "0"
                                                "mp_roundtime"                                  "1.5"
                                                "mp_freezetime"                                 "6"
                                                "mp_buytime"                                    "0"

                                                "mp_forcecamera"                                "1"                     // Set to 1 for team only sp$
                                                "mp_defuser_allocation"                         "2"                     // 0=none, 1=random, 2=everyone
                                                "mp_death_drop_gun"                             "0"                     // 0=none, 1=best, 2=current$
                                                "mp_death_drop_grenade"                         "0"                     // 0=none, 1=best, 2=current or best
                                                "mp_death_drop_defuser"                         "0"
                                                "mp_match_can_clinch"                           "1"                     // 0=No mercy rule, 1=team can clinc$

                                                "mp_gungameimmunitytime"                        "0"
                                                "mp_ggtr_bomb_respawn_delay"                    "1"
                                                "mp_ggtr_bomb_detonation_bonus"                 "1"
                                                "mp_ggtr_bomb_defuse_bonus"                     "0"
                                                "cl_enable_roundstart_autobuy"                  "0"
                                                "sv_ignoregrenaderadio"                         "1"

                                                "mp_ggtr_bomb_pts_for_upgrade"                  "1"             // Kill points required to upgrade a player'$
                                                "mp_ggtr_bomb_pts_for_he"                       "2"             // Kill points required in a round t$
                                                "mp_ggtr_bomb_pts_for_flash"                    "3"             // Kill points required in a round to get a $
                                                "mp_ggtr_bomb_pts_for_molotov"                  "4"             // Kill points required in a round to get a $

                                                "mp_ggtr_halftime_delay"                        "10.0"  // Number of seconds to delay during half-ti$
                                                "mp_ggtr_rounds_per_half"                       "10"            // Number of rounds to play before/a$
                                                "mp_molotovusedelay"                            "0"
                                                "sv_alltalk"                                    "0"
                                                "sv_deadtalk"                                   "1"
                                                "mp_ggtr_end_round_kill_bonus"                  "0"             // Number of bonus points to award the team $
                                                "bot_autodifficulty_threshold_low"              "-2.0"  // Value between -20.0 and 20.0 (Amount below avg hu$
                                                "bot_autodifficulty_threshold_high"             "0.0"   // Value between -20.0 and 20.0 (Amount above avg hu$
                                                "mp_ggtr_last_weapon_kill_ends_half"   		"0"             // End the half and give a team round point when a p$

                                                "sv_allow_votes"                                "0"             // Voting allowed in this mo$
                                                "sv_arms_race_vote_to_restart_disallowed_after" "0"

						// required defaults
                                                "mp_maxrounds"                                  "0"
                                                "mp_force_pick_time"                            "15"
                                                "spec_freeze_time"                              "5.0"
                                                "spec_freeze_panel_extended_time"	        "0"


					"mapgroupsMP"						// List of mapgroups valid for this game mode
						"mg_demolition"		""

// Map groups
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the 
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
// Then launch the server with '+mapgroup MAPGROUPNAME'
// Example:
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers

		"mg_demolition"									// mapgroup definition
			"name"			"mg_demolition"
				"de_bank"		""
				"de_lake"		""
				"de_safehouse"		""
				"de_sugarcane"		""
				"de_stmarc"		""
				"de_shorttrain"		""
The second important configuration file is the server.cfg. This is where you will specify a few key convars. It is located in /<baseserverdirectory>/csgo/cfg.
hostname "[AM] demolition|absurdminds.net"

rcon_password "xxxx"
sv_password "" //Only set this if you intend to have a private server!

log off

exec banned_user.cfg
exec banned_ip.cfg

bot_difficulty 3

hostport 27016

sv_allow_votes 0

mp_match_end_restart 0

sv_region 0

mp_freezetime 10

sv_allow_lobby_connect_only 1

fps_max 1000
And the last one is the mapcycle.txt. If you have a custom map cycle at all, you need to edit mapcycle.txt. It's in the same directory as the GameModes_Server.txt

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Limited