Welcome, Guest. Please login or register.
Did you miss your activation email?
September 23, 2017, 01:10:33 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!
188528 Posts in 10877 Topics by 17914 Members
Latest Member: Afriken
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Archive
| |-+  Server Forum
| | |-+  TUTORIAL: How To Set Up A Dedicated Server + Config questions topic!(Old SFE)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 ... 5 Go Down Print
Author Topic: TUTORIAL: How To Set Up A Dedicated Server + Config questions topic!(Old SFE)  (Read 50348 times)
Groentjuh
Newerth Serveradmin, German Mirror and Webdeveloper
Administrator
Super Hero Member
*****
Posts: 1350


View Profile WWW
« on: April 27, 2008, 04:44:17 pm »

PLEASE NOTE THIS HOW TO IS NOT RELEVANT TO SAVAGE XR SERVERS

There are many people who want to setup a server and most will get problems during the setting up of the server or with some config being wrong.

In this topic i'll try to tell how to setup a savage server and how to solve some common problems.

Installing a Savage 1 Server
Setting up a Savage 1 server is not hard
Download the SFE Windows/Linux Server Pack

and Download the SFE* Windows/Linux Server Patch
Windows:
1. Unzip the SFE-Server-Win32.zip
2. Unzip the win-server-auth-patch.zip. The files in the zip must overwrite the files of the SFE server install
3. Start the server by starting silverback.exe

Linux:
1. Extract the download using:
Code:
tar zxvf SFE-Server.tar.gz path
2. Unzip the lin-server-auth-patch.zip. The files in the zip must overwrite the files of the SFE server install
3. Start the server using:
Code:
./sfe_dedicated.sh
(Be sure to be in the directory that you extracted the files too.)

If you have problems with missing libs files use your linux distrobutions package manager to install them. For example on Debian if you got this error:
Code:
savage@myserver:~$ ./sfe_dedicated.sh
./sfe_dedicated.bin: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
You would search for the lib package using:
Code:
apt-cache search libglib
And install the package with:
Code:
apt-get install libglib

Getting it online
To get it online you'll have to ask yourself some questions.
1. Do I have a firewall which might be blocking the savage server?
  Incase you do. Turn it off or make an exception for the savage server.
2. Do I have a router?
  Incase you do. Make sure it forwards the (default) port 11235 UDP AND TCP to your PC. Check the instruction manual of the router if you don't know how to do that! Possibly this site can help you with forwarding the ports.

After this is all done, we'll test if we can reach it.
1. Go to whatismyip.com. This site will tell you your IP
2 .After that you can go to:
http://www.newerth.com/?id=serverlist&details=YOUR IP HERE:PORT OF SAVAGE SERVER HERE (Default: 11235)

You might notice when you open savage that your server will appear as LAN. This only mean that it run in your network. Once it is in the serverlist it'll show up twice! one time with LAN and 1 time with a ping. I recommend to connect to the LAN server because this will have you bandwidth!

MAPSERVER
You did think you were ready with setting things up right? Well, incase you want to play your own maps on your server you'll setup a mapserver. This a nothing more then a webserver which sends maps and minimaps to the clients who don't have the map.
You can use the mapserver of newerth or groentjuh. Incase you use newerth's/groentjuh's mapserver, Make sure it has all the maps you have on your server!
URL of Newerth's mapserver: http://www.newerth.com/maps/sav1/
URL of groentjuh's mapserver: http://sav1maps.groentjuh.eu/

To setup your own: Just install any webserver/use any webhosting you like and put all the maps on there!

Elect votes to become commander
This mod for LINUX ONLY, alters the voting system of SFE so that a commander has to be voted into the commander seat preventing newbies from ruining games.
You can download it here
To install it Simply follow the next step or the step on the download pages (AND NOT THE INSTALL NOTES IN THE FILE):
1. Rename your current game.so file to ex2.so (in the savage server game folder)
2. Extract the file Nonewbcomm-x86.tar.gz (to the savage server game folder) using the command:
Code:
tar zxvf Nonewbcomm-x86.tar.gz
3. Add to your SEP.cfg file
Code:
//Elect commanders
set sv_electCommanders 1

Configuration.. WTF I've got 21 config files
and 1 useless empty buddies.cfg file!


There's a lots of .cfg files in the game folder of your savage server. Some Tutorials tell you should put your config in autoexec.cfg/server.cfg and other say SEP.cfg.
This tutorial will tell you to use both!

Savage will execute the config files in the next order:
1. startup.cfg
2. bans.cfg
3. autoexec.cfg
4. server.cfg
5. MapsSEP.cfg
6. SEP.cfg
7. CTF.cfg/DC.cfg/DMC.cfg/devnormal.cfg/duel.cfg/frenzy.cfg/normal.cfg/
   TS_CTF.cfg/TS_DC.cfg/TS_DMC.cfg/TS_devnormal.cfg/TS_duel.cfg/TS_frenzy.cfg/TS_normal.cfg *
8. banlist.cfg

and at each map change/map reload
1. SEP.cfg
2. CTF.cfg/DC.cfg/DMC.cfg/devnormal.cfg/duel.cfg/frenzy.cfg/normal.cfg/
   TS_CTF.cfg/TS_DC.cfg/TS_DMC.cfg/TS_devnormal.cfg/TS_duel.cfg/TS_frenzy.cfg/TS_normal.cfg *

* depends on gametype

autoexec.cfg/server.cfg gets loaded once. This makes it is a great place to put the join password. If you would put the join password in SEP.cfg, you'll need to change SEP.cfg in order to keep the join password changed.
For everything else it's better to use SEP.cfg because this is loaded more often!

Basic Configuration
I want to leave most of the configuration part to whoever is installing the servers...but I'll help them to find some variables!
The first thing you'll have to do is make SEP.cfg look like:
Code:
//Server Config

//Server name
svr_name MyFirstUberPWNGEserver(NameHere)!

//Admin password
svr_adminpassword my-CaSe-SeNsItIvE-unhackable-admin-password-with-1337-numbers

//Normal ref password
sv_refereePassword doNOTabuse

//God ref password
sv_refGodPassword ANDKEEPTHEGAMEFAIR!

//Allow guest ref
sv_allowGuestReferee 0

//Map url (Yes, This is the setting which it uber important if you want to play your own maps!)
svr_mapurl "http://www.newerth.com/maps/sav1/"

//Max clients
svr_maxclients 32

//Set port
svr_port 11235

//Add server to list
svr_broadcast 1

//Remote cmds
svr_allowRemoteSvcmds 1

//Team 1 Race
sv_team1race human

//Team 2 Race
sv_team2race beast

//Team 3 Race
sv_team3race human

//Team 4 Race
sv_team4race beast

//Team 5 Race
sv_team1race human

//Team 6 Race
sv_team2race beast

//Team 7 Race
sv_team3race human

//Team 8 Race
sv_team4race beast
Most basic configuration used use the "set" command to set settings. This is actually not what "set" should be used for. "Set" should be used to make new variables and not change them. You can set a variable that is no longer used however you cannot change a variable that doesn't exist. if you're not using "set", warnings will be shown in the server console when a variable, which doesn't exist, is changed.

make server.cfg (incase you want a private server) look like:
Code:
//Server password
svr_password myjoinpass
make server.cfg (incase you want a public server) look like:
Code:
//Server password
clear svr_password

Logging in as admin
Well every tutorial will test you the same thing!
Join your savage server and open the console. Type in the console:
Code:
cl_adminpassword my-CaSe-SeNsItIvE-unhackable-admin-password-with-1337-numbers
(or cl_admi and press tab to auto-complete!)
To test if you're really admin, type the next thing:
Code:
svcmd svr_name
This should tell you the name of the server if you're logged in else It'll do nothing...

But what can I do now? Well you can do lots of thing! Changing gravity and walking speed!
Code:
svcmd p_speed 1; svcmd p_gravity 0.05
Code:
svcmd p_speed 2.8; svcmd p_gravity 1

You can also change weapons using 2 commands:
Code:
svcmd objedit human_bow
svcmd objset hit_world bounce
svcmd objset bounce 1

Ok, had enough fun? No? Well continue to play with your server later, because I want to move on!
As you know I've given a really simple Basic Configuration for your server. It's your task to make the server the best server of savage! To do this you'll need the best settings, a great server to run the savage server on(Money helps!) and good referees who are online 24/7/365(Money helps here too!  Evil  Afro).
Savage has lots of variable and not much documentation! But it has 2 great commands, cvarlist and cmdlist.
Code:
svcmd cvarlist votes 0 9
oh oh! You just found how to turn on/off votes!
Code:
svcmd cvarlist votes 10 19
You just found more!!!
Code:
svcmd cmdlist revive
OMG there's a command to revive somebody!

There's also 2 very useful links which can help you to find variables:
Shade's very old but useful Server Administration page
OLD SEP Documentation

Just make sure you apply your changes to SEP.cfg (and add fancy notes like I did in the basic configuration!)

Great additions to Configuration
In the section you'll find puts of configuration files which might be useful

Votes:
SEP.cfg:
Code:
//Votes
//For all sv_allow*Votes, a value of 0 will disallow them, 1 will allow them, 2 will allow them ONLY during the endgame, 3 will do something aswell... and maybe 4,5,6,7,8 as well but I lost what they did!
// Disable ALL votes!
sv_disableVoting 0
//Concede
sv_allowConcedeVotes 1
//Pause
sv_allowPauseVotes 1
//World
sv_allowMapVotes 1
//Nextmap
sv_allowNextMapVotes 1
//Restart
sv_allowRestartVotes 1
//Draw
sv_allowDrawVotes 1
//Race
sv_allowRaceVotes 1
//Elect
sv_allowElectVotes 1
//Build
sv_allowBuildRequests 1
//Kick
sv_allowKickVotes 1
//Mute
sv_allowMuteVotes 1
//Shuffle
sv_allowShuffleVotes 1
//Time
sv_allowTimeVotes 1
//Promote
sv_allowPromoteRequests 1
//Powerup
sv_allowPowerupRequests 1
//Message
sv_allowMsgVotes 1
//Money
sv_allowMoneyRequests 1

VIP password:
server.cfg:
Code:
//VIP password
svr_passwordVIP "VIPPASSWORD"

//When server has VIPslots: Replacement for svr_password
svr_passwordNoVIP "JOINPASSWORD"

SEP.cfg:
Code:
//Amount of normal slots
svr_NonVIPSlots "24"

SEP.cfg:
Code:
//Amount of VIP slot (in this case 2!)
svr_NonVIPSlots [svr_maxclients - 2]

Commander Tax:
SEP.cfg:
Code:
//Comm tax
sv_enableTithe 1

Message of the day
SEP.cfg:
Code:
//Message of the day
sv_motd1 "H"
sv_motd2 "E"
sv_motd3 "L"
sv_motd4 "L"
sv_motd5 "O"
sv_motd6 "!"

Duel Competition
SEP.cfg:
Code:
//Duel mode:
//Time in ms at which the signup spamming begins.
sv_beginsignup 0

//Time to duel sign ending
sv_endsignup 30000

//Can spectators use the global chat? If 0, it automatically becomes team chat so it won't distract the duellers
sv_dueluseglobal 1

//Same as above but for referees.
sv_duelrefuseglobal 1

//The unit for team 1
sv_duelteam1unit "human_legionnaire"

//The unit for team 2
sv_duelteam2unit "beast_predator"

//Give a waypoint to the person you've challenged
sv_duelwaypoints 1

Forcing the savage server to use 1 IP
startup.cfg:
Code:
setsave net_forceip 133.71.33.7

Anyone got any idea what sections to add?

Problems!!

Players with a old-SFE client can not join a team
Add the next line to SEP.cfg:
Code:
svr_patchFTW 0
If you set it to 1 players without the latest SFE cannot join the server

Players without a SFE client can not join a team
Add the next line to SEP.cfg:
Code:
sv_forceSEP 0
If you set it to 1 players without SFE cannot join the server

Players without the (latest) SFE get spammed to get it
Add the next line to SEP.cfg:
Code:
sv_NonSEPSpamFrequency 0
This variable controls the frequency of this spam in MS. 0 = disabled

Nobody can call any votes!
Add the next line to SEP.cfg:
Code:
sv_disableVoting 0

I hope this post is really useful for all who want to become a savage server admin!
Incase you have problems with your server config, Please post it in the topic so I try to add it into the huge post!
« Last Edit: May 04, 2012, 06:14:14 pm by Groentjuh » Logged


Before adding any of my IMs, ask yourself: Can I ask it in a PM?
Before sending me a PM with questions, Search the forums!
Wanna be ref? Post on my Server Forum
Groentjuh
Newerth Serveradmin, German Mirror and Webdeveloper
Administrator
Super Hero Member
*****
Posts: 1350


View Profile WWW
« Reply #1 on: April 27, 2008, 04:45:59 pm »

--reserved post--
Logged


Before adding any of my IMs, ask yourself: Can I ask it in a PM?
Before sending me a PM with questions, Search the forums!
Wanna be ref? Post on my Server Forum
Bunny
Evo - my biatches!
Hero Member
*****
Posts: 634


Evolved Organizer


View Profile
« Reply #2 on: April 27, 2008, 11:14:56 pm »

Nice Groen!  Afro
Logged

distortedbsd
Newbie
*
Posts: 2


View Profile
« Reply #3 on: June 21, 2008, 11:48:03 am »

Is there a way to enable 4 teams mode? I tried to add:

Code:
//Team 1 Race
set sv_team1race human

//Team 2 Race
set sv_team2race beast

//Team 3 Race
set sv_team3race human

//Team 4 Race
set sv_team4race beast

but nothing happens. There are still just first 2 teams.


And one more question, is there a way a to open dedicated server in background mode on linux. When i try to run it with & it goes in background but the process is suspended. Is there a way to solve this issue??
Logged
Groentjuh
Newerth Serveradmin, German Mirror and Webdeveloper
Administrator
Super Hero Member
*****
Posts: 1350


View Profile WWW
« Reply #4 on: June 21, 2008, 12:12:06 pm »

Is there a way to enable 4 teams mode?
Play a 4 team map.

I run my servers in a screen.
Start:
Code:
screen -S savage
./sfe_dedicated.sh
Press 'a' and then 'd' while holding down 'ctrl' to detach from the screen.

Stop:
Code:
screen -r savage
Press ctrl + c twice. (Once to shutdown the server and the second time for the start-up script)
then press ctrl + d to terminate the screen.
Logged


Before adding any of my IMs, ask yourself: Can I ask it in a PM?
Before sending me a PM with questions, Search the forums!
Wanna be ref? Post on my Server Forum
distortedbsd
Newbie
*
Posts: 2


View Profile
« Reply #5 on: June 21, 2008, 12:32:56 pm »

Thx a lot dude, you just saved my life.  Smiley
Angry players can cause severe injures!
Logged
SoftBlade
Newbie
*
Posts: 1


View Profile
« Reply #6 on: July 01, 2008, 09:15:10 am »

If I tweak a few settings here and there me and my buddies will be able to play over LAN too, right?

NVM, Downloaded and saw that its easy to LAN =P
« Last Edit: July 04, 2008, 06:52:51 am by SoftBlade » Logged
Dr. Evil
Newerth Donator
Newbie
****
Posts: 25



View Profile
« Reply #7 on: July 02, 2008, 05:19:06 pm »

Brilliant post.  Thank you!
Logged
nixos
Newbie
*
Posts: 11


View Profile
« Reply #8 on: July 24, 2008, 11:59:23 pm »

hi,
a big kiss to groenjuth and who gave some info, i really thank you for giving infos i really wanted to host a server
with my modifications !  Cheesy

anyway the info was not enough ! i will be glad to share my story...

days ago i literally went mad, because i followed instructions and i couldnt accomplish the server hosting.

my problem was : port forwarding 11235

this is how i resolved:

i have a modem router adsl2+ gave for free by my internet service provider, is a thomson 585v6
the problem is it has a firmware made by my isp tiscali, which doesnt work that well...
i had to download the wizard flash utility, and an OLD firmware...
tiscali has 6.7 firmware which is modified by them
thomson made 6.1 and 6.2+ firmwares with a lock to prevent users from using dmt.exe program to improve the bandwitch (or whatever is spelled)

so i had to download an old revision firmware; the flash utility and i had to know in advance the default user password, which 6.7 tiscali firmware is: admin admin, but thomson's old one is Administrator (password left blank)
without knowing the default user password of the 5.4 firmware i would had been screwed !

after hardware resetting the modem/router, jacking off the phone line jack..., using only ethernet link, downgrading, re setting my router to use vci 8,35 ppp over atm and such, user pwd of my account and such, static ip ! 192.168.1.1 , open port 11235 as guide said... i could open the damn friggin port !

moral of the story ? damn firmware are TEH EV1L ! the modem/router isp company will gladly throw to you will be blocked ad hell, ESPECIALLY but not limited to voice over ip port, p2p port, and well sometimes even savage port  Cry
Logged
Moxy
Newerth Donator
Super Hero Member
****
Posts: 1933



View Profile WWW
« Reply #9 on: July 25, 2008, 10:35:11 am »

Hey guys, whats the command for respawntime? Oh and my XP is way of the charts. can someone tell me what public and CW xp should be? i think cw xp is default right? Basicaly what evo has it at.
« Last Edit: July 25, 2008, 12:17:36 pm by Moxy » Logged

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



View Profile WWW
« Reply #10 on: July 30, 2008, 10:05:56 am »

Nice to know there's help here for thoes who ask for it...........

anyway, whats the command so the server waits for commanders sv_waitforcommander dosent work
Logged

$lizeR
Jr. Member
**
Posts: 83



View Profile
« Reply #11 on: July 30, 2008, 11:15:38 am »

The Cw XP ain't the one EvO has. Atleast not the one on Public Tongue EvO match server got default thats right. I also had some problems with Xp Tongue just experiment around a bit.
Logged
Moxy
Newerth Donator
Super Hero Member
****
Posts: 1933



View Profile WWW
« Reply #12 on: July 31, 2008, 06:36:45 pm »

got it sorted Smiley
Logged

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



View Profile WWW
« Reply #13 on: August 01, 2008, 07:22:47 pm »

okay, my server is fucked. nextmap vote dosent work now. like wtf Huh?
Logged

Daemon
XR Main Developer
Legendary Member
****
Posts: 4716


beware, for this is the everbroken...


View Profile
« Reply #14 on: September 11, 2008, 12:11:47 am »

Hi!

Can you tell me pls how can i save the settings i've changed using the game console, so they don't get lost after next map change? I don't have access to ftp or ssh type of accounts just yet, and was eager to get the remotely hosted server rolling.

Thanks.

P.S. For example i'd like it to remember the svr_name or the svr_password.
Logged

Pages: [1] 2 3 ... 5 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.053 seconds with 19 queries.