this is the Error message I get, when I try to run "RunSrv.bat"
in the RunSrv.bat file I have this content:
Code: Select all
ManiaplanetServer.exe /game_settings=MatchSettings/TMStadiumA.txt /dedicated_cfg=dedicated_cfg.txt /title=TMStadium
Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <playlist> <gameinfos> <game_mode>2</game_mode> <chat_time>10000</chat_time> <finishtimeout>1</finishtimeout> <allwarmupduration>0</allwarmupduration> <disablerespawn>0</disablerespawn> <forceshowallopponents>0</forceshowallopponents> <script_name></script_name> <rounds_pointslimit>50</rounds_pointslimit> <rounds_usenewrules>0</rounds_usenewrules> <rounds_forcedlaps>0</rounds_forcedlaps> <rounds_pointslimitnewrules>5</rounds_pointslimitnewrules> <team_pointslimit>5</team_pointslimit> <team_maxpoints>6</team_maxpoints> <team_usenewrules>0</team_usenewrules> <team_pointslimitnewrules>5</team_pointslimitnewrules> <timeattack_limit>300000</timeattack_limit> <timeattack_synchstartperiod>0</timeattack_synchstartperiod> <laps_nblaps>5</laps_nblaps> <laps_timelimit>0</laps_timelimit> <cup_pointslimit>100</cup_pointslimit> <cup_roundsperchallenge>5</cup_roundsperchallenge> <cup_nbwinners>3</cup_nbwinners> <cup_warmupduration>2</cup_warmupduration> </gameinfos> <hotseat> <game_mode>0</game_mode> <time_limit>300000</time_limit> <rounds_count>5</rounds_count> </hotseat> <filter> <is_lan>1</is_lan> <is_internet>1</is_internet> <is_solo>0</is_solo> <is_hotseat>1</is_hotseat> <sort_index>1000</sort_index> <random_map_order>0</random_map_order> <force_default_gamemode>0</force_default_gamemode> </filter> <startindex>0</startindex> <map> <file>My Maps\ESL Stadium\и〒я Casanova.Map.Gbx</file> </map> <map> <file>My Maps\ESL Stadium\и〒я Little Hollywood.Map.Gbx</file> </map> <map> <file>My Maps\ESL Stadium\и〒я One Last Time.Map.Gbx</file> </map> <map> <file>My Maps\ESL Stadium\и〒я Techno.Map.Gbx</file> </map> <map> <file>My Maps\ESL Stadium\и〒я TheNights.Map.Gbx</file> </map> <map> <file>My Maps\ESL Stadium\и〒я UglySpamy.Map.Gbx</file> </map> </playlist>
in "Q:\Fabian\^MP4 SERVER\ManiaplanetServer\UserData\Config" - "dedicated_cfg.txt" I have ... (edited here, to hide some datas)
Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <dedicated> <authorization_levels> <level> <name>SuperAdmin</name> <password>XYZ_1</password> </level> <level> <name>Admin</name> <password>XYZ_2</password> </level> <level> <name>User</name> <password>XYZ_3</password> </level> </authorization_levels> <masterserver_account> <login>XYZ_4</login> <password>XYZ_5</password> <validation_key>XYZ_6</validation_key> </masterserver_account> <server_options> <name>XYZ_7</name> <comment>XYZU_8</comment> <hide_server>0</hide_server> <!-- value is 0 (always shown), 1 (always hidden), 2 (hidden from nations) --> <max_players>50</max_players> <password></password> <max_spectators>50</max_spectators> <password_spectator></password_spectator> <keep_player_slots>False</keep_player_slots> <!-- when a player changes to spectator, hould the server keep if player slots/scores etc.. or not. --> <ladder_mode>forced</ladder_mode> <!-- value between 'inactive', 'forced' (or '0', '1') --> <enable_p2p_upload>True</enable_p2p_upload> <enable_p2p_download>False</enable_p2p_download> <callvote_timeout>60000</callvote_timeout> <callvote_ratio>0.5</callvote_ratio> <!-- default ratio. value in [0..1], or -1 to forbid. --> <callvote_ratios> <voteratio command="Ban" ratio="-1"/> <!-- commands can be "Ban", "Kick", "RestartMap", "NextMap", "SetModeScriptSettingsAndCommands"... --> </callvote_ratios> <allow_map_download>True</allow_map_download> <autosave_replays>True</autosave_replays> <autosave_validation_replays>False</autosave_validation_replays> <referee_password></referee_password> <referee_validation_mode>0</referee_validation_mode> <!-- value is 0 (only validate top3 players), 1 (validate all players) --> <use_changing_validation_seed>False</use_changing_validation_seed> <disable_horns>False</disable_horns> <clientinputs_maxlatency>0</clientinputs_maxlatency> <!-- 0 mean automatic adjustement --> </server_options> <system_config> <connection_uploadrate>16000</connection_uploadrate> <!-- Kbits per second --> <connection_downloadrate>8250</connection_downloadrate> <!-- Kbits per second --> <allow_spectator_relays>False</allow_spectator_relays> <p2p_cache_size>600</p2p_cache_size> <force_ip_address></force_ip_address> <server_port>2350</server_port> <server_p2p_port>3450</server_p2p_port> <client_port>0</client_port> <bind_ip_address></bind_ip_address> <use_nat_upnp></use_nat_upnp> <gsp_name>XYZ_9</gsp_name> <!-- Game Server Provider name and info url --> <gsp_url>XYZ_10</gsp_url> <!-- If you're a server hoster, you can use this to advertise your services --> <xmlrpc_port>5000</xmlrpc_port> <xmlrpc_allowremote>False</xmlrpc_allowremote> <!-- If you specify an ip adress here, it'll be the only accepted adress. this will improve security. --> <scriptcloud_source>nadeocloud</scriptcloud_source> <!-- Specify the cloud storage mode for Titles that use it. Can be "localdebug" or "xmlrpc" or "nadeocloud" (default). "nadeocloud" will work only if the creator of the title subscribed to the cloud service. --> <blacklist_url></blacklist_url> <guestlist_filename></guestlist_filename> <blacklist_filename></blacklist_filename> <title>TMStadium</title> <!-- SMStorm, TMCanyon, ... --> <minimum_client_build></minimum_client_build> <!-- Only accept updated client to a specific version. ex: 2011-10-06 --> <disable_coherence_checks>False</disable_coherence_checks> <!-- disable internal checks to detect issues/cheats, and reject race times --> <disable_replay_recording>False</disable_replay_recording> <!-- disable replay recording in memory during the game to lower memory usage. --> <use_proxy>False</use_proxy> <proxy_login></proxy_login> <proxy_password></proxy_password> </system_config> </dedicated>
- I downloaded the latest Version of xaseco2 (zip filename: xaseco2_103.zip)
- followed the guide you find => ...xaseco2/DOCS/quickstart.html
- also used http://wiki.maniaplanet.com/en/Dedicated_servers as help
What I didn't do because I don't really know how to do it and if it's even needed is or anything else you maybe should know ...
needed? and if so, how do I activate both? Not sure about this cuz security .."On your firewall/router, open the server port 2350 and the P2P port 3450 for both UDP and TCP traffic, but not the XMLRPC port 5000. For the Dedimania system in XASECO2 port 8002 needs to be open as well. For more information on this, PortForward.com may be useful."
Problems I had:
I didnt had a TM<title>A.txt file - nowhere!!!"Choose and edit a match settings file, e.g. TM2/UserData/Maps/MatchSettings/TM<title>A.txt, to your liking (see the server readme for details, although that's for TMF so some things are different)."
this is the Text with this two points, so you dont have to search etc:
Code: Select all
Quick Start Guide: This is step-by-step guide to setting up a TrackMania² (TM2) dedicated server with XASECO2 for those lost in or confused by the available readme's and tutorials, and those just too lazy to read them. ;-) 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: On Linux: The TM2 server and XASECO2 should run under a user account rather than root, so create a user e.g. "tm2" with home directory "/home/tm2". Login as (or switch to) user "tm2" so that all files created down the road receive the correct ownership and permissions. The TM2 server zip doesn't have a top-level directory, so create one first to keep all the server files together, e.g.: mkdir TM2 cd TM2 On Windows: The TM2 server and XASECO2 can run under a user account rather than administrator, so create a user e.g. "TM2". Switch to that user. Change to your (My) Documents directory. Download and unzip the latest ManiaPlanet beta server (ManiaPlanetBetaServer_2013-04-26.zip) into the TM2/ directory. Log into the MP Player Page using your player login and password, and create a dedicated server login and password (different from your player password). Copy TM2/UserData/Config/dedicated_cfg.default.txt to dedicated_cfg.txt and edit: In the <authorization_levels> section, change all three passwords, but do not change the names (SuperAdmin, Admin, User). In the <masterserver_account> section, enter the server <login> obtained above with its own <password>, and your account's validation key (usually five characters) in <validation_key> so that your server is able to use planets. This validation key is given in the mail you should have received after creating your player account with the game, but a new one can be generated via the player page. Additionally, you must make an initial donation from your player login to your server login via the in-game message system, so that there are sufficient planets in the account to pay Nadeo tax on the first transaction. In the <server_options> section, give your server a <name> and configure the other options to your liking. In the <system_config> section, set <connection_uploadrate> and <connection_downloadrate> to values closest to your connection's speed (in Kbps), and remember the three port numbers (default: 2350 for the server, 3450 for P2P and 5000 for XMLRPC; these can be changed to other free port numbers, but it's recommended to keep the defaults at least until your server comes online successfully). Choose a <title>: Canyon, Stadium, or, once available, Valley. Choose and edit a match settings file, e.g. TM2/UserData/Maps/MatchSettings/TM<title>A.txt, to your liking (see the server readme for details, although that's for TMF so some things are different). On your firewall/router, open the server port 2350 and the P2P port 3450 for both UDP and TCP traffic, but not the XMLRPC port 5000. For the Dedimania system in XASECO2 port 8002 needs to be open as well. For more information on this, PortForward.com may be useful. A standard startup script called RunSrv.sh is included in the zip, so review/edit it if needed: #!/bin/sh ./ManiaPlanetServer /game_settings=MatchSettings/TM<title>A.txt /dedicated_cfg=dedicated_cfg.txt /title=TM<title> or use a corresponding RunSrv.bat: ManiaplanetServer.exe /game_settings=MatchSettings/TM<title>A.txt /dedicated_cfg=dedicated_cfg.txt /title=TM<title> Start the server: cd ~/TM2/ ./RunSrv.sh (or RunSrv.bat) You should see output like the following: Starting ManiaPlanet Date=2013-04-26-18_00 Svn=50300 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?). The first time the server starts, it creates several files in UserData/Config/ (including blacklist.txt and guestlist.txt), as well as the Logs/ directory and an extensive directory hierarchy under UserData/. The files in the Logs/ directory are useful to monitor your server's activity. Start your TM2 client and check in the Internet server browser that the server is running in your zone with your chosen server name and some official tracks. Join your server, and have a friend join from elsewhere on the Internet, to verify that the server is accessible. Ignore the private network warning that is always logged in ConsoleLog.*.txt. To start & stop your TM2 server on Linux more easily, you can use this start-up script. Collect your own tracks in UserData/Maps/My Maps/, copy and edit a new match settings file in UserData/Maps/MatchSettings/ that lists those tracks, use that file in RunSrv.sh (or RunSrv.bat), and restart your server. It should now be running your track selection. Congratulations. :-) Secondly, the XASECO2 system: Create the XASECO2 database in MySQL (default "xaseco2" but any other name is okay too): CREATE DATABASE xaseco2; Also create a separate user (e.g. "tm2") in MySQL with a password, and grant this user all rights to the "xaseco2" database. The basic MySQL commands are: CREATE USER 'tm2'@'localhost'; SET PASSWORD FOR 'tm2'@'localhost' = password('password'); GRANT all ON xaseco2.* TO 'tm2'@'localhost'; Login as (or switch to) user "tm2" so that all files created down the road receive the correct ownership and permissions. Download and unzip XASECO2 (latest version) into the "/home/tm2/" directory too, the default path will be xaseco2/ so that future releases can be unpacked into the same directory tree. In the zip file, all *.XML and config files are located inside the newinstall/ directory. Go into the newinstall/ directory and move all *.XML files into the main directory (next to xaseco2.php), and move all *.PHP files into the includes/ directory. Also, move XAseco2.sh (on Linux) or XAseco2.bat (on Windows) into the main directory and adjust it to your situation if necessary. Setting up the database tables in MySQL is done automatically the first time XASECO2 runs, but if you prefer you can do it manually in advance: USE xaseco2; SOURCE /home/tm2/xaseco2/DOCS/xaseco2.sql; Edit xaseco2/localdatabase.xml: Replace YOUR_MYSQL_LOGIN with the MySQL user you created above, e.g. tm2. Replace YOUR_MYSQL_PASSWORD with the MySQL password you set above. Use the same database name as you created above, e.g. xaseco2. localhost is your own machine, so the server option is okay. Edit xaseco2/config.xml: In the <masteradmins> section, uncomment and replace YOUR_MASTERADMIN_LOGIN with your player login, and add further logins for other players you want to grant all XASECO2 admin rights. In the <tmserver> section, replace YOUR_SUPERADMIN_PASSWORD with the password you chose for SuperAdmin in dedicated_cfg.txt (TM2 step 5a above) but do not change the SuperAdmin login itself. The <port> field should contain the same XMLRPC port number you chose in dedicated_cfg.txt (TM2 step 5e above), default 5000. IP 127.0.0.1 is your own machine again, so that option is okay too. Edit xaseco2/adminops.xml: In the <admins> section, uncomment and replace YOUR_ADMIN_LOGIN with an admin's login, and add further logins for other players you want to grant partial XASECO2 admin rights. Or leave the <tmlogin> entry commented out if there are none. In the <operators> section, uncomment and replace YOUR_OPERATOR_LOGIN with an operator's login, and add further logins for other players you want to grant XASECO2 operator rights. Or leave the <tmlogin> entry commented out if there are none. Edit xaseco2/dedimania.xml if you want to use the Dedimania world records system: In the <masterserver_account> section, replace YOUR_SERVER_LOGIN with the <login> value from your dedicated_cfg.txt file. Also, replace YOUR_DEDIMANIA_CODE with the DedimaniaCode that you can generate after registering your server with the Dedimania system. To disable Dedimania support, remove or comment out the chat.dedimania.php and plugin.dedimania.php entries in plugins.xml. Start the XASECO2 system: cd ~/xaseco2/ ./XAseco2.sh (or XAseco2.bat) You won't see output, but logfile.txt should contain something like the following: [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 / 2013-04-26-15_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 Canyon If you get an RPC Permission Error here, there is an XMLRPC port mismatch or the dedicated server isn't running (anymore). To start & stop your XASECO2 on Linux more easily, you can use this start-up script. Edit the configuration options to your liking, and restart XASECO2. It should now be ready to manage tracks, receive players, and record... er... records. Congratulations. :-) Finally, to run another server on the same machine: Basically follow the same steps above, but use a second user account (e.g. "tm2b"), another new server login/password in dedicated_cfg.txt, a separate server name, a second set of ports (e.g. 2351, 3451 and 5001), a new database (e.g. "xaseco2b"), optionally a second MySQL account (e.g. "tm2b"), and the corresponding updates in localdatabase.xml and config.xml. Don't use symbolic links in the UserData/ directory tree (e.g. to symlink the tracks from the first server to the second one), as the TM2 server will crash without an error message. And for the last time, read the readme's and tutorials completely for a more thorough understanding of the entire setup.
If you need some more infos, tell me!
You can also join my Discord if I don't replay or you want to get some more messages / ...: https://discord.gg/RgumA5b
I am "nTr CloudyxTM" there!
Thanks for reading and helping all