Well a few people have asked me to write a tutorial on basic server cfg's (something other than the outdated one written by shade) so here we go.
First of all Are you using a router for your internet connection?
If this is the case you will have to find the 4-7 ports to open before your server will show up on the list. Not finding these ports will make your server only avalible over LAN or WAN (depending on what you use). If this is the case, people will only be able to connect by directly entering your ip.
Opening these ports is commonly known as forward porting and needs to be done not only with your routers firewall settings but on any firewall that you have set up on your pc.There are two ways to write a server config
You can either edit the existing autoexec.cfg or you can create another file. Just for a point of difference to shade's tutorial I will be editing my autoexec.cfg instead of creating another file. The two commands below are the only thing that differs between editing the autoexec and creating a new file. Aside from that their is really no distinction.Done in Autoexec.cfg
set svr_nameExternal File.cfg
Don't worry too much about the reason why the word set
is used in one and not the other. Both ways are equally good.
Now incase you wish to create an external cfg file instead of editing your autoexec.cfg file this is what you have to do first;
place the following line in your autoexec.cfg file:
exec "name of file".cfg
Then place your server configuration in a file named "name of file".cfg in your %savage\game\ folder (ie. the rest of your command lines, the only thing you should be putting in your autoexec.cfg file in this scenario is the [exec "name of file".cfg] line).Ok here are the basic commands you need to fire into your cfg file
This is a template for your server with line by line explanations. Commands are highlighted in lightblue/green
while explanations are all in mellow yellow
Please note that when ever writing command lines into a program using a double slash "//" (with out the quotation marks) tells the program to ignore and text on the same line after the double slash. This is handy for leaving yourself explanitory notes on what lines of code or cmds mean.
Also notice that alot of the server commands work on boolean variables. They are defined as TRUE and FALSE. For Savage, boolean variables are 1 (TRUE) and 0 (FALSE).
// basic server controlset svr_name
"Mr360^111ss Ss^999erver"//Your Servers Name can use ^000 colours (the same as in savage chat)set default_world
eden2//The default worldset svr_port
11235//The port your server will use 11235 is defaultset svr_sendStats
1//Will determine if the server is to record statssvr_broadcast
1//1=query the masterserver; 0 = dontsvr_maxclients
24//Maximum players allowed on a server
// pregame controlset sv_allowGuestReferee
0// 1 = allow referee vote; 0 = dont (will be auto assigned to first person to join the server unless voted)set sv_doWarmup
1//1 = allow warmup to occur; 0 = dontset sv_warmupTime
15000//The time warmup will run for in milli secondsset sv_readyPercent
0.50//The percetage of players that have to select ready for the game to startset sv_minPlayers
2//The minimum amount of players required for a game to occur
// game time commandsset sv_autoRespawn
1//1 = auto Respawn on; 0 = Not onset sv_balancedTeams
1//1 = doesn't allow people to join stacked teams; 0 = allows itset sv_clientVoteTime
60//The amount of time a vote can run for in seconds
//game controlset sv_clientConnectMoney
10000//The amount of gold a player gets on connectingset sv_teamDamage
0//Friendly fire anyone?set sv_maxMoney
100000//Sets the maximum gold players can haveset sv_timeLimit
3600000//Game time limit
// server passwordsset svr_password
//Comment this line out to have no password on your serverset sv_refereePassword
"chose a password"//Referee Passwordset sv_refGodPassword
"chose a password"//God Referee Passset svr_adminPassword
"chose a password"//Admin password
// otherset heartbeatserver_ip
masterserver.savage.s2games.com //heartbeat server fix
// end server.txt
Now save the new command lines you have placed either in your autoexec.cfg or your "name of file".cfg and then execute your dedicated_server.bat file. This should cause 2 windows to load. Minimise these windows and leave them running (don't close them or your server will obviously go down).So, I have my own server, now what?
Well you can have fun my friend.
To execute remote server commands while on your server type this in the consolecl_adminpassword
"my admin password"//Admin password duh! (what ever you put in [set svr_adminPassword "chose a password"])
Now you can enter remote commands into your server which will most likely cause it to do weird and wonderful things which is where these next two commands come in handy.svcmd quit 1Resets your serversvcmd quitDoes just that, quits/crashes the dedicated serversvcmd exitResets your server (Linux)
If I have sparked your interest then i have some handy links for youhttp://carnophage.groentjuh.eu/savageserver.html
Shades tutorial and handy list of commandshttp://groentjuh.eu/savagecolors/
Best colorchart ever madehttp://www.newerth.com/smf/index.php/topic,849.15.html
New sfe commands
Note: This a work in progress in particular with spelling, punctuation and grammar please don't give me grief over this as it is something i struggle with. If anything here is incorrect or anything requires adding feel free to post but only if it done so with no malice. Also refrain from posting here if you have forum troll or SPAMMER! next to your name. Also this is a work in progress on aus-savage.com so I may be slow to update here.
MR360 & Aneurysm
Edited by Aneurysm.
Edit Notes:Ok...had a crack at it mate, let me know if I have done something you dont like. I have fixed all the spelling (that I noticed, im not exactly a spelling b champion) and fixed the grammatical structure as best as possible while trying to keep it as original as possible. I edited the colour of the command lines to something more easily seen/read as the dark blue was a strain on the eyes. I have also added/fixed a few command lines that were either not clear or incorrect (the svcmd quit command for example) as well as adding some more explanetory text in a few sections that I felt were lacking. I think that should do the trick, once again, any problems give me a shout.
Edited by MR360
Edit Notes: Just added comment lines so the template can be copied/pasted