TM2 beta4 服务器架设

用于发布关于赛道狂飙2的帖子

Moderator: Chinese Moderator

Post Reply
User avatar
hpvinzenz
Posts: 55
Joined: 12 Apr 2011, 15:11
Location: Deutschland

TM2 beta4 服务器架设

Post by hpvinzenz » 13 Sep 2011, 14:28

昨天逛官方论坛,看到了一篇关于服务器架设的贴子,试了一下,效果一般,有时候能成功,地图载入总是出现问题,时好时坏。找不到原因,不过在这里先跟大家分享一下。大家也帮忙试试
首先大家得有一个正版TM2帐号,打开自己注册该帐号时收到的邮件

记下你的validation code后面会用到。
然后来这里下载服务器软件下载地址 载下来后先将这个文件解压ManiaPlanetDedicated_2011-09-05.zip die
然后有两个文本文档需要设置:
路径:ManiaPlanetDedicated_2011-09-05/UserData/Config/dedicated_cfg.txt
修改dedicated_cfg文件:
<?xml version="1.0" encoding="utf-8" ?>

<dedicated>
<authorization_levels>
<level>
<name>SuperAdmin</name> (选择超级管理员,不能是开服务器的帐号)
<password></password>(随便填)
</level>
<level>
<name>Admin</name> (同上)
<password>egal, irgendein pw</password>
</level>
<level>
<name>User</name>
<password>egal, irgendein pw</password>
</level>
</authorization_levels>

<masterserver_account> (此处为开服帐号)
<login>serverlogin</login> (你的帐号) <!-- von maniaplanet.com/player/html/index.php?view=dedicated-servers -->
<password>passwort</password> (帐号密码)
<validation_key>这个地方就是你收到的邮件里面标注的validation code了,由五个字母组成</validation_key>
</masterserver_account>

<server_options>
<name>服务器名称,可用代码</name>
<comment>服务器描述</comment>
<hide_server>0</hide_server> <!-- value is 0 (always shown), 1 (always hidden), 2 (hidden from nations) -->

<max_players>64</max_players> (服务器最多参赛人数)
<password></password>

<max_spectators>16</max_spectators> (观众人数)
<password_spectator></password_spectator>

<ladder_mode>forced</ladder_mode> <!-- value between 'inactive', 'forced' (or '0', '1') -->

<enable_p2p_upload>True</enable_p2p_upload>
<enable_p2p_download>True</enable_p2p_download>

<callvote_timeout>120000</callvote_timeout>
<callvote_ratio>0.6</callvote_ratio> <!-- default ratio. value in [0..1], or -1 to forbid. -->
<callvote_ratios>
<voteratio command="Ban" ratio="0.65"/>
<!-- das ist mein ratio, normal ist 0.5 :) -->
<!-- commands can be "Ban", "Kick", "ChallengeRestart", "NextChallenge", ... -->
</callvote_ratios>

<allow_challenge_download>false</allow_challenge_download>
<autosave_replays>False</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>
</server_options>

<system_config>
<connection_uploadrate>81920</connection_uploadrate> <!-- KBps -->
<connection_donwloadrate>81920</connection_donwloadrate> <!-- KBps -->

<force_ip_address></force_ip_address>
<server_port>2350</server_port> <!-- egal, irgendwas eintragen, so in dem bereich :) -->
<server_p2p_port>3350</server_p2p_port> <!-- egal, irgendwas eintragen, so in dem bereich :) -->
<client_port>0</client_port>
<bind_ip_address></bind_ip_address>
<use_nat_upnp></use_nat_upnp>

<xmlrpc_port>5000</xmlrpc_port> <!-- 5000 ist standart port. -->
<xmlrpc_allowremote>True</xmlrpc_allowremote> <!-- If you specify an ip adress here, it'll be the only accepted adress. this will improve security. -->

<blacklist_url></blacklist_url>
<guestlist_filename></guestlist_filename>
<blacklist_filename></blacklist_filename>

<packmask>0x0FFFFFFF</packmask>

<use_proxy>False</use_proxy>
<proxy_login></proxy_login>
<proxy_password></proxy_password>
</system_config>
</dedicated>
然后就是这个路径:ManiaPlanetDedicated_2011-09-05/UserData/maps/MatchSettings/beta1.txt

这里面可以设置比赛时间,以及添加比赛地图
<map>
<file>My Maps/115.Map.Gbx</file> (地图路径/地图名称) </map>

照着这个模式添加。(感觉可能是这个文本有问题,时好时坏)
所有设置完成后运行文件,RunSrv




大家试试看,因为还在公测期间,该软件还会被修改。
Image
Image

Post Reply

Return to “Trackmania 2”

Who is online

Users browsing this forum: No registered users and 1 guest