
















这里我们以Windows Server 2012 R2 x64为例
游戏IP:106.12.121.18
关闭防火墙,服务器最好放行指定端口
把“服务端.zip”上传到服务器(每个端的压缩包名字不一定都是一样,根据自己实际操作)
游戏解压缩到D盘:D:\ 根目录 注意:解压完后,文件夹里,把所有东西都剪切出来,剪切到D盘目录里。(文件在D盘)
——————环境架设—————————————————-
进入“必备”安装
MSVBCRT.AIO.2019.05.21.x64+X86 这个看需要安装里面都是运行库,这里我是新系统很多运行库没有需要装下.
1、windowns里面的内容复制到相应目录下
把D:\必备\windows 覆盖到系统盘
下面修改服务端IP为你的
——————服务端修改—-下面路径仅供参考你可以批量搜索替换—-有些是127.0.0.1的就不用管—————————————-
服务端修改里面的ip(106.12.121.18)为你实际IP
D:\mud2.0\DBServer\DBService.ini
D:\mud2.0\GateServer\GameGate\MirGate.ini
D:\mud2.0\GateServer\logingate\LoginGate.ini
D:\mud2.0\logincenter\logincenter_win\application\controllers\serverlist.lua (这个文件位置不是绝对的有的人会把logincenter单独放到根目录)
D:\mud2.0\logincenter\logincenter_win\config\serverlist.json (这个文件名有些端不一样,如果是过黄列表的 就不用改了)
D:\mud2.0\Mir200\Gs1\!Setup.txt
D:\phpStudy\WWW\project.manifest 这两个文件在网站目录下面 热更新用的
D:\phpStudy\WWW\version.manifest
批量替换里面的IP为你的外网IP
到这里服务端就好了。
——————客户端修改—————————————————-
安卓:assets\res
IOS:Payload\mir2-iOS.app\res
这里我们以安卓的为例
用好压打开压缩包
找到\assets\res\project.manifest 修改里面的IP为你的IP
找到\assets\res\mir2.zip和\assets\res\mir264.zip两个文件拖出来修改
分别打开找到里面的
mir2.scenes.sfselect.scene
两个分别修改好了后。替换回去。
替换好了后使用签名工具签名即可.
签名工具 很多这里不做演示了
PS:安卓 修改 mir2.zip 苹果修改mir264.zip 不用两个都一起改也可以的
我使用模拟器 不签名也可以
http://106.12.121.18:99/pay.php
GM码:syymw.com
下面我们启动服务.
——————————————————————————–
开始架设:
按顺序启动游戏即可。
第一步:1-启动网站 (点击启动 显示两个绿灯为正常)
第二步:2-DBServer (点击START ENGINE)
第三步:3-ItemLogServer (点击START)
第四步:4-Run
第五步:5-LoginGate
第六步:6-GGService
第七步:7-M2Server
都启动好了 把APK安装到模拟器中进入游戏。
安装结束了。我们测试下。
检测更新失败,这里我防火墙忘记关了。
这样就可以了。
可以正常登陆,教程到此结束。
祝君好运
下面给大家介绍几个常见问题
————————————————————————————
PS:
1、这里要说明下 默认方式连接数据库会出现乱码,需要把连接字符改为 20936 GB2312
MYSQL默认密码:www.gowlom2.com
2、如果出现 获取该区补丁失效 请修改服务端:D:\mud2.0\logincenter\ClientConfig\目录下的 config185.zip 改成 config0706.zip
3、关闭Mysql数据库:
net stop MySQL
4、如果防火墙没全部开放,需要单独打开
7100 (D:\mud2.0\GateServer\GameGate\MirGate.ini 文件[Server]的 GatePort=7100 值)
7000 (D:\mud2.0\GateServer\logingate\LoginGate.ini 文件[Setup]的 LoginGateListen=7000 值)
88 网页端口
8088 中央端口,一般默认都是8088
几个端口(实际端口根据你服务上配置开放具体参考上面)
本期教程到此结束。