| CS.RIN.RU - Steam Underground Community http://cs.rin.ru/forum/ |
|
| Complete Guide to Setting Up and Coinfiguring CSS in HLSDS http://cs.rin.ru/forum/viewtopic.php?f=14&t=9439 |
Page 1 of 1 |
| Author: | killpuppy [ Sunday, 09 Jan 2005, 10:27 ] |
| Post subject: | |
SERVER.CFG You can do two things: 1) Get my server.cfg here. Open the file with notepad and make sure you change sv_region, hostname and rconpassword. Feel free to change any other settings you like or delete the settings you don’t need or want. Place the file server.cfg in the following directory: C:\cssource\cstrike\cfg\ 2) When above link is not working: Copy and paste the text below in a text- or notepadfile and make sure you change sv_region, hostname and rconpassword. Feel free to change any other settings you like or delete the settings you don’t need or want. Afterwards save the file as server.cfg in the following directory: C:\cssource\cstrike\cfg\ If you have setup CS 1.6 servers or other non-Source servers before then I recommend not using those server.cfg 's anymore, because some commands have changed or are not working anymore! Here you can find a Source cvarlist so you can compare it with your old server.cfg 's or you can use the server.cfg below: Source cvarlist It is possible that some commands are not working anymore, this has happened before after an update, but all of the commands below are on the official Source Cvarlist, so hopefully Valve will fix it with the next update. And this said, my server.cfg doesn't have all the possible commands, but it has the most used. Here starts the Server.cfg you can copy and paste... quote:// Use this file to configure your SOURCE DEDICATED server. // This config file is executed everytime the server changes levels. // This file is made by -=ViViD=- Racquel, you can visit us @ www.vividclan.com // *********** SERVER & PASSWORD INFO *************** // Change it to 1 if you want a LAN only Server sv_lan 0 // contact & geo 0=US East coast, 1=US West coast, 2= South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world. // Change the number to the region you live in!!! sv_region 3 // Give your server a name here hostname “Put your Server Name here" // Rcon password is used to give your server orders by using console, so think of a good password rcon_password "Putyourrconpasswordhere" // If you want your server to be private, fill in a password and delete the // in front of sv_password // sv_password "Putyourprivatepasswordhere" // *********** GAME SETTINGS, YOU CAN CHANGE THESE THE WAY YOU LIKE IT *************** // Sets the amount of minutes players are able to buy mp_buytime 1 // Sets the amount of starting money, max=16000 mp_startmoney 8000 // Sets the amount of secs before C4 explodes mp_c4timer 35 // 1 enables flashlight, 0 disables it mp_flashlight 1 // 1 enables hearing footsteps, 0 disables it mp_footsteps 1 // 1 enables falling damage, 0 disables it mp_falldamage 1 // Sets the number of hostages a player can kill before they are booted from the server. 0 is disabled mp_hostagepenalty 0 // TIME, WIN & ROUND SETTINGS // Timelimit is how many minutes for a map. mp_timelimit 45 // When a team reaches this amount of wins (before the timelimit or the roundlimit is // reached), it has won the map. 0=disabled mp_winlimit 14 // When two teams finish playing this amount of rounds (before the timelimit or the // winlimit is reached) the map ends. 0=disabled mp_maxrounds 21 // Round time, in minutes. After this amount of minutes has passed, // a scenario win is awarded. Min 1, Max 9 mp_roundtime 3 // Sets the seconds before players can move in the beginning of a round mp_freezetime 4 // TEAMBALANCING // Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off mp_autoteambalance 1 // Sets the maximum number of players that one team can have more than the // other team. Use a setting of '0' to completely disable the team limiting. mp_limitteams 1 // FF & TEAMKILL & IDLE // Toggles friendly fire 1=on and 0=off mp_friendlyfire 0 // Toggles the forcing of a player to sit out the next round if he // has just killed a teammate. 1=on and 0=off mp_tkpunish 1 // Kick idle/team-killing players. 1=on and 0=off mp_autokick 1 // Kick players who team-kill within this many seconds of a round restart. mp_spawnprotectiontime 10 // After this many seconds without a message from a client, the client is dropped sv_timeout 40 // SPECTATORS // Restricts spectator modes for dead players. 1=on and 0=off mp_forcecamera 1 // toggles whether the server allows spectator mode or not. 1=on and 0=off mp_allowspectators 1 // fade a player's screen to black when he dies. 1=on and 0=off mp_fadetoblack 0 // ************ IF YOU HAVE LAG ISSUES YOU CAN CHANGE THESE SETTINGS, IF YOU KNOW WHAT YOU ARE DOING ***************** // SET RATES // Max bandwidth rate allowed on server, 0=unlimited, max=20000 sv_maxrate 8000 // Min bandwidth rate allowed on server, 0=unlimited, 4000=good to keep dialup gamers off the server sv_minrate 1000 // Maximum updates per second that the server will allow, increasing this will take more cpu power, 100 is max sv_maxupdaterate 30 // Frame rate limiter, higher then 100 not needed, unless shots are not registered well fps_max 100 // DOWNLOAD // Allow clients to download files sv_allowdownload 1 // Allow clients to upload customizations files sv_allowupload 1 // *********** IF YOU KNOW WHAT YOU ARE DOING YOU CAN CHANGE THESE SETTINGS AS WELL ************* // SERVER LOGGING log 1 mp_logfile 1 mp_logecho 0 // Specifies a logging level 0 to 15. Using 15 is max logging log_level 0 // VOICE disabled, if you want VOICE enabled then change 0 into 1 sv_voiceenable 0 // CHEATS & autoaim off sv_cheats 0 // disable clients' ability to pause the server sv_pausable 0 // OTHER SETTINGS // amount of seconds players can chat after the game is over mp_chattime 10 // if not 0 then game will restart in the specified number of seconds mp_restartgame 0 Last edited by Lady Racquel on 12-12-2004 at 05:35 AM |
|
| Author: | killpuppy [ Sunday, 09 Jan 2005, 10:28 ] |
| Post subject: | |
MOTD As explained above a MOTD is the first screen you see when you connect as a player, wich can contain info about the server. You can find the MOTD in the following file: C:\cssource\cstrike\motd.txt Open this file and you will see text that's used for webpages. So if you know how HTML works you can easily create a nice webpage for your MOTD, just make sure you name it motd.txt and replace the original one in the above directory. It's even possible to show your clanwebsite on the MOTD and use an image or a sound. You'll find examples if you scroll down with your mouse. If you don't know much about HTML then look for this line in the motd.txt: quote:<body scroll="no"> <pre> You are playing Counter-Strike v1.6 Visit the official CS web site @ ww.counter-strike.net <a href="http://www.counter-strike.net">Visit Counter-Strike.net</a> </pre> </body> You can delete the blue text and type any other text instead. With <br> you can create an 'Enter'. If you want a bigger lettertype you will have to use this parameter: <font size="+x">text</font> And if you want to center the text you will have to use this: <center>text</center> Here is an example that will show how it's done: quote:<body scroll="no"> <pre> <center><font size="+2">Welcome to the <br> -=ViViD=- Clan CS Source Server</font></center> <br> <br> <center>FF and teambalancing are on</center> <br> <br> <br> <font size="+1">Just Behave & Enjoy</font> </pre> </body> It will create more or less the following output in the MOTD: (without the points ofcourse) quote: ..................................Welcome to the ......................-=ViViD=- Clan CS Source Server ............................................FF and teambalancing are on Just Behave & Enjoy Image & Sound If you know how HTML works then you know what to do with these lines to give your MOTD an image and/or a sound: quote:<img src="http://www.vividclan.com/cstrike/vividlogo.jpg" width="356" height="356"> <NOEMBED> <BGSOUND src="http://www.vividclan.com/cstrike/real.wav"> </NOEMBED> And keep in mind not to make the jpeg or the wav to big in pixels or bytes; 100 kb or less is fine. Your Webpage as MOTD It's possible to show your (clan)website as a MOTD. To do this you need to replace everything between: quote:<head> </head> in the motd.txt with the following text: quote:<head> <title>Cstrike MOTD</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Refresh" content="0;url=http://www.mysite.com/index.htm"> </head> And then ofcourse change the www.mysite.com/index.htm with your websitelink. Last edited by Lady Racquel on 12-27-2004 at 05:21 PM |
|
| Author: | killpuppy [ Sunday, 09 Jan 2005, 10:28 ] |
| Post subject: | |
RCON & MODS RCON is a very basic and timetaking way of controlling your server, I prefer to use MOD's. A MOD is like an add-on to your CS Source Server. It can give extra options to control your server, like weaponrestrictions, reserved slots or punishments. Because Source is a different engine, MOD's used for CS 1.6 and older are not working for CS Source! There is a build in MOD in the Source engine and people already made some plugins for it, you can find those plugins here, but you'll have the find out yourself how to install them, but do some reading on that forum and you'll probably find your way. A MOD that is not yet finished (dec 2004), but looks very promising (so keep this in mind!) for the Source engine is: SourceMod Look in the forums for more info. MOD's can make it easier and give you more possibillities, but if you don't know how to use or to install MOD's, then RCON is probably your best option to control your server. I'm gonna teach you how to use RCON from a Client PC! Client PC = PC you play CounterStrike Source on Server PC = PC you installed CounterStrike Source Ded Server on (Those two can be installed on the same PC!) Rcon Password RCON stands for Remote CONtrol and in your server.cfg you can change the RCON password, look for the following line: rcon_password "yourRCONpasswordhere" Make up your own RCON password and replace it with yourRCONpasswordhere. Sit in front of your Client PC and go to: X:\Steam\SteamApps\youraccountname\counter-strike source\cstrike\cfg (where X is the letter of your drive, where you installed Steam) and you will find autoexec.cfg, open this file with notepad. If you don't have a autoexec.cfg, then open notepad, so we can make a new one. Now put the following line in your autoexec.cfg or in the notepadfile you just opened: rcon_password "yourRCONpasswordhere" Ofcourse fill in the RCON password you've used in your server.cfg. Now save the file or if you made a new one save it as autoexec.cfg in the following directory: X:\Steam\SteamApps\youraccountname\counter-strike source\cstrike\cfg (where X is the letter of your drive, where you installed Steam) We now have made sure that our RCON password is being autoloaded everytime we start the game CS Source on the Client PC, so we don't need to type it in manually everytime. Console Start your CounterStrike Source Dedicated Server now! We are going to connect to it with the Client PC any minute now. We need the console to control our server, so sit in front of your Client PC and start the game CounterStrike Source. Go to Options, then Keyboard, then click Advanced... and make sure that Enable developer console (~) is enabled. Hit OK when finished. Now press the "~" key (=key left to the key 1) and a console window should pop up now! Commands In the bottom of the console window you can type all sorts of commands to control your server, but to do this you must first connect to your server. So now find your server in the list and connect your Client PC to your Server PC. When connected let's try one command, type this in the bottom of the console window and hit enter: rcon changelevel de_dust2 If all is well the map is changing to de_dust2 Here is a list of commands you can type/use: rcon status will give you a status of your server with a list of players and their ID's/IP's, very usefull, because by selecting and using ctrl C and ctrl V, you can easily copy/paste a name, ID or IP number. The first list of numbers is a list of userid's. After the list of names you will have a list of uniqueid's and the last list is a list of IP's. rcon kickid x (x=userid or uniqueid) kick someone by his userid or uniqueid rcon banid m x kick (m=minutes ban, m=0 means permanent ban, x=uniqueid) example: rcon banid 0 STEAM_0:0:123456 kick, player with the uniqueid STEAM_0:0:123456 is now kicked and banned forever. rcon addip m x (m=minutes ban, m=0 means permanent ban, x=IP) example: rcon addip 45 212.234.555.346, player with the IP 212.234.555.346 is now banned for 45 minutes. In the statuslist you see probably something like this: 212.234.555.346:43621 in order to ban someone using the IP, you must not use the red part in the command. rcon writeid this will write a file with all the uniqueid's that you have banned so far. This is necessary once in a while, because if you restart your server, all your banned ID's will be lost if they have not been written in a file. rcon writeip this will write a file with all the IP's that you have banned so far. This is necessary once in a while, because if you restart your server, all your banned IP's will be lost if they have not been written in a file. rcon removeid x (x=uniqueid) to remove a uniqueid from the file, in other words you can repair what you have done with the command writeid. rcon removeip x (x=IP) to remove an IP from the file, in other words you can repair what you have done with the command writeip. rcon changelevel y (y=mapname) this will change maps, here is a list of original mapnames: cs_italy de_dust de_aztec de_dust2 cs_office de_chateau de_cbble de_piranesi cs_havana rcon mp_restartgame m (game restarts in m seconds) rcon say "blablabla" if you want to talk to everyone on the server, you can use this option. rcon killserver this will shut down your server. The next list of commands can also be used in your server.cfg. If you scroll up with your mouse you will find a chapter called server.cfg and in it some explanations of the following commands... BUT be aware that after every mapchange your server.cfg is loaded again, so every change you've made with these commands is lost in the new map!: rcon mp_timelimit 45 rcon mp_winlimit 14 rcon mp_maxrounds 21 rcon mp_roundtime 4 rcon mp_freezetime 4 rcon mp_buytime 1 rcon mp_startmoney 800 rcon mp_c4timer 35 rcon mp_flashlight 0/1 rcon mp_footsteps 0/1 rcon mp_autoteambalance 0/1 rcon mp_limitteams 0/1 rcon mp_friendlyfire 0/1 rcon mp_tkpunish 0/1 rcon mp_autokick 0/1 rcon mp_forcecamera 0/1 rcon mp_allowspectators 0/1 rcon mp_spawnprotectiontime 10 rcon sv_timeout 40 Unfortunately it happens that after an update some commands are not working anymore, hopefully Valve will change that in a next update. Last edited by Lady Racquel on 01-01-2005 at 07:55 AM |
|
| Page 1 of 1 | All times are UTC + 3 hours |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|