Digital Paint Discussion Board
Paintball 2: The Game => Server Discussion => Topic started by: Butcher on May 09, 2004, 12:27:38 PM
-
Is there a dedicated server option for WIndows?
-
Yes. I am working on a server guide but it's not done yet. Here's the alpha version:
1. System and bandwidth requirements
Bandwidth requirements for Paintball 2 are lower than most online games. Each user will consume about 30 kilobits per second (that's about 3 Kilobytes) – slightly more during lots of action. However, ping times are important, and most cable modems/DSL connections will not provide sufficiently low latency for hosting game servers.
System requirements are also low. A server running Windows 98 or above (NT/2K/XP recommended) should have 128 MB of RAM and a 300 mhz processor. System requirements in Linux are slightly lower.
2. Software
For Windows, you will need the paintball2 standalone distribution, and any maps you want to throw in.
For Linux, you will need the paintball2 standalone distribution for Windows and id's Quake2 linux server. Install id's Quake2 server into the paintball2 directory. You will need maps here as well.
2.Configuration
Locate the server.cfg file in the pball/configs directory (paintball2 standalone) or pball directory (Quake2 mod). Read every line of this file carefully. The Generic Server Info section contains the information you will see in your server browser. The Message of the Day and Rotation files should be edited as well, more on that later. Uncomment the logging lines if you want logging. Below the logging options, you will see the game settings, beginning with the paint and smoke grenade count.
A brief explanation of the important variables:
Autojoin – Determines whether players will be assigned to teams on connect. Can be normal or off.
Ffire – Friendly fire. Should be off.
Grenadeffire – Determines whether your own grenades can kill you and your teammates.
Public – If this is set to 1, server will periodically contact the planetquake master server and insert itself into the public server list.
Tripping – This was an experimental way to curtail bunny hopping. It's annoying. Leave it at 0!
Real_ball_flight – Causes paintballs to shoot in random directions unless you have a barrel.
Ball_addplayerspeed – If set to 1, causes your velocity to be added to the velocity of any paintballs you shoot.
Elim – Elimination time in seconds.
Cursing – If set to 0, the humourous swear filter is activated.
Bouncy – If set to 1, paintballs bounce instead of break.
Deadtalk – If set to 0, eliminated players' chat will not be heard by alive ones.
Don't forget to edit rotation.cfg, the maplist file.
3. Running the server
NOTE: The Linux build of Quake2 requires a library called glibc. To see if you have it, type ldd quake2 at your shell prompt. Your distribution's package manager will contain a glibc package; it is up to you to locate and install it.
For Windows, go to the Run dialog and type the following:
C:\path_to_paintball\paintball2.exe +set dedicated 1 +set maxclients 12 +exec server.cfg +map battle
(Obviously you may replace 'battle' with any starting map, and maxclients can be any value.)
In Linux, go to your quake2 directory and type the following:
NOTE: The & at the end of the command line indicates that the server will run in the background and all the console messages will be hidden. If you are starting the server for the first time, or if you are running in a desktop environment such as X Windows or KDE that supports multiple shell windows open at once, you may want to omit the & sign.
./quake2 +set game pball +set deathmatch 1 +set dedicated 1 +set maxclients 12 +exec server.cfg +map battle &
You should now be able to connect to your server.
Note: It is not recommended to run both the client and the server on the same computer.
4. Shutting Down the Server
If the server is not running in the background (ie, it has a window of its own), activate the window and type 'quit' or press Ctrl-C.
If the server is running in the background (ie, you used the & sign on a Linux machine), type 'ps' in the shell and press Enter to get a list of processes. Locate quake2 and remember its process ID. Then type 'kill <id>', replacing <id> with the process ID.
-
Cool! Thanks alot man!
-
hm...when running a widows server, is there any way to make it run in the backround? like in the system tray?
-
No, but you can get a program called FireDaemon (google it), which allows you to run any program as a service, and for running just one service, it's free. Alternatively the Windows NT Resource Kit contains a utility called srvany that accomplishes the same thing, but I wasn't able to track it down.
-
i started a server but my friend couldn't detect it.
why?
-
LAN servers will show up automatically, but if you're connecting over the internet, you have to manually type in the ip (ie: "connect 12.34.56.78"). If you set up a permanent server, I can add it to the list and it will show up for everyone.
-
where does it say the server #
-
To obtain your IP, go to www.whatismyip.com.
But frankly if you do not know the simple facts of networking like how to obtain your own IP, you are probably not qualified to be running a server. Sorry.
-
hey im new at the server thing and i wanna host a game everynow and then so i just need to know some of the server cmds in the dedicated "black box" thing.... thanks
-
Post removed
-
Well i too was in you situation!
To talk to players in the sever from the console (black box) type say exe: say hi there how is the game going?
to get all the player ip adresses type sv listip
exe:sv listip
Filterlist:(ips go here)
To add a ip to the ban list type sv addip exe:
sv addip 12.34.56.77:34344
To remove ips from the ban list type sv removeip
exe: sv removeip 12.34.56.77:34344
To find out the admin passes you have set type oppass1
Exe: oppass1 (to get the pass for level 1)
oppass2 (for level 2)
Please correct anything I have mistyped or did worng!
Note: iv never gotten sv listip to show ip's it says filter list then nothing else
-
NeRo, in your case, it would probably be better to start the in-game server option rather than dedicated. Standard consumer broadband connections can't handle more than 4 players without lag.
I have broadband and if im correct lower ping is bette,r right? Well my server has the lowest ping off all of the public server (GOD pub server) and i run of from time warner Cabel inter net RoadRunner.
Tip if you want to run a server off from a Cable or Dsl connection: If you run a dedicated public server (like mine) then your modem gets HOT! I learned that a hot modem makes the server laggy and slow. If you can put it near a floor vent if you have central air,a air conditioner of blow a fan on it it will gratly inprove your server ping! ;)
Come winter idk what im goin to do about the modem heat :o
-
LAN servers will show up automatically, but if you're connecting over the internet, you have to manually type in the ip (ie: "connect 12.34.56.78"). If you set up a permanent server, I can add it to the list and it will show up for everyone.
Despite that map rotation? :)
Good sub t1 servers should be in a dark cold place and no more than 10 players.
-
That's an old quote. It's changed now... It automatically updates. But it doesn't seem to. Oh well.
-
It ignores my questions.
-
Post removed
-
um ya iv seen mine at friends houses too so its around 7 there
-
Jitpoe does the following post help or is friedly
to nwebs?
-
There is no following post... well, now that I'm making one, there is. And yes, It'll be nweb friedly. Watch this:
Burn, nwebs! In the deep fryer!
Now, if you were asking if the preceding posts were newbie friendly, I'd say yes. Somebody asked for help, and people gave detailed and helpful responses.
-
You moved my post!!!!! and replaced previous with following!!!!
wait no I was drunk, curses me luck.