Absurd Minds

More than 100 years without a motto.
It is currently 24 Nov 2024 12:41

All times are UTC-04:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: 13 May 2012 10:55 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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.
Code:
mkdir /home/gamer/go/steamcmd
You'll also want to create a seperate directory in which to install the dedicated server.
Code:
mkdir /home/gamer/go/server1
Download the steamcmd software.
Code:
wget http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
Unzip it:
Code:
tar xfz steamcmd.tar.gz
Now start the SteamCMD software.
Code:
STEAMEXE=steamcmd ./steam.sh
If you get this error:
Code:
/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.
Attachment:
libstdc++.so.6.bz2 [309.18 KiB]
Downloaded 2585 times
Then use this command to direct the software to the library:
Code:
export LD_LIBRARY_PATH=/the/directory/you/chose
Then re-run the command.

This should load a steam interface.
Code:
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.
Code:
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
Code:
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.
Code:
./srcds_linux -game csgo +game_type 0 +game_mode 1 +mapgroup mg_allclassic +map de_dust -ip 70.34.195.4 +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.
[youtube][/youtube]

_________________
Server list
Donate


Top
   
PostPosted: 13 May 2012 14:20 
Offline

Joined: 13 May 2012 14:18
Posts: 2
can not install libstdc++.so


Top
   
PostPosted: 13 May 2012 14:36 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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?

_________________
Server list
Donate


Top
   
PostPosted: 14 May 2012 07:10 
Offline

Joined: 13 May 2012 14:18
Posts: 2
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.


Top
   
PostPosted: 14 May 2012 10:40 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
Are you installing it into a directory where you have write permissions?

_________________
Server list
Donate


Top
   
PostPosted: 20 Jun 2012 18:17 
Offline

Joined: 20 Jun 2012 18:12
Posts: 4
Hi

Nice guide, question

at force_install_dir /home/gamer/go/server1/

what is meant to happen?

Ty


Top
   
PostPosted: 20 Jun 2012 18:44 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
It tells the steamcmd where to install the server.

So make it

force_install_dir /directory/to/my/server/

_________________
Server list
Donate


Top
   
PostPosted: 20 Jun 2012 19:21 
Offline

Joined: 20 Jun 2012 18:12
Posts: 4
i run that but it doesn't seem to do anything

doesn't put any files in that folder


Top
   
PostPosted: 20 Jun 2012 19:34 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
Do you actually have that directory?

_________________
Server list
Donate


Top
   
PostPosted: 21 Jun 2012 16:50 
Offline

Joined: 20 Jun 2012 18:12
Posts: 4
yes it does exist but doesn't seem to do anything, however it doesn't reject the command :(


Top
   
PostPosted: 21 Jun 2012 17:12 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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:
Code:
STEAMEXE=steamcmd ./steam.sh
login yourusername yourpassword
force_install_dir /home/gamer/go/server1/
app_update 740 validate

_________________
Server list
Donate


Top
   
PostPosted: 21 Jun 2012 17:27 
Offline

Joined: 20 Jun 2012 18:12
Posts: 4
its got something to do with centos6 not allowing be to chose a full path works if i go ../server1/

weird

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

now to configure server.cfg and gamemodes.txt lol


Top
   
PostPosted: 17 Aug 2012 21:43 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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:
Code:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt 

"GameModes_Server.txt"
{
	"gameTypes"
	{
		"gungame"
		{
			"gameModes"
			{
				"gungametrbomb"
				{
					"value 			"1"
					"matchmakingvalue"	"competitive"
					"uid"			"12"
					"maxplayers"		"11"

					"convars"
					{
						"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
//////////////////////////////////////////////////////////////////////////////////////////////


	"mapgroups"
	{
		"mg_demolition"									// mapgroup definition
		{
			"name"			"mg_demolition"
			"maps"
			{
				"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.
Code:
hostname "[AM] demolition|absurdminds.net"

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

log off
logaddress_delall
logaddress_add 76.114.68.85:27500

exec banned_user.cfg
exec banned_ip.cfg
writeip
writeid

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

_________________
Server list
Donate


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited