游戏淘宝湾

 找回密码
 立即注册
开启左侧

[手游] 最新阿拉德之怒-90级双区修复版+修改教程+视频教程

[复制链接]
--M_g-- 发表于 2022-11-15 23:16:27 | 显示全部楼层 |阅读模式

关闭防火墙:
systemctl stop firewalld
systemctl disable firewalld


2、上传ald.zip到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)


解压cfald.zip

cd /
unzip cfald.zip


给予 777权限

chmod -R 777 /home/
chmod -R 777 /root/qd
chmod -R 777 /www/wwwroot/game

3.环境配置

cd /usr/lib64/
rm -rf libstdc++.so.6
ln -s libstdc++.so.6.0.21 libstdc++.so.6
ldconfig


打开/etc/profile文件
53行添加
export PATH="$PATH:/home/root/pre-publish-new/server_res/bin"
export PATH="$PATH:/home/root/pre-publish-new/server_res2/bin"

重启
source /etc/profile



4、设置数据库密码为:west2.cn(在宝塔直接设置,修改后点下 从服务器获取看看改成功没!提示数据库密码错误就在改一次,直到能获取到0个)

修改数据库配置文件 为 “数据库.TXT” 内的内容

重载配置
重启数据库

修改数据库
\home\sql\demoald.sql   第169-170行 两处:43.135.2.37  替换为自己的服务器IP

命令行输入

cd /home
./sk

数据库创建结束。可以通过宝塔查看是否创建成功。(数据库 - 点击 从服务器获取 获取到4个就正确的)


6、搭建网站
新建一个网站,输入你的ip地址,或者是域名地址。

网站目录设置/www/wwwroot/game
运行目录 /public
关闭 防跨站攻击(open_basedir)
设置伪静态 thinkPHP

重启PHP7.1


---------------------------------------------------------------------
7、服务端和网站修改

服务端修改:  修改43.135.2.37 为你自己服务器ip
\home\root\pre-publish-new\server_res\UdpConnServer\UdpConnServer.cfg
\home\root\pre-publish-new\server_res\AdminServer\NetAddress.xml
\home\root\pre-publish-new\server_res\Config\UdpServer.xml
\home\root\pre-publish-new\server_res\RelayServer\RelayServer.cfg
\home\root\pre-publish-new\server_res\RelayServer\ServersAddress.xml

\home\root\pre-publish-new\server_res2\UdpConnServer\UdpConnServer.cfg
\home\root\pre-publish-new\server_res2\AdminServer\NetAddress.xml
\home\root\pre-publish-new\server_res2\Config\UdpServer.xml
\home\root\pre-publish-new\server_res2\RelayServer\RelayServer.cfg
\home\root\pre-publish-new\server_res2\RelayServer\ServersAddress.xml

网站修改:

/www/wwwroot/game/public/assetnt/android/zip/1.39.1.239178/package-1.39.1.237578-1.39.1.239178.zip
/www/wwwroot/game/public/assetnt/ios/zip/1.39.1.239178/package-1.39.1.237578-1.39.1.239178.zip

上面两个压缩包内的 environment_serverlist_xml.pck  文件  注意对位 或者加0也可以  

这里以安卓的为例 下载下来修改43.135.2.37//////  苹果修改43.135.2.37//////

找到environment_serverlist_xml.pck  文件 这里需要对位 默认是17位

比如的IP 是
192.168.200.129
一共15位就 补两个//就可以 如果是14位就3个
192.168.200.129//

修改后替换 回去


替换后使用MD5工具 计算下值


生成文件MD5 修改 package-1.39.1.237578-1.39.1.239178.txt MD5值

这里MD5 需要是小写的

都修改好了 覆盖到网站即可

苹果的一样就不操作了




宝塔配置PM2管理器  

启动文件(运行用户选择www权限)
/home/root/pre-publish-new/server_res/gmald/src/app.js        项目名称:res1
/home/root/pre-publish-new/server_res2/gmald/src/app.js      项目名称:res2


监听端口自动重启(运行用户选择root权限)注意!如果你服务器配置不高,最好还是不要添加,属于附加项!
/home/root/pre-publish-new/server_res/gmald/src/1.js   项目名称:自动重启一区
/home/root/pre-publish-new/server_res2/gmald/src/2.js   项目名称:自动重启二区

PSM2添加项目出错解决方法:
更换Node版本
游戏总是掉线的解决办法:
PM2添加的项目内存 加大
如果重启服务器后发现MP2项目列表被清空了,参考我写的这篇文章解决:https://west2.cn/2487.html



7、启动游戏服务

启动一区
cd /home/root/pre-publish-new/server_res && ./run.sh

启动二区
cd /home/root/pre-publish-new/server_res2 && ./run.sh

关闭一区
cd /home/root/pre-publish-new/server_res && ./stop.sh

关闭二区
cd /home/root/pre-publish-new/server_res2 && ./stop.sh


启动双区所有团本服务:
cd /home/root/pre-publish-new/server_res/TCSRecordServer && ./TCSRecordServer
cd /home/root/pre-publish-new/server_res/TeamCopyServer && ./TeamCopyServer
cd /home/root/pre-publish-new/server_res2/TCSRecordServer && ./TCSRecordServer
cd /home/root/pre-publish-new/server_res2/TeamCopyServer && ./TeamCopyServer


查看端口netstat -lntp
10001,18009
有这两个端口团本就启动成功了




8、客户端修改

安卓
assets\updateserver.json                          搜索:rg.nt6p.com 替换为你自己服务器ip
\smali\com\mgbase\net\Constant.smali           搜索:iossssss.nt6p.com 替换为你自己服务器ip
\smali\com\mgpay\c\b.smali              搜索:iossssss.nt6p.com 替换为你自己服务器ip
\smali\com\mgpay\net\b.smali          搜索:iossssss.nt6p.com 替换为你自己服务器ip
\smali\com\mgpay\ui\f.smali            搜索:iossssss.nt6p.com 替换为你自己服务器ip
\smali\com\mgpay\utils\o.smali        搜索:iossssss.nt6p.com 替换为你自己服务器ip


ios
Payload/test.app/test   搜索azzzzz.nt6p.com   ip自己使用对位域名替换
Payload/test.app/data/raw/updateserver.json  修改rg.nt6p.com为自己的IP

PS:
安卓客户端修改APP名字:
\res\values\strings.xml

苹果客户端修改APP名字:
\Payload\test.app\Info.plist


玩家注册: IP/index/Reg?agent=west2
玩家中心: ip/index/login.html


游客,如果您要查看本帖隐藏内容请回复


本楼点评(0) 收起
sir.edmond 发表于 2022-11-15 23:19:07 | 显示全部楼层
我只是路过打酱油的。
本楼点评(0) 收起
回复

使用道具 举报

xiaoyao0126 发表于 2022-11-16 07:16:23 | 显示全部楼层
感恩无私的分享与奉献
本楼点评(0) 收起
回复

使用道具 举报

1667155580 发表于 2022-11-17 07:09:51 | 显示全部楼层
真是被感动的痛哭流涕……
本楼点评(0) 收起
回复

使用道具 举报

zwx_no7 发表于 2022-11-18 20:28:12 | 显示全部楼层
楼主加油,我们都看好你哦。
本楼点评(0) 收起
回复

使用道具 举报

hacksee 发表于 2022-11-19 06:13:01 | 显示全部楼层
无回帖,不论坛,这才是人道。
本楼点评(0) 收起
回复

使用道具 举报

cybluesky 发表于 2022-11-20 00:33:34 | 显示全部楼层
真是难得给力的帖子啊。
本楼点评(0) 收起
回复

使用道具 举报

trulytry 发表于 2022-11-20 01:41:07 | 显示全部楼层
激动人心,无法言表!
本楼点评(0) 收起
回复

使用道具 举报

usjerseys889 发表于 2022-11-21 03:45:47 | 显示全部楼层
太生气了,无法HOLD啦 >_<......
本楼点评(0) 收起
回复

使用道具 举报

wnz40458 发表于 2022-11-21 12:38:24 | 显示全部楼层
我只是路过打酱油的。
本楼点评(0) 收起
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|游戏淘宝湾

GMT+8, 2024-4-28 03:58 , Processed in 0.101188 second(s), 96 queries .

Powered by 游戏淘宝湾 X3.4

Copyright © 2001-2023, Oddpp Cloud.

快速回复 返回顶部 返回列表