bnetd.conf文件的修改和优化: 注意:在bnetd.conf文件设置中,有3项必须修改:

################################################

Tracking server info

#—————————————————————————-#

Set track=0 to disable tracking. Any other number will set number

of seconds between sending tracking packets. This is OFF by default.

#track = 0
track = 60

10 minutes

注意,令track = 0,否则有严重的track问题.

################################################

war3 ladder textual output

#—————————————————————————–#

this is for all the guys, that want Warcraft 3 ladder, but don’t want their

server to run with MySQL support.

For each ladder (solo, team, ffa, at) a corresponing file is created,

so it’s easy to build your ladder pages with them

the following value determines, at which rate, these files are created

set to 0 if you don’t want or need these files

war3_ladder_update_secs = 300

jfro’s latest ladder is based on XML… so we can switch to XML output of ladder

on demand

XML_output_ladder = false

ladder排行榜的刷新时间,默认5分钟(300秒),如果你想快速更新可以适当改小一点。据说开启会严重影响性能,如果你不需要这个文件,可以设置=0

####################################################

server status textual output

#—————————————————————————–#

This is for writing status of the server in an attempt to see number of user

on line actually, and games/chans.

This is store in file var\status\warcraft3.dat as a *.ini format.

Shouldn’t be so hard in php to create dynamic website using this content.

the following value determines, at which rate, these files are created

set to 0 if you don’t want or need these files

war3_output_update_secs = 60

jfro’s latest ladder is based on XML… so we can switch to XML output of ladder

on demand. Maybe we should set update interval bigger cause XML output version

is much more verbose than the standard output

XML_status_output_ladder = false

注意,令output_update_secs = 0,否则严重影响性能.

如何实现Ladder战网排行榜

如果要实现Ladder,就必须要有pvpgn-stats。最新的版本是pvpgnstats2.44汉化版。

PVPGN服务器架设好以后,在pvpgn数据库中,建立pvpgnstats的表文件
在解压出来的pvpgnstats\SQL Files\zion文件夹下有2个sql文件,看pvpgn的表头类型,使用相应的sql文件。在pvpgn数据库中,选中sql查询建立表

1.没有表头的,对应使用的sql文件为:bnet.sql

2.对于PVPGN 1.80以后的版本,可能带有表头 pvpgn_ (可以在PVPGN的配置文件中查看,也可以在PVPGN
数据库看到该表头)
如果有,则这里也要做相应的修改$db_prefix = “pvpgn_”;
对应使用的sql文件为:pvpgn_bnet.sql

3,修改pvpgnstats下的config.inc.php文件
$site_name = “PvPGN server”;
$db_type = “mysql”; //数据库类型
$db_host = “127.0.0.1”; //数据库IP地址,一般设置本地。
$db_port = 3306; /* 3306 is the most common MySQL port */默认端口
$db_database = “pvpgn”; //显示排行数据库名
$db_user = “”; //pvpgn数据库用户名
$db_pass = “”; //pvpgn数据库名对应密码(默认是没密码的,建议加上)
$homepage = “http://127.0.0.1/“; //首页
$ladderroot = “http://127.0.0.1/bbs/pvpgnstats2/“; //pvpgnstats路径,这里改在BBS下
$pvpgn_dir = “d:/pvpgn-1.8.0rc2”; //pvpgn的路径
$d2ladder_file = “d:/pvpgn-1.8.0rc2/var/ladders/ladder.D2DV”; //ladder.d2dv目录

从战网里面进入排行榜:D:\pvpgn-1.8.0rc2\conf\anongame_infos.conf文件,将里面的网址改为你的排行榜地址(注意替换的时候选对编码格式,不然PVPGN服务器程序会出错!推荐用UltraEdit-32做修改,会提示你选择正确编码的。)

修改PVPGN里面的conf信息,修改新闻,频道以及其他一些需要中文的地方

新闻 改news.txt
每日消息 改 bnmotd.txt

要使用中文必须这样:
用UltraEdit-32打开上述文件输入中文,然后选择utra edit32 的【文件】->【转换】->【unicode/ascii/utf-8转utf-8(ASCII编制)】然后保存就可以了。

如果以后要编辑这个文件,则必须先选择utra edit32 的【文件】->【转换】->【UTF-8转unicode(I)】这样看起来是乱码的东西才会变成中文,修改后按前面的方法保存就可以了。

如何进入架设好的封闭式BN战网:

1.下载解压BNetEditor.zip和w3l Loader.rar到魔兽安装目录下并覆盖,启动BNetEditor.exe,添加服务器名,服务器地址。可以进行一下测试,看是否正常。

2.运行W3L.exe进入游戏,选择BN.net。OK,恭喜你~~~~(不过记住:自己建的BN,自己是不能做主机的,要别的游戏玩家建立游戏你进才行。)

没有固定IP的战网架设方法:

用VNN或者花生壳之类的软件,然后在bnetd.conf里面将w3routeaddr = “0.0.0.0:6200”设置为你申请的虚拟域名

用户添加战网IP的时候,把你的虚拟域名作为IP添加