#1  
Old 01-13-2009, 02:45 AM
Fenrix's Avatar
Fenrix Offline
Veteran Member
 
Join Date: Mar 2008
Location: Australia
Posts: 1,094
Default How to set up a ZPS server

Zombie Panic: Source Server setup guide

Requirements:
half a brain
ability to use google
the internet
a computer capable of running zombie panic

Installation of SRCDS
go to http://www.srcds.com/ and follow the tutorial there,
however replace the game to be installed with zps instead of hl2mp or cstrike:

hldsupdatetool -command update -game "zps" -dir C:\srcds

this will install the server files and content for zombie panic source off of the steam servers, this will take some time so go watch a movie or something.
Installation size for the zps server is around 1.2gb

Creating an Update script
you can use the above method described by the srcds tutorial to update your game, or you can create a bat file to do it for you so you don't have to do as much work if zps brings out an update.
Create a text file in the same folder as your hldsupdatetool.exe
open it up and paste this into it.

Code:
@echo off
title SRCDS Update Utility
echo (%date%)
echo (%time%)
echo ===================================
echo = Updating Zombie Panic: Source Server =
echo ===================================
hldsupdatetool -command update -game "zps" -dir c:\SRCDS
echo (%time%) Zombie Panic: Source Content is Up to Date
echo (%time%) SRCDS is now up to date!
pause
now you need to rename your text file to something like zpsupdate.bat this will pretty much just update zps for you or tell you it is all upto date already once it has checked that it is all uptodate.


Creating your server configuration
you will need to go into your server folder and find your zps folder, it should be somewhere along the lines of c:/srcds/orangebox/zps/
inside of your zps folder you prettymuch have all of your game content, you should see a maps folder, a cfg folder and a bunch of other folders.

First go into the cfg folder and create a text file and name it server.cfg once this has been created you should open it with notepad.
Now there is all manner of server configs out there, you might try getting one but here is a basic one for you to use along with notes on what each command does.

Code:
// server name
hostname "My Zps Server" <---name of server here

// rcon passsword
rcon_password "paasswooord"  <----- you seriously need one of these, anyone who joins and enters rcon_password then the correct password can do all kinds of commands.

// server cvars

//sv_usescustom 0 <----- this is commented out but if you are running gameplay changing mods you should set this to 1 as per the developers requests, it makes spotting altered gameplay servers much easier for new players.

mp_friendlyfire 0 <---- self explanatory 
sv_alltalk 0 <----- allow everyone to speak and be heard
sv_cheats 0 <----- makes sure cheats are off\
sv_allowupload 1 <------ allow uploading from clients to allow people to use custom sprays
sv_allowdownload 1  <----- allow players to download maps and sounds from server
sv_voiceenable 1  <----- enable or disable voice chat in the server 
mp_timelimit 25 <---- time in minutes that each map runs for
sv_timeout 65 <---- how long before a player is kicked by the server after not reciving info from them

// bandwidth rates/settings
//this stuff is kinda fiddly, many different schools of thought exist on propper b/w settings, I myself let the server defaults do it for me. Use these or not, or go look up some settings.
sv_minrate 4000 
sv_maxrate 8000 
decalfrequency 60 
sv_maxupdaterate 60 
sv_minupdaterate 10 

// server logging
//keep these enabled unless you dont need logging, I suggest you clear your logs folder every month or so.
log on 
sv_logbans 1 
sv_logecho 1 
sv_logfile 1 
sv_log_onefile 1 <----- this keeps the number of logs down

// operation
sv_lan 0 <---- set to 1 for running a lan server 
sv_region 5  <---- this is set to australia, there is a list somewhere that tels you the number of each region.

// execute ban files
exec banned_user.cfg 
exec banned_ip.cfg 
//these will run on map change, sometimes a crash may wipe a recent ban from your banlist, this minimises that issue.

writeid <------ writes bans to banned_user.cfg
writeip <------ writes IP adresses to the ban folder
Region Codes NEW

these go in the sv_region section of your server.cfg the different values correspond to various global regions and make it easier for people in your area to use the server browser to pick your server if they live near it.

* eastcoast - sv_region 0
* westcoast - sv_region 1
* south america - sv_region 2
* europe - sv_region 3
* asia - sv_region 4
* australia - sv_region 5
* middle east - sv_region 6
* africa - sv_region 7
* world - sv_region 255

Running your server, GUI vs Console
you can simply run your srcds.exe and set options from there, this is good for langames and other quick one off servers.
However if you intend to run the server for long periods you will likely want it to run in console mode, this is largely because in console mode it can be automatically restarted using a bat like the one above, in order to make this bat you will need to make a text file in the same folder as your srcds.exe
once it is made add this

Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game zps +map zps_silence +maxplayers 20
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
ok there are some settings here that you may want to change before running it.
Go to the line where it says:
start /wait srcds.exe -console -game zps
the +map command is used to set the map the server will start on, set this to whatever map you wish.
The +maxplayers command is used to set the maximum number of players, the lower the number of players the less bandwidth required for the server, so if your getting lag with lots of players, lower this number.

There are other commands that can be added in that line, although they are not really required unless you are having connection issues.

Ok so now all you do is rename your text file zps.bat then run it, a window should pop up and text should scroll across it, eventually it should say something along the lines of VAC enabled.
Then you simply connect to it as normal from your server browser.

Configuring your network for gaming
ok so you have a server, you have your settings, but no-one can connect to it?

Here are a few things you can try doing to fix it.
1.check your firewall settings and allow your server to access the Internet
2.check your router and open up the port the game is using, usually 27015

If your problems persist, you may want to try going to the srcds website and asking on the forums or simply searching for the information you require.
Source server guide (this has lots of information about setting up your network for source servers including port forwarding)

Ok now thats how you set up and get your server running.
Its quick its fast and it takes about 2 hours to go from start to finish.


================================================== ===================

================================================== =================

Some helpful links
heres a few links Ill be updating whenever I come across some information you might find useful for running a server.

Valve Development Wiki (good for server commands, map editing and other source engine information)

Last edited by Fenrix : 01-15-2009 at 05:34 PM.
Reply With Quote
  #2  
Old 01-13-2009, 02:47 AM
OkeiDo's Avatar
OkeiDo Offline
Contributor
 
Join Date: Jan 2005
Location: Stockholm, Sweden
Posts: 4,289
Send a message via MSN to OkeiDo
Default

Stickied. I hope this can be useful to anyone. Keep it updated with new things if something comes up that might be helpful for people reading this tutorial.
__________________
Reply With Quote
  #3  
Old 01-13-2009, 05:06 AM
Heimer's Avatar
Heimer Offline
Survivor
 
Join Date: Oct 2008
Posts: 138
Default

Nice one.
Some additional rcon security settings.
Code:
sv_rcon_banpenalty "15" //Number of minutes to ban users who fail rcon authentication
sv_rcon_log "1" //Log rcon connections
sv_rcon_maxfailures "5" //Max number of times a user can fail rcon authentication before being banned
sv_rcon_minfailures "3" //Number of times a user can fail rcon authentication during sv_rcon_minfailuretime before being banned
sv_rcon_minfailuretime "10" //Number of seconds to track failed rcon authentications
Reply With Quote
  #4  
Old 01-14-2009, 09:00 PM
Fenrix's Avatar
Fenrix Offline
Veteran Member
 
Join Date: Mar 2008
Location: Australia
Posts: 1,094
Default

Basic Server usage and an explanation of rcon commands
ok so you have started your server and played a few maps, but you want to know how to change things like gravity settings, friendly fire and possibly deal with some people you dont want in your server.

The most basic form of server administration and control is known as "rcon" this is short for Remote Console, it is basically much like logging into these forums to post.
Rcon allows you to enter commands into the console that are locked out for normal players, it is usefull if you do not have the server console open on a computer near you or that you dont have direct access to.

All normal players join a server and play in it, thats all they do, they can do limited client commands in thier console such as binding keys and setting rates (way of controlling data connectivity from a server to your computer).
In order to do rcon commands a player must know a servers rcon password, which is why it is important to set an rcon password and some of the extra security features attached to rcon, mentioned above by Heimer.

So how do I log in and what can I do you ask?
Well firstly you make sure you know your rcon password, this is mentioned above in the server.cfg.

Enabling the console
in order to enter your rcon password to gain access to a server you must have your developers console activated, to do this open your options menu located at the main screen, then click on the keyboard tab and go down to advanced. this should open a menu with some tick boxes, tick the one next to enable developers console.
Now whenever you press the ~ key (located beneath escape) it will open the console, this has much information in it and there are many commands you can do in it.

The password
Ok so your console is open and you want to do some stuff, type:
rcon_password "andyourpasswordhere"

If it is correct you may get a message telling you, depending on a servers settings you may or may not.
ok so once thats done you need to do some commands.
here is a quick example of changing the gravity:

rcon sv_gravity 1

you must enter rcon before you enter a command once you have entered rcon_password.
there are lists of server commands located all over the internet, one I use is.
Client commands (thats for client stuff, its old so some of these are now server only)
Server commands (server commands)

Here is a list of regularly used commands and thier usage however, you will need to type rcon before using these:

sv_gravity <value>
mp_friendlyfire <value>
changelevel <name of map>

they are the most common commands for changing settings, ill leave it to you to discover others.
I will strongly suggest you do not give anyone else your rcon password unless you completely trust them as it is easy to destroy a server if you have rcon access.

Banning
Someone has come into the server and they are messing up the place? heres what you do.
Open your console and type this:
status
it will give you a list of playernames and other relevent information.
go down the list till you reach the offending players name then across untill you reach the bit that says STEAM, this is called a steamID everyone has thier own unique steam ID so servers can ban people they do not want playing on them.

it will usually go something like this: STEAM:0:1:4452295
grab this bit by selecting and copying it, then enter this

banid <minutes> <STEAM ID>

this will ban that player for however many minutes you enter, 0 will ban them permanently.

That is the most basic form of server administration, it is however very fiddly and does not lend its self so much to the administration of players as some of the administration mods mentioned below do.

Anyhow I strongly suggest not giving your rcon password to anyone who you do not trust completely unless you are willing to risk them destroying your server settings.
__________________

Website here Tutorials: here

Last edited by Fenrix : 01-14-2009 at 09:02 PM.
Reply With Quote
  #5  
Old 01-14-2009, 09:01 PM
Fenrix's Avatar
Fenrix Offline
Veteran Member
 
Join Date: Mar 2008
Location: Australia
Posts: 1,094
Default

================================================== ===================
Advanced Server Control

ok this part is for people who have thier server running, have players and want to know a little more about what they can do with thier server to mould it into a fun place to play.

The first thing to do is to get yourself an admin plugin, there are two main contenders for plugin systems for the Source Engine that allow extra features from map voting to kicking, banning and player punishment.

I have limited knowlage of Event Scripts which is used in many counterstrike servers and i think it can be used on zombie panic, here is a link if you want to investigate it.
http://www.mattie.info/cs/

I have somewhat more knowledge of the other program used by most servers offering custom content which is.
Metamod, now metamod is more of a plugin system designed to let other plugins interface with the source engine, its basically a bunch of .dlls and config files that tell your server what to do.
so metamod on its own is fairly useless, however when you use one of the plugins designed to work with metamod you have a very powerful tool.

the most popular one of these is called Sourcemod, you have probly played in a server running this and may not have known it, whenever you see advertisments, voting systems, ranking systems and other features like goremods or extra player models. chances are its sourcemod running it.

then there is BAT or Basic Admin Tool, a simple program which allows menu based administration of a server. (I used this back when sourcemod had major functionality problems)

so here is a link to metamod, sourcemod and I think BAT can be found in there too if it still works.
http://www.sourcemod.net/

If you cant figure out how to install sourcemod or metamod I will soon be expanding this to include a basic tutorial on how to get them working and what versions to use.
__________________

Website here Tutorials: here
Reply With Quote
  #6  
Old 01-15-2009, 08:09 AM
bobop Offline
Zombie
 
Join Date: Mar 2007
Posts: 319
Default

It also requires you to have your ports open that are required to be open. Also requires for you to have your routers firewall to not block it.
Reply With Quote
  #7  
Old 01-15-2009, 05:30 PM
Fenrix's Avatar
Fenrix Offline
Veteran Member
 
Join Date: Mar 2008
Location: Australia
Posts: 1,094
Default

preeety sure i mentioned that...
theres a link up there anyway that leads to a detailed description of how to configure your router for source servers.

Routers have firewalls now? I know high end ones have hardware firewalls but Im fairly sure most dont...

meh tweaked and moved the link for more clarity
__________________

Website here Tutorials: here

Last edited by Fenrix : 01-15-2009 at 05:34 PM.
Reply With Quote
  #8  
Old 04-14-2009, 11:09 AM
Zombie Star Offline
Civilian
 
Join Date: Feb 2009
Posts: 24
Default

Server works great it shows on internet and on the lan you can fiind it in two places plus the most highest lag was 56 its awesome the server name is TheJoker's.[LakeMaps|Oradea[Europe].ro idk if it will be opened all the time but in the evning it surely will be so join and have fun.I also formed a clan named The Joker's our clan tag is {JK} for ex:{JK}No0b our site is curently under construction it will be an anouncment on the server with the name



I FORGIT TO GIVE A BIG THANX TO Fenrix for this awesome tutorial!!
Reply With Quote
  #9  
Old 04-17-2009, 06:54 AM
Fenrix's Avatar
Fenrix Offline
Veteran Member
 
Join Date: Mar 2008
Location: Australia
Posts: 1,094
Default

No problems
I don't have time to do a proper install guide for sourcemod and metamod right now so Ill leave that until my holidays, if anyone does a good one feel free to post it here... just make sure it's easy to understand and contains a few links to other tutorials and pages to download the plugins.
Ive already added some in my links but it will make it easier for people looking for the info.
__________________

Website here Tutorials: here
Reply With Quote
  #10  
Old 04-18-2009, 06:28 PM
sam1234 Offline
Civilian
 
Join Date: Apr 2009
Posts: 1
Default

Fenrix thankyou so much for this tutorial. I'm an old ZPS player (you might remember me, {AoP} B**ch tits?) and wasn't satisfied with the changes with ZPS when source took it over. My friends and i regularly LAN the old ZPS (version 1.2 i think) and have been trying to find a way to host a server for the old ZPS playing the old custom maps we loved to play. I stumbled accross your tutorial and now have a server running the old maps, but there being ran on the new ZPS. I was wondering if anyone has any idea how i can change the version of the game i'm running on my server. I didn't follow the tutorial completely, as i didn't have any downloads left to download the 1.2 gb patch, currently, i'm just using Zombie Panic! Source Dedicated Server tool to host my server.

Thanks
sam

Last edited by sam1234 : 04-18-2009 at 06:29 PM. Reason: Profanity?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -8. The time now is 11:20 AM.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Style by © Mathew Summerfield
All Zombie Panic related images and material © Monochrome