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.
/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.
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".)
(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.
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.
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
Users browsing this forum: No registered users and 6 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