It's initially written for Linux but should largely apply to Windows too, and your system needs to have a working MySQL 4.x or 5.x and PHP 5.x setup. To manage the database, enter the MySQL commands in the mysql command prompt, PhpMyAdmin or another tool of your choice. You need to run the TM2 server and XASECO2 on the same machine, running them on separate machines is beyond the scope of this guide.
First, the dedicated server:
mkdir TM2
cd TM2
#!/bin/sh
./ManiaPlanetServer /game_settings=MatchSettings/TM<title>A.txt /dedicated_cfg=dedicated_cfg.txt /title=TM<title>
ManiaplanetServer.exe /game_settings=MatchSettings/TM<title>A.txt /dedicated_cfg=dedicated_cfg.txt /title=TM<title>
cd ~/TM2/
./RunSrv.sh
(or RunSrv.bat
)Starting ManiaPlanet Date=2015-06-16_18_00 Svn=61962 GameVersion=3.3.0... Initializing... Configuration file : dedicated_cfg.txt Loading system configuration... ...system configuration loaded Loading cache... ...OK Listening for xml-rpc commands on port 5000. ManiaPlanet server daemon started with pid=14180 (parent=14176).If you get a Segmentation Fault here, your kernel/distro may be too old, or the server cannot create files/directories due to ownership/permission problems (perhaps you forgot step 1b?).
CREATE DATABASE xaseco2;
CREATE USER 'tm2'@'localhost';
SET PASSWORD FOR 'tm2'@'localhost' = password('password');
GRANT all ON xaseco2.* TO 'tm2'@'localhost';
USE xaseco2;
SOURCE /home/tm2/xaseco2/DOCS/xaseco2.sql;
cd ~/xaseco2/
./XAseco2.sh
(or XAseco2.bat
)[XAseco2] PHP Version is 5.3.x on Linux [XAseco2] Load settings [config.xml] [XAseco2] Load default style [styles/NavBlueBlur.xml] [XAseco2] Load default panel background [panels/PanelBGNavBlueBlur.xml] [XAseco2] Load admin/ops lists [adminops.xml] [XAseco2] Load banned IPs list [bannedips.xml] [XAseco2] Load plugins list [plugins.xml] [XAseco2] Load plugin [plugin.localdatabase.php] [...snip plugins...] [XAseco2] Load plugin [jfreu.plugin.php] [XAseco2] Load plugin [mistral.idlekick.php] [09/xx,xx:33:22] Try to connect to MP dedicated server on 127.0.0.1:5006 timeout 180s [09/xx,xx:33:22] Try to authenticate with login 'SuperAdmin' and password 'PASSWORD' [09/xx,xx:33:22] Connection established successfully ! [09/xx,xx:33:22] [LocalDB] Load config file [localdatabase.xml] [09/xx,xx:33:22] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'xaseco2' [09/xx,xx:33:22] [LocalDB] MySQL Server Version is 5.1.56-log [09/xx,xx:33:22] [LocalDB] Checking database structure... [09/xx,xx:33:22] [LocalDB] ...Structure OK! [09/xx,xx:33:22] [RASP] Loading config file [rasp.xml] [09/xx,xx:33:22] [RASP] Checking database structure... [09/xx,xx:33:22] [RASP] ...Structure OK! [09/xx,xx:33:22] [RASP] Cleaning up unused data [09/xx,xx:33:22] Load default admin panel [panels/AdminRightCorner.xml] [09/xx,xx:33:22] Load default donate panel [panels/DonateBelowCPList.xml] [09/xx,xx:33:22] Load default records panel [panels/RecordsRightCorner.xml] [09/xx,xx:33:22] Load default vote panel [panels/VoteBottomCenter.xml] [09/xx,xx:33:22] ************* (Dedimania) ************* [09/xx,xx:33:22] * Dataserver connection on Dedimania ... [09/xx,xx:33:22] * Try connection on http://dedimania.net:8082/Dedimania ... [09/xx,xx:33:22] Webaccess (dedimania.net:8082/Dedimania.8083): send: deflate, receive: deflate [09/xx,xx:33:22] * Connection and status ok! (Dedimania.8083) [09/xx,xx:33:22] ------------- (Dedimania) ------------- [09/xx,xx:33:22] Load stats panel [panels/StatsCanyon.xml] [09/xx,xx:33:22] Load music server config [musicserver.xml] [09/xx,xx:33:22] Load auto timelimit config [autotime.xml] ############################################################################### XASECO2 v1.03 running on 127.0.0.1:5000 Name : YOUR SERVER NAME - YOUR_SERVER_LOGIN Game : ManiaPlanet - <title> - TimeAttack Version: 3.3.0 / 2015-06-16_18_00 Author : Xymph ############################################################################### Begin Race [09/xx,xx:33:23] track changed [none] >> [Spirit of Canyon] [09/xx,xx:33:23] currently no record on Spirit of CanyonIf you get an RPC Permission Error here, there is an XMLRPC port mismatch or the dedicated server isn't running (anymore).