Welcome, Guest. Please login or register.
Did you miss your activation email?
November 19, 2017, 10:45:48 am

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The XR1.1 Client is out now! Download it now!
188623 Posts in 10884 Topics by 17943 Members
Latest Member: Yustus123321
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Archive
| |-+  Server Forum
| | |-+  TUTORIAL: How To Set Up A Dedicated Server
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 Go Down Print
Author Topic: TUTORIAL: How To Set Up A Dedicated Server  (Read 22154 times)
MR360
Newbie
*
Posts: 26


View Profile
« on: September 18, 2007, 11:29:26 pm »

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_name
External File.cfg
svr_name

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 control
set 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 world
set svr_port 11235
//The port your server will use 11235 is default
set svr_sendStats 1
//Will determine if the server is to record stats
svr_broadcast 1
//1=query the masterserver; 0 = dont
svr_maxclients 24
//Maximum players allowed on a server

// pregame control
set 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 = dont
set sv_warmupTime 15000
//The time warmup will run for in milli seconds
set sv_readyPercent 0.50
//The percetage of players that have to select ready for the game to start
set sv_minPlayers 2
//The minimum amount of players required for a game to occur

// game time commands
set sv_autoRespawn 1
//1 = auto Respawn on; 0 = Not on
set sv_balancedTeams 1
//1 = doesn't allow people to join stacked teams; 0 = allows it
set sv_clientVoteTime 60
//The amount of time a vote can run for in seconds

//game control
set sv_clientConnectMoney 10000
//The amount of gold a player gets on connecting
set sv_teamDamage 0
//Friendly fire anyone?
set sv_maxMoney 100000
//Sets the maximum gold players can have
set sv_timeLimit 3600000
//Game time limit

// server passwords
set svr_password //Comment this line out to have no password on your server
set sv_refereePassword "chose a password"
//Referee Password
set sv_refGodPassword "chose a password"
//God Referee Pass
set svr_adminPassword "chose a password"
//Admin password

// other
set 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 console

cl_adminpassword "my admin password"

//Admin password duh! Tongue (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 1
Resets your server
svcmd quit
Does just that, quits/crashes the dedicated server

svcmd exit
Resets your server (Linux)

If I have sparked your interest then i have some handy links for you
http://carnophage.groentjuh.eu/savageserver.html
Shades tutorial and handy list of commands
http://groentjuh.eu/savagecolors/
Best colorchart ever made
http://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.
Cheers,
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.
Aneurysm

Edited by MR360
Edit Notes: Just added comment lines so the template can be copied/pasted
« Last Edit: January 23, 2008, 05:37:08 am by MR360 » Logged
darkbread
Newerth Council
Super Hero Member
*
Posts: 1276


a lump of bread, that is of a dark color...


View Profile
« Reply #1 on: September 19, 2007, 02:32:05 pm »

 Shocked euhm this tutorial exists already  Rolleyes
Logged

EskiMo
Demonic4ever.
Hero Member
*****
Posts: 913


The SnowMaN will eat you all!


View Profile WWW
« Reply #2 on: September 19, 2007, 03:12:19 pm »

gg ^^ v75
Logged


MR360
Newbie
*
Posts: 26


View Profile
« Reply #3 on: September 20, 2007, 03:18:32 am »

Quote
Re: TUTORIAL: How To Set Up A Dedicated Server
« Reply #1 on: September 19, 2007, 02:32:05 pm »
 shocked euhm this tutorial exists already  rolleyes
this tutorial does not exist already it was written from scratch there is an outdated tutorial elsewhere which is the reason for this being written

unlike the outdated material this will be constantly updated as well

MR360
« Last Edit: September 20, 2007, 03:20:04 am by MR360 » Logged
afs
Newbie
*
Posts: 40



View Profile
« Reply #4 on: September 21, 2007, 05:52:25 am »

update svr_quit to quit already then.
Logged
Django
Administrator
Legendary Member
*****
Posts: 2557



View Profile
« Reply #5 on: September 22, 2007, 04:16:20 am »

to restart your server type svcmd exit on linux since  the .sh script will start it up again for you.

also suggest you use SEP.cfg files only and delete server.cfg, SEP.cfg is loaded at the start of every new map so unless you change your server files you won't need to restart the server for minor changes
Logged
MR360
Newbie
*
Posts: 26


View Profile
« Reply #6 on: October 06, 2007, 12:57:15 am »

Fixed that also added the linux command
Logged
JaferSmash
Newbie
*
Posts: 1


View Profile
« Reply #7 on: January 22, 2008, 01:13:37 pm »

Ty 360 and gg
« Last Edit: January 22, 2008, 11:20:23 pm by JaferSmash » Logged
javan900
Newbie
*
Posts: 1



View Profile
« Reply #8 on: September 19, 2008, 06:28:44 pm »

ty very helpful Grin
Logged

Mj411400
Awesomeness
Newbie
*
Posts: 27


i prefer to comm.


View Profile
« Reply #9 on: September 19, 2008, 08:14:04 pm »

thx man. Grin i got a sever runing but now i ust need to get rid of fire wall and for some reson when i but my pas in to become ref it says im useing wrong pass but i know its right. also when ever i put cl_adminpassword adminpass(wich is my pass) it dos nothening at all. you but /adminpassword right? like /refpwd refpass. Undecided
Logged

Moxy
Newerth Donator
Super Hero Member
****
Posts: 1933



View Profile WWW
« Reply #10 on: September 21, 2008, 08:31:29 am »

adminpass you bring down the console using the button just below escape - on uk keyboards - ` - and then type cl_adminpassword <passhere> it dosent actualy tell you if you logged in or not. to find out just type: svcmd p_speed, if it comes up with 2.8 then your logged in as admin. i believe u canb do /cl_adminpassword <passhere> in the chat box too but i never use it so i cant say for certanity that it works. whilst typing in the console i know does.

also after you managed to log in with admin. you can type in "sv_refereepassword" in the console and it should tell you what the pwd is, same with god "sv_refgodpassword"


Hope this helps. anymore questions i'll see if i cna answer them.
Logged

Mj411400
Awesomeness
Newbie
*
Posts: 27


i prefer to comm.


View Profile
« Reply #11 on: September 21, 2008, 08:10:52 pm »

alright thx ill try that. Smiley do you put the <> around the pass?
edit::: ok i tryed that when i put in svcmd p_speed it dosent do anything.heres my sever thing tell me whats wrong plz.(all the g's in name is so i can find sever better when im testing.)
// begin server.txt

// basic server control
svr_name "My Savage Serverggggggggggggggggg"
default_world eden2
svr_port 11235
svr_sendStats 1
svr_broadcast 1
svr_maxclients 24

// pregame control
sv_allowGuestReferee 1
sv_doWarmup 1
sv_warmupTime 15000
sv_readyPercent 0.50
sv_minPlayers 2

// game time commands
sv_autoRespawn 1
sv_balancedTeams 1
sv_clientVoteTime 15

// server passwords
set sv_refGodPassword "gref"   //(do you put the " around pas?) Undecided
sv_refereePassword "refpass"
svr_adminPassword "AdminPass"
// other
heartbeatserver_ip masterserver.savage.s2games.com //heartbeat server fix

// end server.txt
« Last Edit: September 22, 2008, 12:28:44 am by Mj411400 » Logged

Moxy
Newerth Donator
Super Hero Member
****
Posts: 1933



View Profile WWW
« Reply #12 on: September 22, 2008, 08:13:03 am »

alright, if thats ur cfg then you should type the following exactly as i put it in the console:

cl_adminpassword adminpass


Then type the following to check that ur logged in.

svcmd p_speed

it should bring up a value of 2.8

all in the console mind.
Logged

Mj411400
Awesomeness
Newbie
*
Posts: 27


i prefer to comm.


View Profile
« Reply #13 on: September 22, 2008, 08:02:19 pm »

 Cry man this sucks i did just what u said i know im doing it right but it wont say 2.8 like it should.. do you thank maby because of firewall and it being a LAN game??? thx for helping man.
Logged

Moxy
Newerth Donator
Super Hero Member
****
Posts: 1933



View Profile WWW
« Reply #14 on: September 22, 2008, 09:42:11 pm »

not really sure, i run demo hellpit servers, but im still new at this admin thing. you better talk to dj/groent, they have more experince in this field.
Logged

Pages: [1] 2 3 Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 19 queries.