Author Topic: Making a home server  (Read 3000 times)

eLv

  • PGP
  • Posts: 3
Making a home server
« on: April 29, 2010, 02:30:15 PM »
Brazil got 1 server, mine. Made It on the last weeks and it works on server list.
If you wanna make a server, its easy -> On your desktop Paintball2 icon, right click on it, and select Properties. After that, copy the following to your Target box. Delete all the stuff in the Target box first, though.

Code:
C:\Games\Paintball2\paintball2.exe +set dedicated 1 +set public 1 +exec myserver.cfg +map midnight
Then press OK. A new shortcut would of been made, so rename your server too "Paintball Server" or something. Double click on the shortcut, and a command prompt should appear. (Black Box)
Then type this:

Code:
exec myserver.cfg

Then thats it! But if you want your server running all the time, you must keep the command prompt open at all times.

|| Step 1: Requirements ||
The main requirement is bandwidth. Worst-case, each client will take about 10k/s up (absolute max of 14k/s), however 3k/s is probably a more typical value.

Cable and DSL connections don't typically make good servers because their upload rate is usually capped at about 30k/s, meaning any more than 8 players will probably bring it to its knees.

The hardware requirements are pretty minimal: 200mhz + 32mb and possibly even lower would probably be plenty for a dedicated server.

 

|| Step 2: Configuration ||
There is a template included at paintball2\pball\configs\server.cfg. Rename that so it won't get overwritten by the server.cfg included with new versions. For simplicity's sake, call it myserver.cfg. Now open up myserver.cfg in Notepad or Wordpad and adjust the settings to your desire.

Server Name and Info
The first thing you will want to change is the "hostname" as that is what is displayed in the serverlist. You can also have additional variable names that will show up in the server info, such as location and admin contact information. These are optional. Adding an "s" to the end of the set command will put that variable in the server info. For example:
set location "Houston, TX" s

Rotation
The next thing you may want to edit is the map rotation. Let's call the new file myrotation.txt:
set rot_file pball/configs/myrotation.txt
Open up the sample rotation.txt, make whatever changes you want, and do a file|save as "myrotation.txt". Also, a recent feature allows you to edit and save map rotations remotely while the game is running. You can do this through the remote admin menu or with the "rotation" command. See below for how to set up remote admin options.

Remote Admin
Paintball2 has a handy way of controlling who can use what commands: Operator levels. You can have up to 5. These are set toward the end of the server config file.
For example:
set oppass1 "dog"
set oppass1level 50
set oppass2 "king"
set oppass2level 150
Once the server is up, you can type "login dog" and it will give you an op level of 50, or "login king" and get an op level of 150. The op levels required for each command can be set in pball\configs\commands.txt, but you shouldn't need to edit those.

 

|| Step 3: Starting the Server ||
Create a shortcut to paintball2.exe (right click and drag paintball2.exe to the desktop or wherever you want the shortcut to be, then select "Create Shortcut(s) Here" from the dropdown). Right click on the shortcut and go to "Properties." Under the "Shortcut" tab, click on the "Target:" edit box. Press the END key, and add the following: " +set dedicated 1 +set public 1 +exec myserver.cfg +map midnight" (without the quotes). Make sure there's a space between the "exe" and the "+set". Now just hit OK, doubleclick on the shortcut and it should start up. It'll pop up a window with something like "====== Paintball II Initialized ======". You can copy this shortcut into your start menu under start|programs|startup and it will run every time windows loads.

 

|| Troubleshooting ||
The most common problems when setting up servers are routers and firewalls. If the server machine goes through a router, make sure you set the router to forward UDP packets on port 27910 (or whatever port you're running the server on) to the server machine. Likewise open up port 27910 on your firewall and ensure that paintball2.exe is allowed to act as a server.
 
« Last Edit: June 14, 2010, 01:02:55 PM by eLv »

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Making a home server
« Reply #1 on: April 29, 2010, 03:05:01 PM »
U don't need to type "exec myserver.cfg". It's in the shortcut, so it should exec it automatically.

Here are a few more informations: http://digitalpaint.org/docs/server_guide_win32.html

eLv

  • PGP
  • Posts: 3
Re: Making a home server
« Reply #2 on: April 29, 2010, 03:27:39 PM »
Thank You T3RR0R15T, but thats needed to be started and on server list.