Mac Server Tutorial
Mac Server Tutorial
You should have loaded a page that asks for a password and what type of login
(admin, user, etc). Choose admin and find out what your password is. Common
default passwords are admin, password, and (typing in) nothing. Check this list if
all else fails: http://www.phenoelit-us.org/dpl/dpl.html. If you are still with me, you
should have loaded some weird page that has a menu bar on top and on the
side.
Note: Your page will not necessarily look like this image, depending on your
router information.
You should see on the top bar an “Advanced” category. Click that. Now a menu
on the side should have popped up. This is where things get very different. You
should see a button on the side that says Port Forwarding. If you donʼt, then click
on Virtual Server. Chances are the portforward.com tutorial covers this. If not,
Google it.
When you find the port forwarding menu, you should see a place to type in
an application name, a TCP, UDP, or BOTH section, and your computerʼs IP.
How this page is setup will vary. Hopefully the portforwarding.com instructions
will help you through these steps.
For Application Name, case sensitive, type in the exact name of your app
(AssaultCube). For the IP address, type in your computer's IP address (note, this
is similar, but NOT the same as the one you typed into your browser to get here.)
For the UDP and TCP section, type in both 28763 and 28764. You might have to
select both, just make sure that both numbers are stored for both port types.
Finished putting in the info? However you do it, you should end up forwarding
28763 and 28764 for TCP and UDP. Save settings, reboot you router (should be
automatic after saving,) and you have finished step 1!!
A few of you may have to look for the firewall tab and change that to open.
Most Macs probably wont have this turned on as it is a bigger problem for PCʼs.
STEP 2: SETTING UP A SERVER
Open AssaultCube. You should have a nice little window that lets you change
certain settings. Click on “Servers” on the top menu bar. If you followed the steps,
you should see this:
To set up the server, you need to give AssaultCube settings for the server
(description, max clients, etc) and you must do this in an odd way. Each setting is
preceded by a “ – “ followed by a certain letter. Here are some commands and
their function:
Note: there are more, but these are all you need to get started. They are also
case-sensitive.
Here is an example of how it works:
You want a message of the day (MOTD) to say "Welcome to my Server". In the
Advanced Options, you'd type that in like this: -o"Welcome to my Server"
It might not read the quotes correctly, but that's ok for now.
Max clients of 12 = -c12
Password of 1234 = -x1234
Get the idea?
Copy paste the above line directly into Advanced Options and click Start on the
bottom right, if it works, it should say, "Master Server reply: Registration
successful…"
Notice I didnʼt add any quotations. This is because the MOTD and description
were one word, respectively. If you want the description to be multiple words then
just type in your description in the empty box at the top of the window, without
quotes, instead of in the Advanced Options. This is due to the quotations being
misread.
STEP 3: ADDING COLOR
Adding color is what makes the server description and MOTD look cool. It also
gives clans a chance to categorize their servers.
To add colored words in the MOTD and server description, all you have to do is
this add \f followed by a specific number:
\f1 = blue
\f2 = yellow
\f3 = red
\f4 = dark grey
\f5 = white
\f6 = dark red
Now, for example, to make a server that says "My" in yellow and "Server" in red,
you simply type in \f2My \f3Server for the Server Description box. Notice that you
don't need a space between the code (\f#) and the words.
Step 4: Controlling Your Server
Now itʼs time to spice up your server! You probably want to claim admin
powers, change maps, add a blacklist, and add a whitelist to your server.
The easiest is claiming and dropping admin powers:
/mode # when you type in /mode, a small menu comes up. Pick the
number of your choice and put that in for #. For example,
/mode 1 will make a coop edit mode.
Remember that when youʼre admin, calling a new mode or map will not
raise a vote as you have supreme power on your server. This also applies for
when you are voting on other peopleʼs votes.
For the next steps, you will have to right-click on the AssaultCube app and
select Show Package Contents as seen below. (My AssaultCube icon is slightly
different than yours.)
Once you have done this, a new window will pop up with a folder named
Contents. Click on it, then click on the gamedata subfolder, followed by the config
subfolder.
You can also specify which maps will never be allowed on your server by
editing mapblacklist.cfg. To add a map, just type in the map name on a separate
line. It is recommended that maps with inappropriate names be placed here.
Now for the most entertaining and useful part of server operation:
nicknameblacklist.cfg. Click on that file (this is still under the config folder). Here
is where you can put nicknames that will be banned from your server. You can
also specify nicknames to be allowed on the server too.
You can find an official blacklist on the assault.cubers.net/forums website.
Go to a new line and type the following in to block someone:
blocki name blocki tells the server to block any spelling of name.
accept {CLANAWESOME}name
This is useful if you blocked (example) noob but want to accept noobkiller. If you
didnʼt put accept, noobkiller would be blocked since noob is in their name.
To add info to you server (accessed through the in-game menu) open up
the serverinfo_en.txt file. At the bottom, write whatever you want. This will be
added to the server info tab. Here is an example from my info (liable to change):
If you want a hardcoded password for your server go to the serverpwd.cfg file.
All you have to do here is type in:
You may have noticed that a lot of interesting files are under the config subfolder.
Feel free to look into them and change them, but I warn you to save backups in
case you do something bad.
For the remaining tabs, type in whatever you want. The best thing is that
you donʼt need quotations around the words and that you can use the color
commands mentioned earlier.
Donʼt end the MOTD or Description with an exclamation point. It seems that
it is read as code.
When you press Start Server, the terminal will open up and record everything that
happens on your server. Quitting the terminal will stop your server.
Enjoy your server and please donʼt abuse your powers. You want to keep a good
reputation with the AssaultCube community.