GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Counter-Strike: Global Offensive Dedicated Server

A Tutorial for Counter-Strike: Global Offensive

Rate and Comment

Introduction ------------------ To start off, I am no expert in Counter-Strike Dedicated Servers. I can only write about my experience thus far running a server and the lack of documentation I have seen from Valve. This document in no way to replaces Valve's recommendations. However if you follow this guide you can get your server up and running in under 2 hours—most of it spent waiting for CS:GO to download. This guide was written for Windows. Install SteamCMD ------------------ First and foremost, before running a CS:GO server you need to download SteamCMD from Valve. Check this link: SteamCMD at Valve's Dev. Community Once you have the SteamCMD, put in it a folder on a hard drive that will have enough space to grow. In my instance I put it on my D: drive as my C: has limited space. Here is the exact folder path that I created. 1. D:\CS-GO\SteamCMD After you create this directory create another folder inside your CS-GO folder. Call it "CSGO_SERVER." Initial Configuration Now in your SteamCMD folder create a .txt file name it “csgo_ds.txt” with the following information: 1. login steamusername steampassword 2. force_install_dir "D:\CS-GO\CSGO_SERVER” 3. app_update 740 validate 4. exit Where “steamusername” and “steampassword” are replaced with your Steam username and password. Create a Shortcut ------------------- I created a shortcut on my Server Desktop and added a Target in the shortcut. This makes life easier when Valve updates CS:GO. Here is the target” 1. D:\CS-GO\SteamCMD\steamcmd.exe +runscript csgo_ds.txt Now just double click on your Start Steam Icon on your desktop and let it go. If this is your first time running this it's going to take a while. There is around 6 GB to download. So sit back relax. Oh and don’t go logging on Steam with the account you specified above on a different computer. As you might guess, the server is using this account to download CS:GO. Once this completes the command prompt will automatically close. Now that you have finished downloading and verifying your CS:GO it's time to create some files. Configure the Server ------------------ The first file to create is essential: autoexec.cfg. Using Notepad (or a similar text editor) create a file called autoexec.cfg and place it in “D:\CS-GO\CSGO_SERVER\csgo\cfg” Put this line in the file: 1. log on Yup, that's it. Without that the server is not going anywhere. Basic Configuration ------------------- Next, it's time to start setting up your server. Create a file in the same directory as above and call it server.cfg. This file has certain values that can be changed depending on how you want to run your server. Here is mine. hostname "-{DK}- BLUE DEDICATED SERVER" rcon_password "put your password here" //sv_password "" //Only set this if you intend to have a private server! mp_join_grace_time "15" //The amount of time players can join teams after a round has started mp_match_end_restart "0" // Defines whether a map should be restarted after a game has ended sv_cheats "0" //This should always be set, so you know it's not on sv_lan "0" //This should always be set, so you know it's not on //**The bot commands below are mostly default with the exception of bot_join_after_player "0" //**The following commands manage kicks and bans writeid writeip exec banned_user.cfg exec banned_ip.cfg //Others sv_pure "1" sv_allowupload "1" sv_allowdownload "1" sv_hibernate_when_empty "0" sv_forcepreload "1" sv_tags "Your,Tags,Here" Configure the Competitive Game Mode ----------------------------- If you want to modify any other settings for your server you are going to need to copy the file "gamemode\_competitive.cfg" and rename it to "gamemode\_competitive\_server.cfg." This file is also in the csgo/cfg folder. 2 I have modified this a bit to make it cleaner and easier to read. You can modify this file to add other cvars but this is the file you want to use to change map times, starting money, and other values of this nature. 3 Here's what my gamemode\_competitive\_server.cfg looks like. bot_quota_mode fill //or try normal bot_quota 6 bot_defer_to_human_items 1 bot_defer_to_human_goals 1 bot_difficulty 3 bot_chatter off bot_autodifficulty_threshold_low -2.0 // Value between -20.0 and 20.0 (Amount below avg human contribution score, below which a bot should raise its difficulty) bot_autodifficulty_threshold_high 0.0 // Value between -20.0 and 20.0 (Amount above avg human contribution score, above which a bot should lower its difficulty) mp_friendlyfire 1 mp_autoteambalance 1 mp_do_warmup_period 1 mp_afterroundmoney 0 mp_playercashawards 1 mp_teamcashawards 1 mp_maxrounds 20 mp_halftime 1 mp_timelimit 30 mp_roundtime 2 mp_freezetime 10 mp_buytime 45 mp_forcecamera 1 // Set to 1 for team only spectating. mp_defuser_allocation 0 mp_death_drop_gun 1 // 0=none, 1=best, 2=current or best mp_death_drop_grenade 2 // 0=none, 1=best, 2=current or best mp_death_drop_defuser 1 mp_molotovusedelay 0 mp_force_pick_time 15 mp_match_can_clinch 1 // 0=No mercy rule, 1=team can clinch match win early if they win > 1/2 total rounds mp_startmoney 800 mp_maxmoney 20000 sv_full_alltalk 1 sv_alltalk 1 sv_deadtalk 1 sv_allow_votes 1 // Voting allowed in this mode sv_arms_race_vote_to_restart_disallowed_after 0 sv_ignoregrenaderadio 0 spec_freeze_time 5.0 spec_freeze_panel_extended_time 0 ff_damage_reduction_grenade 0.85 ff_damage_reduction_bullets 0.33 ff_damage_reduction_other 0.4 ff_damage_reduction_grenade_self 1 // cash award convars cash_team_terrorist_win_bomb 3500 cash_team_elimination_hostage_map 3000 cash_team_elimination_bomb_map 3250 cash_team_win_by_time_running_out 3250 cash_team_win_by_defusing_bomb 3500 cash_team_win_by_hostage_rescue 3500 cash_team_loser_bonus 1400 cash_team_loser_bonus_consecutive_rounds 500 cash_team_rescued_hostage 750 cash_team_hostage_alive 150 cash_team_planted_bomb_but_defused 800 cash_team_hostage_interaction 150 cash_player_killed_teammate -3300 cash_player_killed_enemy_default 300 cash_player_killed_enemy_factor 1 cash_player_bomb_planted 300 cash_player_bomb_defused 300 cash_player_rescued_hostage 1000 cash_player_interact_with_hostage 150 cash_player_damage_hostage -30 cash_player_killed_hostage -1000 // gungame tr defaults (not used in this mode) mp_ggtr_bomb_respawn_delay 0 mp_ggtr_bomb_detonation_bonus 1 mp_ggtr_bomb_defuse_bonus 1 mp_ggtr_bomb_pts_for_upgrade 2 mp_ggtr_bomb_pts_for_he 3 mp_ggtr_bomb_pts_for_flash 4 mp_ggtr_halftime_delay 0.0 mp_ggtr_end_round_kill_bonus 1 mp_ggtr_last_weapon_kill_ends_half 0 // gungame progressive defaults (not used in this mode) mp_gungameimmunitytime 4 mp_ggprogressive_round_restart_delay 15 mp_weapons_allow_zeus 0 mp_solid_teammates 1 mp_free_armor 0 spec_show_xray 1 Modes & Maps --------------- Now you need to rename and modify a couple of files in the csgo folder, which is back one directory. Valve gives you a "gamemodes\_server.txt.example" file. Just rename this to "gamemodes_server.txt" and open it. You can modify this document to suit your needs. In my case I only have two modes for my server: competitive and casual. Valve suggests this site. I know they need a new web design but the tool works well. I have heard Valve is going to change this file so I wouldn't invest too much time in creating or modifying it. So as I wrote this guide it appears that Valve did go ahead and redo the GameModes_Server.txt so if you're still holding on to your old one trash it as your server will produce many errors in loading but not crash which shows Valve is at least building some fault tolerance into the dedicated server. This new GameModes\_Server.txt has made references to a cfg called my\_server\_override\_competitive.cfg. I still have yet to figure what you should put in this file, I created an empty my\_server\_override\_competitive.cfg so that the server didn't complain that it didn't find one. // To use this file, rename it to GameModes_Server.txt // // Values here override the default gamemodes.txt "GameModes_Server.txt" { "gameTypes" { "classic" { "gameModes" { "competitive" { "maxplayers" "14" // Note that maxplayers doesn't go in the convar block. // Another way to set maxplayers is to add -maxplayers_override XX to the cmd line "exec" { "exec" "my_server_override_competitive.cfg" } "mapgroupsMP" // List of mapgroups valid for this game mode ( competitive ) { "mg_bomb" "" } } "casual" { "maxplayers" "14" "exec" { "exec" "my_server_override_casual.cfg" } "mapgroupsMP" // List of mapgroups valid for this game mode ( casual ) { "mg_bomb" "" } } } } } ////////////////////////////////////////////////////////////////////////////////////////////// // 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_bomb" // mapgroup definition { "name" "mg_bomb" "maps" { "de_dust" "" "de_dust2" "" "cs_italy" "" "de_aztec" "" "cs_office" "" "de_lake" "" } } } } Start the Server -------------- Batch File -------------- The command to start the server is a little complicated, so for my convenience I created a "StartServer.bat" file to start the server. Just open up Notepad and create a file. Save it inside your CSGO_SERVER folder and call it StartServer.bat . Then just create a shortcut to it on your desktop. You can modify the line below but I have found this works well. 1. start /abovenormal srcds -game csgo -console -usercon +net_public_adr 24.151.126.251 -port 27015 +game_type 0 +game_mode 1 +mapgroup mg_bomb +map de_dust -tickrate 128 -autoupdate Caveats --------- So that is basically it. Valve is still constantly updating this game so some of the settings I have listed above might actually break your server in the future. ###
THANKS FOR REVIEWING
Sign up to access this!
1-10 of 11
1
Pages
  • 1
  • 2
Go to page:
  • FrostOne avatar
    FrostOne Joined 8y ago
    Offline
    Inxide Studio Flag Affiliation: Inxide Studio
    1,075 points Ranked 24,946th
    FrostOne Inxide Studio Flag
    Affiliation
    Inxide Studio
    7y
    > **Posted by Devieus** > > **Posted by BlueDroid** > > > > **Posted by Devieus** > > > > > > **Posted by BlueDroid** > > > > > > > > **Posted by Devieus** > > > > > > > > > You should really consider escaping your underscores so I don't have to, I can withhold this tutorial for you until you have it sorted out if you want, but I will do it the next time for not doing it. > > > > > > > > > > You can escape them by putting backslashes in front of them. > > > > > > > > Please. I'm confused with you. Write more clear. > > > > > > I am clear, either you fix the underscores, or this thing's going in the bin. > > > > Underscore! Where and where? > > Do you seriously not proofread you stuff? > > > > I don't know if you want it any clearer here. Thanks. Can you wait until soon, currently, i'm browsing GB with phone and night here.
    Rebooting...
    URL to post:
  • Devieus avatar
    Devieus username pic Joined 10y ago
    Moderator
    ONLINE
    100,176 points Ranked 36th
    73 medals 7 legendary 14 rare
    • 1st Place - Tutorial Contest Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • Returned 5000 times Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • 2017 Top Contributor Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    7y
    > **Posted by BlueDroid** > > **Posted by Devieus** > > > > **Posted by BlueDroid** > > > > > > **Posted by Devieus** > > > > > > > You should really consider escaping your underscores so I don't have to, I can withhold this tutorial for you until you have it sorted out if you want, but I will do it the next time for not doing it. > > > > > > > > You can escape them by putting backslashes in front of them. > > > > > > Please. I'm confused with you. Write more clear. > > > > I am clear, either you fix the underscores, or this thing's going in the bin. > > Underscore! Where and where? Do you seriously not proofread you stuff? I don't know if you want it any clearer here.
    Sentinel of the TV remote avatar
    Mantra
    Sentinel of the TV remote
    URL to post:
  • DaBlake avatar
    DaBlake username pic Joined 8y ago
    Offline
    2k Corporation Flag Affiliation: 2k Corporation
    1,508 points Ranked 22,376th
    12 medals 1 rare
    • 6 years a member Medal icon
    • Tutor of the Month, June 2013 Medal icon
    • Reached 1,000 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • Unlocked Treehouse VIP clearance Medal icon
    • One month a member Medal icon
    DaBlake avatar
    DaBlake
    2k Corporation Flag
    Affiliation
    2k Corporation
    7y
    > **Posted by BlueDroid** > > **Posted by Delta Frost** > > > > **Posted by BlueDroid** > > > > > > **Posted by Delta Frost** > > > > > > > i'm just thinking that you didn't write any of them...just some copy-paste-organize method maybe..XD > > > > > > No. I'm writing this tutorial about one week. Did you know i'm really write that tutorial. It's not trick. Dude. > > > > so.? i know you don't have CS:GO anyway lol...but this tuts is confusing if you really don't need it > > I have CS:GO unsteam and I need this tutorial. Any question, dude? zz...so is this for "Steam" CS:GO? otherwise this will look like pirating or something like dat ,.zzz :3
    I don't know how, it's past
    URL to post:
  • FrostOne avatar
    FrostOne Joined 8y ago
    Offline
    Inxide Studio Flag Affiliation: Inxide Studio
    1,075 points Ranked 24,946th
    FrostOne Inxide Studio Flag
    Affiliation
    Inxide Studio
    7y
    > **Posted by Delta Frost** > > **Posted by BlueDroid** > > > > **Posted by Delta Frost** > > > > > i'm just thinking that you didn't write any of them...just some copy-paste-organize method maybe..XD > > > > No. I'm writing this tutorial about one week. Did you know i'm really write that tutorial. It's not trick. Dude. > > so.? i know you don't have CS:GO anyway lol...but this tuts is confusing if you really don't need it I have CS:GO unsteam and I need this tutorial. Any question, dude?
    Rebooting...
    URL to post:
  • FrostOne avatar
    FrostOne Joined 8y ago
    Offline
    Inxide Studio Flag Affiliation: Inxide Studio
    1,075 points Ranked 24,946th
    FrostOne Inxide Studio Flag
    Affiliation
    Inxide Studio
    7y
    > **Posted by Devieus** > > **Posted by BlueDroid** > > > > **Posted by Devieus** > > > > > You should really consider escaping your underscores so I don't have to, I can withhold this tutorial for you until you have it sorted out if you want, but I will do it the next time for not doing it. > > > > > > You can escape them by putting backslashes in front of them. > > > > Please. I'm confused with you. Write more clear. > > I am clear, either you fix the underscores, or this thing's going in the bin. Underscore! Where and where?
    Rebooting...
    URL to post:
  • Devieus avatar
    Devieus username pic Joined 10y ago
    Moderator
    ONLINE
    100,176 points Ranked 36th
    73 medals 7 legendary 14 rare
    • 1st Place - Tutorial Contest Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • Returned 5000 times Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • 2017 Top Contributor Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    7y
    > **Posted by BlueDroid** > > **Posted by Devieus** > > > You should really consider escaping your underscores so I don't have to, I can withhold this tutorial for you until you have it sorted out if you want, but I will do it the next time for not doing it. > > > > You can escape them by putting backslashes in front of them. > > Please. I'm confused with you. Write more clear. I am clear, either you fix the underscores, or this thing's going in the bin.
    Sentinel of the TV remote avatar
    Mantra
    Sentinel of the TV remote
    URL to post:
  • DaBlake avatar
    DaBlake username pic Joined 8y ago
    Offline
    2k Corporation Flag Affiliation: 2k Corporation
    1,508 points Ranked 22,376th
    12 medals 1 rare
    • 6 years a member Medal icon
    • Tutor of the Month, June 2013 Medal icon
    • Reached 1,000 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • Unlocked Treehouse VIP clearance Medal icon
    • One month a member Medal icon
    DaBlake avatar
    DaBlake
    2k Corporation Flag
    Affiliation
    2k Corporation
    7y
    > **Posted by BlueDroid** > > **Posted by Delta Frost** > > > i'm just thinking that you didn't write any of them...just some copy-paste-organize method maybe..XD > > No. I'm writing this tutorial about one week. Did you know i'm really write that tutorial. It's not trick. Dude. so.? i know you don't have CS:GO anyway lol...but this tuts is confusing if you really don't need it
    I don't know how, it's past
    URL to post:
  • FrostOne avatar
    FrostOne Joined 8y ago
    Offline
    Inxide Studio Flag Affiliation: Inxide Studio
    1,075 points Ranked 24,946th
    FrostOne Inxide Studio Flag
    Affiliation
    Inxide Studio
    7y
    > **Posted by Delta Frost** > i'm just thinking that you didn't write any of them...just some copy-paste-organize method maybe..XD No. I'm writing this tutorial about one week. Did you know i'm really write that tutorial. It's not trick. Dude.
    Rebooting...
    URL to post:
  • FrostOne avatar
    FrostOne Joined 8y ago
    Offline
    Inxide Studio Flag Affiliation: Inxide Studio
    1,075 points Ranked 24,946th
    FrostOne Inxide Studio Flag
    Affiliation
    Inxide Studio
    7y
    > **Posted by Devieus** > You should really consider escaping your underscores so I don't have to, I can withhold this tutorial for you until you have it sorted out if you want, but I will do it the next time for not doing it. > > You can escape them by putting backslashes in front of them. Please. I'm confused with you. Write more clear.
    Rebooting...
    URL to post:
  • DaBlake avatar
    DaBlake username pic Joined 8y ago
    Offline
    2k Corporation Flag Affiliation: 2k Corporation
    1,508 points Ranked 22,376th
    12 medals 1 rare
    • 6 years a member Medal icon
    • Tutor of the Month, June 2013 Medal icon
    • Reached 1,000 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • Unlocked Treehouse VIP clearance Medal icon
    • One month a member Medal icon
    DaBlake avatar
    DaBlake
    2k Corporation Flag
    Affiliation
    2k Corporation
    7y
    i'm just thinking that you didn't write any of them...just some copy-paste-organize method maybe..XD
    • Dumb x 1
    • Disagree x 1
    • Rude x 1
    • Funny x 1
    I don't know how, it's past
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Original Authors
Bruce Haynes
Creator
Contributors
BlueDroid
Distributor

Submitter

FrostOne avatar
FrostOne Joined 8y ago
Offline
Inxide Studio Flag Affiliation: Inxide Studio
1,075 points Ranked 24,946th
FrostOne Inxide Studio Flag
Affiliation
Inxide Studio

Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 70.7k
  • 11
  • 7y
  • 7y

More from Submitter

WiPs by Submitter

More Server Administration Tutorials