SRCDS Steam group


[Windows]: How to create a server in Vista
#1
How to install SRCDS on Windows Vista


SRCDS Stands for Source Dedicated Server. Instead of using the GUI Programme that comes with Steam, we will be using the console, as this is less performance hoar, and is easier to customize.

Start of by downloading the latest HLDSupdatetool (half-life dedicated server update tool) from this link. http://www.steampowered.com/download/hldsupdatetool.exe. Save it to a temporary location then open the installation wizard and run through the options. When it asks you to save it too a location, I highly recommend you use your secondary partition if you have one (in this case I'll be using DSmile and on that partition, Install it to a folder called SRCDS. So lets recap... You've downloaded hldsupdatetool and installed it to D:/SRCDS. Now go to Notepad, and copy and paste this command into notepad.
Code:
D:
cd srcds
hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir D:\srcds

Go to file -> Save as ->
“File Name -> Update.Bat”
“Save As Type -> All Files”

Okay, so go to where you saved it, and double click the file, it should bring up Command Prompt, and begin downloading lots of files. Okay, so after about 10 – 15 minutes, Command Prompt will close and you'll think you've done... Wrong... You've just downloaded the first part of 5 sections... So back to update.bat you go and double click on it. It'll say
Code:
Checking bootstrapper version . . .
Updating Installation

And carry on from where you left. In total You'll have to click the update.bat around 5 times. On your 5th time it should say Installation complete. Just to make sure, double click it again and it should say this...

Code:
Checking bootstrapper version . . .
Updating Installation

Checking/Installing 'Counter-Strike Source Shared Content' version 67

Checking/Installing 'Base Source Shared Models' version 4

Checking/Installing 'Base Source Shared Sounds' version 4

Checking/Installing 'Base Source Shared Materials' version 8

Checking/Installing 'Source Dedicated Server' version 92 (hard to see this one come up, it flashes for about .5 of a second then Command Prompt will close.)

After these files have downloaded, You'll now need to go into D:/SRCDS to see if your files have downloaded correctly. The main file is D:/SRCDS/Cstrike/. Lets recap on what you know have. You have downloaded all the files necessary for running a server onto your PC.
Okay, so now open up notepad, and copy and paste this inside it.

Code:
D:
cd srcds
srcds.exe -console -game cstrike +map cs_office -port 27030 -maxplayers 16 -autoupdate

You can change the map to any map You'd like, but keep the port the same as Vista does not like many ports, and also change the maxplayers to the amount that you want. Do the exact same as what you did before, but call it server.bat, and make sure you save it as file type “All Files.” Okay, double click that, and a console should appear, at the bottem of the list it should say,
Code:
Adding master server (IP)
Adding master server (IP)
Connection to Steam Servers Successful
VAC Secure is activated.

Okay, so right click Steam click servers... Go into the LAN tab, and you should see Counter-Strike Source sitting there with 0/maxplayers in... Okay, you can now go inside the server, however, it is just a plain server with nothing on so we want to change that Smile.
The most important configuration file is the server.cfg. This is the barebones to any server, hosting all your settings of the server. I am going to give you my server.cfg, and you can change it to any settings you'd like... First, again, open notepad. Copy and paste all of this inside, and change to your preference.

Code:
Server.cfg
// ***************
// GENERAL SETTINGS
// ***************
// Delete or add “//” to the line to ignore... If a line has // at the start the comand will be
// Ignored.

hostport 27030                             // The port of the server (default is 27015)
hostname "SERVER NAME HERE"                // Name of server
sv_lan 0                                   // Change it to 1 if you want a LAN only Server
sv_region 3                                // Europe = 3
rcon_password "password for remote access” // Password for most things
// sv_password "password of the server"    // To make a private server
sv_contact EMAIL@ADDRES.COM                // The contacts email address

// ***************
// GAME SETTINGS, YOU CAN CHANGE THESE THE WAY YOU LIKE IT
// ***************

mp_buytime 3            // Sets the amount of minutes players are able to buy
mp_startmoney 2000      // Sets the amount of starting money, max=16000
mp_c4timer 35           // Sets the amount of secs before C4 explodes
mp_flashlight 1         // 1 enables flashlight, 0 disables it
mp_footsteps 1          // 1 enables hearing footsteps, 0 disables it
mp_falldamage 1         // Falling damage, || 1 = enable 0 = disable
mp_hostagepenalty 0     // Sets the number of hostages a player can kill before they are booted from the server. || 0 is disabled
mp_freezetime 2         // Sets the seconds before players can move in the beginning of a round
sv_maxspeed 320         // Max speed objects move at || Default = 320
sv_gravity 800          // Server gravity, less = higher jumping. || Default = 800
sv_maxvelocity 3500     // Maximum velocity an object can have ingame || Default= 3500
sv_turbophysics 0       // Mow you can stand on barrels, tables, and push/pull them by +use
phys_pushscale 1        // changes gravity physics when shooting something as it blows back X times further
sv_pushaway_force 30000 // 30000 is the default value, Lower= harder to move Higher= easier to move)  

// ***************
// Advanced RCON
// ***************

sv_rcon_banpenalty 10
sv_rcon_maxfailures 10
sv_rcon_minfailures 5
sv_rcon_minfailuretime 30

// ***************
// TIME, WIN & ROUND SETTINGS
// ***************

mp_timelimit 40  // Timelimit is how many minutes for a map.
mp_winlimit 0    // When a team reaches this amount of wins it has won the map. || 0=disabled
mp_maxrounds 0   // When two teams finish playing this amount of rounds the map ends || 0=disabled
mp_roundtime 5   // Round time, in minutes. After this amount of minutes has passed || a scenario win is awarded. Min 1, Max 9

// ***************
// TEAMBALANCING
// ***************

mp_autoteambalance 1 // Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off
mp_limitteams 2      // There can be a tolerance of 2 person more on 1 team before autoteambalance kicks in

// ***************
// FF & TEAMKILL & IDLE
// ***************

mp_friendlyfire 0        // Toggles friendly fire 1=on and 0=off
mp_tkpunish 1            // Toggles the forcing of a player to sit out the next round if he has tked
mp_autokick 1            // Kick idle team-killing players. 1=on and 0=off
mp_spawnprotectiontime 5 // Kick players who team-kill within this many seconds of a round restart.
sv_timeout 90            // After this many seconds without a message from a client, the client is dropped

// ***************
// SPECTATORS
// ***************

mp_allowspectators 1 // toggles whether the server allows spectator mode or not. 1=on and 0=off
mp_forcecamera 0     // Restricts spectatorcamera view for dead players. 1=on and 0=off

// ***************
// SET RATES
// ***************

sv_maxrate 9999               // Max bandwidth rate allowed on server, 0=unlimited, max=20000
sv_minrate 5000               // Min bandwidth rate allowed on server, 0=unlimited, 4000=good to keep dialup gamers off the server
sv_maxupdaterate 100          // Maximum updates per second that the server will allow, increasing this will take more cpu power, 100 is max
sv_minupdaterate 10           // Minimum updates per second that the server will allow, increasing this will take more CPU power
decalfrequency 60             // The user can only spray their spray every x seconds
fps_max 500                   // Frame rate limiter
sv_unlag 1                    // Enable lag compensation
sv_maxunlag 1                    // Maximum lag compensation
sv_logsdir D:\SRCDS\cstrike\logs // The directory where the logs will be saved

// ***************
// DOWNLOAD
// ***************

sv_allowdownload 1  // Allow clients to download files
sv_allowupload 1    // Allow clients to upload customizations files like logospray files
net_maxfilesize 100 // Max size for users to download is 100MB

// ***************
// LOGGING
// ***************

log on           // SERVER LOGGING, creates a logfile (needed for statsprograms), "log off" to turn off logging
sv_logbans 1     // Log server bans in server logs
sv_logecho 0     // Echo log information to the consol (makes lots of spam)
sv_logfile 1     // Log server information to a log file
sv_log_onefile 1 // Log everything in one file


// ***************
// CHEATS & PAUSE
// ***************

sv_cheats 0   //Enable cheats || 1 = on 0 = off
sv_pausable 0 // disable clients' ability to pause the server

// ***************
// OTHER SETTINGS
// ***************

mp_chattime 5    // Amount of seconds players can chat after the game is over
sv_voiceenable 1 // VOICE disabled, if you want VOICE enabled then change 0 into 1
sv_consistency 0 // Enables users to pass certain conistency byass ceck (eg. Scope overaly) || 1 = on 0 = off
sv_alltalk 1     // Enables talking to Live people when Dead

// ***************
// Ammo
// ***************

ammo_338mag_max 30     // awp
ammo_357sig_max 50     // p228
ammo_45acp_max 120     // ump45, mac10, usp
ammo_50AE_max 35       // deagle
ammo_556mm_box_max 200 // m249
ammo_556mm_max 120     // galil, sg552, famas, m4a1, sg550
ammo_57mm_max 100      // p90, fiveseven
ammo_762mm_max 120     // scout, ak47, g3sg1, aug
ammo_9mm_max 120       // mp5navy, tmp, glock, elite
ammo_buckshot_max 32   // m3, xm1014

// ***************
// EXEC FILES
// ***************

exec banned_user.cfg

echo ***************
echo ***************
echo SERVER.CFG LOADED
echo ***************
echo ***************

// ***************
// END OF FILE
// ***************

Save this as server.cfg and as file type as “all files”. Save it to D:/SRCDS/cstrike/cfg/.
Load up your server.bat again, and you should see in the console that the server.cfg has been loaded. If not, then you need to make sure that it's saved in the right location, and isn't saved as server.cfg.txt.
Okay, so you've got the main part of you server working, but now you want admin access to your server. So download this file http://www.mani-admin-plugin.com/mani_admin_plugin/v1_2_beta_r/mani_admin_plugin_v1_2_beta_r.zip and right click, extract to -> D:/SRCDS/cstrike and hit unzip. It should say Some of these files already exist, do you wish to overwrite? Hit yes to all. Okay, so go to D:/SRCDS/cstrike/addons and there should be a file inside called CreateVDF.exe. Run that file, and it'll ask you what game you want to install it for, obviously if your running a Counter-Strike Source server click that and click Create VDF. Okay, Nearly done. Open up your server.cfg once again, and at the bottem of the file, just undernearth exec banned_user.cfg type this..
exec mani_server.cfg
Hit save and that's done Smile. Okay, now go to D:/SRCDS/cstrike/cfg/mani_server.cfg and open it up. Change all those settings to how you desire and it will be fine. Next, what you need to do is make yourself an admin. Go into any game on CSS, and access the console by hitting the ~ button (for UK users it's the button under escape.) It should bring up a black box with lots of text inside. If not, then go to options -> Keyboard -> advance -> enable developers console and hit enter. Inside the console type status. Lots of text will come up and one of the lines will say
# (number) “Your username” “STEAM_0:x:xxxxxxxxx 59:58 etc etc” The important bit is the STEAM number. Copy and paste that number (an example steam nubmer would be STEAM_0:1:17190298 . Okay, Now open up notepad (yes, again.) This bit can be quite annoying, but if you follow my details hopefully you wont go wrong. Copy and paste this in...

Code:
"clients.txt"
{
  // This key group lists all your client players
  "players"
  {
  // This must be a unique client name
  "client001"
  {
    // Client real name
    "name"    "YOUR REAL NAME"
    // Steam ID for client
    “steam"    "YOUR STEAM ID"
    "groups"
    {
      "Admin"    "Serveradmin"
      “Immunity"    "Serveradmin"
    }
  }
  // These are global groups of flags that can be assigned to   clients
  "groups"
  {
    “Immunity"
    {
      "Clanmember"    "a b c k n p autojoin grav ping"
      "No Kick Ban"    "b k"
      "NoFun"    "d f g i l t"
      "Serveradmin"    "a b c d e f g h i k l m n o p q r s t u v x y afk autojoin"
      "Serveradmin"    "grav ping"
      "Teamadmin"    "b k n ping"
    }
    "Admin"
    {
      "Clanmember"    "p s t v w y admin pban"
      "Level 2 Access"    "f g i k l m o p q r s t v w z admin spray grav pban client"
      "Serveradmin"    "e f g i k l m o p q r s t v w x y z q2 q3 admin      spray grav"
      "Serveradmin"    "pban client"
      "Teamadmin"    "I O V a b k l o p v w admin"
    }
  }
}

Okay... Copy and paste all of that into notepad... change the Real Name and SteamID and save it as clients.txt in D:/SRCDS/cstrike/cfg/mani_admin_plugin/ Okay.. Hopefully that'll be it... Load up your server, go in game and to test if your admin, go into your console again (hit the ~ button or the button under escape for UK users.) Now type this exactly... (Obviously you can change 'v' to any key you want, I use l as my admin key.)

Code:
bind v “admin”

Okay... Now hit enter and go back into game. If you press v it should say 1 of 2 things. 1, a popup menu comes up and says things like 1. Player management etc... This means that you have installed it correctly and you are an admin. On the other hand it could say “You are not authorised to run this command.” If this happens, it means Mani admin installed correctly, but your clients.txt is wrong. Please run through my tutorial again to make sure you did it correctly. If it says nothing at all it means you've either bound the key wrongly in the console, or mani admin is not installed correctly. Please, go back and take a closer look.
Right, so now your server is perfect, you want to get people to join? Okay, right, here's where it can get confusing. Are you being a router? If not then ctrl + f and type non-router.
Okay, if you're reading this you're behind a router. Okay, so a little information before we begin. Routers protect incoming traffic, and prevents people from accessing the internal network, so we open special doorways called ports, for the traffic to get through.
However, first priority is to get a static Internal IP, so the routers ports stay assigned to your PC. Click on start, right click network and select properties. Then it'll open a page with your network, and on the left pane of the window, there will be a link saying “manage network connections.” Select that and it'll bring up your PC network “Local Area Connection”. Okay, good? Take a breath. Now, right click that, and select properties once again. Once inside properties, select “internet Protocol version 4 (TCP/IPv4.) and click properties. Once Inside that new popup You'll face a popup that asks you for options of:

Code:
IP Adress:
Subnet Mask:
Default Gatway:

Prefered DNS server:
Alternate DNS Server:

Right, now how the hell do you fill out these? Simple, go to Comand Prompt once agan, and once inside type ipconfig /all and hit enter. Read down till you find “Ipv4 Adress,” “Default Gatway” “Subnet Mask” and “DNS Server.” Okay, write them all down, and simply insert them into the correct places inside the Internet Protocol version 4 (TCP/Ipv4) settings. Hit enter, and attempt to connect to the internet. If you can, then everything is fine. If not, just go back into your settings, and select Obtain IP address automatically and re-try again later.

So now that you have a static internal IP address, go to http://www.portforward.com/english/routers/port_forwarding/routerindex.htm and select your router. Click games and go to Counter-Strike. So say your router page is http://192.168.2.1 go to that and go to your ports page. Now, don't listen to Port Forwards port, I'll tell you the correct ports to open.

Code:
UDP 1200 – 1200
TCP 27015 – 27030
UDP 27000 – 27039

That's it. Save changes. Now, go to this link... http://www.whatismyip.org and in the middle of the page will be your external IP. Now copy that... Go back into your server.cfg and at the top of the page add this line.. (above hostport line). IP <your ip here> so for me the code would be.

Code:
Server.cfg
// ********************
// DEFAULT SETTINGS
// ********************

IP 81.108.194.81
Hostport 27030

But obviously your IP would be there instead. Okay, now save that.

*Tip for advanced users. Sign up an account at http://www.no-ip.org and then put your IP in and choose your domain name. So if you want your IP to be myclanserver.no-ip.org then put in myclanserver... Now instead of putting IP 81.108.194.81 in put IP myclanserver.no-ip.org in or whatever you put in as your name. All this does is make sure that if your IP changes, your friends will still connect to the same IP, rather than having to put in a different IP.

Okay... So know you have your ports open, you now only have ONE FINAL THING TO DO Smile... This step is how to customize your Windows Firewall... (If you are running a different firewall such as ZoneAlarm, you'll have to figure out how to configure it on your own, I'm only explaining how to configure Windows Firwall.) Okay, hit start for the last time Smile and click control panel. Go down to Windows Firewall and double click it. Inside on the left hand side will be an option to “Allow a programme through Windows Firewall.” Okay so click that and view the window. At the bottem of that window will be a button that says “Add a port” so click that. For the name call it CSS1 and add port 27030 to UDP... Okay, now click The “Open Port” button 1 more time, and call it CSS2, and add port 27030 to TCP. Now click finish. Close everything, and finally you are done. Load up your server, and to get your friends to connect, just tell them to add yourIP:27030 to their favourites. So if your IP is 81.108.194.81 then tell them to add 81.108.194.81:27030 to their favourite. If you used the no-ip service then tell them to add myclanserver.no-ip.org:27030 to their favourites, or whatever it is. Okay, so then tell them to connect, and have fun.

BIG NOTE!!!! You connect on your INTERNAL IP (it'll be something like 192.168.2.65:27030, and it'll be on your LAN tab) however, your friends will conect on your WAN IP (The 81.108.194:27030 IP or whatever it is) They can't right click you in friends, and click 'Join Game.' It WILL NOT work that way, they MUST add your IP to favourites and connect to it that way for it to work.


For any questions, suggestions and discussion please follow this link:
http://forums.srcds.com/viewtopic/5763


Forum Jump:


Users browsing this thread: 1 Guest(s)