3. Configure dedicated server
You need a server account to run dedicated servers, so head to create new dedicated server account:
https://www.maniaplanet.com/account/dedicated-servers. Note: you wish to use only lowercase letters [a-z] and numbers [0-9] for dedicated server account name. If the name contains underscores or capital letters some features, like sending planets doesn't work.
At this point you should have created a dedicated server account... So let's then configure dedicated server so we can run it:
go to "dedicated
\UserData\Config\dedicated_cfg.default.txt" and copy it to "
dedicated_cfg.txt"

You could rename the file as well, but copying is far better in case you host multiple servers. Since you have the default as reference.
You'll find section looking like this at the start of file:
Code: Select all
<masterserver_account>
<login></login>
<password></password>
<validation_key></validation_key>
</masterserver_account>
Fill in your dedicated account credentials here.
For clarity an example how to fill these files:
Code: Select all
<masterserver_account>
<login>toto</login>
<password>foobar</password>
<validation_key>LOL</validation_key>
</masterserver_account>

If you wish to enable planets (in-game currency) for the server account, fill your main account validation key too. You find the validation key with the initial registration email send when you purchased the game, in case you've lost the mail you can obtain new one at:
https://www.maniaplanet.com/account/validation-code. Also you need to send some, say 1000 planets, to the dedicated server login, for this use the in-game mail: open manialink browser (navigation button at top bar) and type "
#mailto=" (ofc without using "") or use player page
https://www.maniaplanet.com/account/planets.
Next fill in the server name and optionally the comment:
Code: Select all
<name></name>
<comment></comment>

You may wish to disable p2p upload and downloads, this will save alot bandwidth from the server.
Depending on your connection speed: raise the connection limits, this helps the maps to change faster.
Code: Select all
<connection_uploadrate>10000</connection_uploadrate> <!-- Kbits per second -->
<connection_downloadrate>10000</connection_downloadrate> <!-- Kbits per second -->
Here you also can change the default ports.

If you run multiple servers on same machine change you need to define unique port for each new one. for example: 5000,5001,5002.. If you run game on same machine as dedicated server, it's encouraged to change the ports +1 for this config.
Next you should check and open these ports at your firewall and/or if you have configured NAT at for home router then you need to assign port forward. You can search web for more info, just search for "port forward tutorial".

Xmlrpc port (default: 5000) is used for server controllers. This port you don't need to forward usually, as it's used for local host usually. If you setup server controller afterwards, this is the port you need to enter for the controller to work.
Code: Select all
<server_port>2350</server_port>
<server_p2p_port>3450</server_p2p_port>
<xmlrpc_port>5000</xmlrpc_port>

In case you wonder the title setting. You don't need the this setting at all since we'll use command line argument to override it. Usually you can just ignore this, but you can also remove the line from config.
3.1 Ladder servers
There's something you need to know to enable your server for other than 0-50k ladder rank.
First check the ladder server rules here at forums:
viewforum.php?f=459
Raising the ladder limits will cost you in-game currency named Planets, for new server owners the amounts can be quite big as seen below.
So you might want to ask your friends help with this. Here's the amounts for your reference:
0-60k: 10000 Planets
0-70k: 20000 Planets
0-80k: 40000 Planets
0-90k: 80000 Planets
Race Of Champions server:
0-100k: 80000 Planets
To apply this ladder limits, visit ladder
server config at player page. First fill in the title pack, then it opens new view asking for: server login, ladder limit and finally you'll need your account validation key to complete (the same you used at config above).
To make dedicated server a ladder server you'll need to edit
dedicated_cfg.txt and find following line:
(If for some reason you're missing this line at dedicated config, you should add it and the two additional lines at <server_options> section)
Add the two additional lines below:
Code: Select all
<ladder_serverlimit_min>0</ladder_serverlimit_min>
<ladder_serverlimit_max>60000</ladder_serverlimit_max>