1.

打开conf 文件夹里面的 bnetd.conf 按照下面的修改

# If you disable this you must have one or more of the MPQ files. Otherwise

# clients will hang when they first connect because they are attempting to

# download them. The versioncheck can only be skipped for clients older

# than 109. Starting with version 109 the clients will always do version

# checking since they do not function properly if the server does not

# request it.

skip_versioncheck = false

# If you enable the version checks but want to allow clients that don’t pass

# the checksum test then enable this.

allow_bad_version = false

# If you enable the version checks but want to allow clients that aren’t

# listed in the versioncheck configuration file then enable this. Unless

# you have a very complete file or are very paranoid about cheaters this

# is a good idea.

allow_unknown_version = false

改完这3个 登录时 就会验证 魔兽 的版本,

找到”loglevels =”这里,改成 loglevels = fatal,error,warn,info,debug,trace

# Multiple log levels can be defined by connecting them with a comma (,)

# Available loglevels are:

# none

# trace

# debug

# info

# warn

# error

# fatal

#loglevels = fatal,error,warn,info,debug,trace

loglevels = fatal,error,warn,info,debug,trace

改完这一个,就会纪录所有的信息,包括 错误,警告,信息,等

先删除以前的日志,即 var文件夹里面的bnetd.log

保存运行pvpgn.exe,然后用1.21版的魔兽登录 战网,会提示 不能验证游戏版本,然后退出魔兽

2.

打开 versioncheck.conf

看到 现在 支持 1.20e 的版本信息

# Warcraft III – TFT (Expansion) 1.20e

# Note: this version check is sent in both FT and ROC mode

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

W3XP \

“war3.exe 06/13/06 06:13:05 1572307” \

0x00000014 \

1.20.4.186 \

0x8771b225 \

W3XP_120E

# Warcraft III – ROC 1.20e

# Note: this version check is sent in both FT and ROC mode

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

WAR3 \

“war3.exe 06/13/06 06:13:05 1572307” \

0x00000014 \

1.20.4.186 \

0x8771b225 \

WAR3_120E

第一行,游戏类型,游戏版本

第二行,查找bnetd.log文件,搜索selected “IX86ver1.mpq”,这行后面会有一段类似”A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B”

这样的代码

第三行,X86系统都用的是 IX86ver1.mpq,一般直接复制过来就可以。如果你用的是mac那就自己相应的改一下。

第四行,IX86是系统类型,一般也不用改,在bnetd.log里面搜索”archtag=”,等号后面的就是

第五行,游戏版本,SEXP就是星际争霸母巢之战,W3XP就是冰封王座,在bnetd.log里面搜索”clienttag=”,等号后面的就是

第六行,游戏exe版本,搜索log,在bnetd.log里面搜索”exeinfo=”。

第七行,版本ID,搜索log,在bnetd.log里面搜索”versionid=”

第八行,版本数字代码, 在bnetd.log里面搜索”verstr=” 冰封王座1.20e 就是 1.20.4.186 ,1.21a 就是 1.21.0.119

第九行,检验码,搜索log,在bnetd.log里面搜索”checksum=”

第10行,游戏类型_版本号,比如说冰封王座就是 W3XP,1.20e版就是1.20e,那就写 W3XP_120e

打开var文件夹里面的bnetd.log 来到文件尾部

Feb 24 19:51:18 [info ] sd_accept: [260] accepted connection from 10.200.65.116:2897 on 0.0.0.0:6112

Feb 24 19:51:18 [info ] conn_create: [260][228] sessionkey=0x45e03ebf sessionnum=0x00000000

Feb 24 19:51:18 [debug] sd_accept: [260] client connected to a bnet listening address

Feb 24 19:51:18 [info ] handle_init_packet: [260] client initiated bnet connection

Feb 24 19:51:18 [trace] conn_shutdown: [260] connection allready closed

Feb 24 19:51:18 [debug] conn_set_class: added latency check timer

Feb 24 19:51:18 [debug] handle_udp_packet: [228] got UDPTEST packet from 10.200.65.116:6112 (myself?)

Feb 24 19:51:18 [debug] handle_udp_packet: [228] got UDPTEST packet from 10.200.65.116:6112 (myself?)

Feb 24 19:51:18 [debug] _client_countryinfo109: [260] COUNTRYINFO_109 packet tzbias=0xfffffe20(-480) lcid=2052 langid=2052 arch=”IX86″ client=”W3XP” versionid=0x00000015 gamelang=”zhCN”

Feb 24 19:51:18 [debug] _client_countryinfo109: [260] COUNTRYINFO_109 packet from “People’s Republic of China” “CHN”

Feb 24 19:51:18 [info ] conn_set_archtag: [260] setting client arch to “IX86”

Feb 24 19:51:18 [info ] conn_set_clienttag: [260] setting client type to “W3XP”

Feb 24 19:51:18 [info ] conn_set_gamelang: [260] setting client gamelang to “zhCN”

Feb 24 19:51:18 [debug] _client_countryinfo109: [260] selecting version check

Feb 24 19:51:18 [debug] versioncheck_create: version check entry archtag=IX86, clienttag=W3XP

Feb 24 19:51:18 [debug] _client_countryinfo109: [260] selected “IX86ver1.mpq” “A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B”

Feb 24 19:51:18 [info ] _client_authreq109: [260] CLIENT_AUTHREQ_109 ticks=0x0130ec6c, verstr=1.21.0.119 exeinfo=”war3.exe 12/28/06 20:35:21 1572307″ versionid=0x00000015 gameversion=0x01150077 checksum=0xab35b5f1

Feb 24 19:51:18 [info ] versioncheck_validate: no match in list, setting to: W3XP

Feb 24 19:51:18 [info ] _client_authreq109: [260] unable to test client (closing connection)

Feb 24 19:51:19 [info ] _client_authreq109: [260] client matches versiontag “W3XP”

Feb 24 19:51:19 [debug] sd_tcpinput: [260] read FAILED (closing connection)

Feb 24 19:51:19 [info ] conn_destroy: [260] closed bnet connection

Feb 24 19:54:33 [debug] guiOnClose: GUI wants server dead…

按照这个上面的步骤修改完毕,删除老的版本信息,就是 让战网不支持1.20甚至更低的版本

但是 硬盘版魔兽 用 剑心的1.21a傻瓜补丁升级的,不能登录

经过一番研究,得以解决

因为 剑心 的 1.21a 傻瓜补丁 问题很大,所以 我又用 剑心的补丁升级,重复上面的步骤,

得到

# Warcraft III – TFT (Expansion) 1.21a

# Note: this version check is sent in both FT and ROC mode

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

W3XP \

“War3.exe 01/05/06 02:50:54 1572307” \

0x00000015 \

1.0.20.160 \

0x9130f661 \

W3XP_121a

从这里知道 为啥剑心的 登录不了,剑心的1.21 升级完毕 显示 1.0.20.160

正版 和 剑心 的版本信息都复制到 versioncheck.conf

得到下面的 信息,就OK 了, 删除 魔兽目录里面的 缓存 bncache.dat

##### Intel (IX86) ###########################################################

# -=-=-=-=-=-=- Latest Versions -=-=-=-=-=-=- No Update Required -=-=-=-=-=-=-

# Warcraft III – TFT (Expansion) 1.21a

# Note: this version check is sent in both FT and ROC mode

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

W3XP \

“War3.exe 12/28/06 20:35:21 1572307” \

0x00000015 \

1.21.0.119 \

0xab35b5f1 \

W3XP_121a

# Warcraft III – TFT (Expansion) 1.21a

# Note: this version check is sent in both FT and ROC mode

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

W3XP \

“War3.exe 01/05/06 02:50:54 1572307” \

0x00000015 \

1.0.20.160 \

0x9130f661 \

W3XP_121a

# Diablo II – LoD (Expansion) 1.11b

“A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B” \

IX86ver1.mpq \

IX86 \

D2XP \

“Game.exe 08/17/05 01:12:38 2129920” \

0x0000000b \

1.0.11.0 \

0xbfc36199 \

D2XP_111B

pvpgn mysql d2gs_pvpgn中versioncheck文件中相关记录的修改方法相关推荐

  1. python判断linux中文件是否存在_linux shell 中判断文件、目录是否存在的方法

    本文主要介绍了linux shell 中判断文件.目录是否存在的方法,分享给大家 -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为 ...

  2. linux判断目录是否存在命令,linux shell 中判断文件、目录是否存在的方法

    本文主要介绍了linux shell 中判断文件.目录是否存在的方法,分享给大家 -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为 ...

  3. object-c中管理文件和目录:NSFileManager使用方法

    object-c中管理文件和目录:NSFileManager使用方法 对于NSFileManager,文件或目录是使用文件的路径名唯一标识的.每一个路径名都是一个NSString对象,它可以是相对路径 ...

  4. Myeclipse中js文件中的乱码处理

    Myeclipse中js文件中的乱码处理 导入外部js文件到MyEclipse中打开是乱码,无法设置使用哪种编码格式,总不能在里面加上<%@ page pageEncoding="UT ...

  5. Android:Android NDK项目中C++文件中打印日志

    Android NDK项目中C++文件中打印日志 工作需要,在NDK项目中的C++文件中打印日志,还是费了点劲查找 才达到自己 想要的效果了. 步骤 添加头文件 添加头文件 定义宏函数 #includ ...

  6. php页面文件后缀名,PHP中获取文件扩展名的N种方法

    PHP中获取文件扩展名的N种方法 从网上收罗的,基本上就以下这几种方式: 第1种方法: function get_extension($file) { substr(strrchr($file, '. ...

  7. 在linux中的文件中查找_如何在Linux中查找文件

    在linux中的文件中查找 如果您是Windows用户或OSX的非超级用户,则可能使用GUI查找文件. 您可能还会发现界面有限,令人沮丧或两者兼而有之,并且学会了精于组织事物并记住文件的确切顺序. 您 ...

  8. PHP中获取文件扩展名的N种方法

    PHP中获取文件扩展名的N种方法   从网上收罗的,基本上就以下这几种方式:      第1种方法:  function get_extension($file)  {  substr(strrchr ...

  9. JAVA中获取文件MD5值的四种方法

    JAVA中获取文件MD5值的四种方法其实都很类似,因为核心都是通过JAVA自带的MessageDigest类来实现.获取文件MD5值主要分为三个步骤,第一步获取文件的byte信息,第二步通过Messa ...

最新文章

  1. Streamr助你掌控自己的数据(2)——三种整合数据至Streamr的典型场景
  2. 深入理解JavaScript模拟私有成员
  3. springboot中java泛型使用
  4. C++ 贪吃蛇 小游戏
  5. 前端学习(1392):多人管理项目12加密
  6. Vuejs 计算属性
  7. 关于/etc/init.d/nfs脚本解读中的疑问解答
  8. excel线性拟合的斜率_邵励治的机器学习 2 / 100 天:「简单线性回归」
  9. python调用matlab绘图_python初步调用MATLAB及网址存档
  10. 《流畅的Python》读书笔记——Python对象引用、可变性和垃圾回收
  11. 菜鸟的Java基础知识学习
  12. 软件过程管理期末复习资料
  13. 小米账号登陆无法连接服务器,登录小米账号显示,无法连接网络,怎么回事?...
  14. 链表哈夫曼树--编码--解码
  15. matlab wmaxlev函数,CT-PET小波图像融合在精确放射治疗应用研究
  16. 一.机器人概率学笔记_定位
  17. php高洛峰_PHP 验证码   高洛峰 细说PHP
  18. mysql字段类型NUMC_全自动数字论证机(迫真)
  19. 安装宝塔面板后原ssh连接失败问题及解决
  20. keil5软件安装开发环境搭建教程(mdk,c51通用)

热门文章

  1. 新手必看的ACL基本访问控制列表及高级访问控制列表
  2. QQ兴趣部落引流用什么产品好?QQ在社交领域已经积累了不少的商业脉络
  3. 普通本科毕业七年,我是如何从月薪三千到被动收入超过百万的?
  4. ExpandableListView(可折叠列表)的基本使用
  5. 关于Nginx不支持pathinfo问题解决
  6. ChatGpt写高考作文——2023北京卷
  7. Mysql基础-数据的查询
  8. 第十二届北航程序设计竞赛初赛——勾肥大战题解
  9. 【黑马程序员】 学习笔记 - Java新技术 - 反射
  10. 大数据时代如何建设动漫品牌