游戏源码说明:
哈喽猿 helloyuan.com 全网资源最丰富 免费下载资源最多 价格最便宜的源码网
如果您是新手不懂技术,可以咨询客服协助您搭建属于自己的游戏呦!
毕竟哈喽猿网是个伟大的网站
IP: 192.168.200.200
系统: CentOS 7.2 64位
视频教程: https://www.bilibili.com/video/BV1Kq4y1R7sZ/
视频所用工具
APK反编译:https://soydm.com/57
==================================================================
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
安装nginx1.16 php5.6 phpmyadmin4.4
上传0.zip到 根目录 (根目录是/ 不是/root)
==================================================================
cd /
unzip soydmcom.zip
创建网站: 端口为 52
目录为/www/wwwroot/syzl
配置伪静态
rewrite /sdk/user/register /sdk/register.php;
rewrite /sdk/user/fast_reg /sdk/fast_reg.php;
rewrite /sdk/user/logout /sdk/logout.php;
rewrite /sdk/user/login /sdk/login.php;
rewrite /sdk/user/sign_get /sdk/sign_get.php;
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
权限
chmod -R 777 /syzl
chmod -R 777 /www/wwwroot/syzj/gm
安装MySQL++
yum install mysql-devel -y
cd /root
tar -zxvf mysql++-3.2.5.tar.gz
cd /root/mysql++-3.2.5
./configure
make
make install
回到宝塔面板安装MySQL5.6
数据库密码设置 123456
mysql配置文件在 mysqld 下面增加 lower_case_table_names=1
数据库
mysql -uroot -p123456
create database ms_mstop1_s1;
use ms_mstop1_s1;
set names utf8;
source /syzl/sql/ms_mstop1_s1.sql;
create database ms_mstop1_s2;
use ms_mstop1_s2;
set names utf8;
source /syzl/sql/ms_mstop1_s1.sql;
create database ms_mstop1_oa1;
use ms_mstop1_oa;
set names utf8;
source /syzl/sql/ms_mstop1_oa1.sql;
create database ms_mstop1_oa2;
use ms_mstop1_oa2;
set names utf8;
source /syzl/sql/ms_mstop1_oa1.sql;
create database ms_mstop1_oaglobal;
use ms_mstop1_oaglobal;
set names utf8;
source /syzl/sql/ms_mstop1_oaglobal.sql;
create database syzl;
use syzl;
set names utf8;
source /syzl/sql/syzl.sql;
flush privileges;
exit
退出数据库
yum -y install screen
yum -y install lz4
yum -y install libjson
yum -y install json*
yum -y install json-c*
yum -y install gperftools
yum -y install scons
服务端修改
/syzl/sy_s1/srvconf.xml
/www/wwwroot/syzl/3d_kbjy/normal_top1/update/res/Android/1.0.1/1016/downinfo1000_1016.xml
/www/wwwroot/syzl/common/GetServerList.php
客户端修改49.235.145.172
安卓
assets/ConfigData/ClientSettingCfg.csv
全局搜索 \smali\com\top1game 替换IP
IOS
Payload\demo.app\Frameworks\Top1gameSDK.framework\Top1gameSDK
demo.app\Data\Raw\ConfigData\ClientSettingCfg.csv
在替换为里面写上你自己的域名或者IP地址
所有的字符总长度必须为25个
举个栗子
你的IP是1.1.1.1
那么替换里面写的就是
1.1.1.1:52/sdk///////////
如果IP是123.123.123.123
那么替换里面写的就是
123.123.123.123:52/sdk///
保存即可
把修改后的文件拖到好压里面
更新压缩包
启动游戏
cd /syzl/sy_s1 && ./startRawAll.sh
cd /syzl/sy_s2 && ./startRawAll.sh
或者快键按sy
关闭游戏
cd /syzl/sy_s1 && ./stopRawAll.sh
cd /syzl/sy_s2 && ./stopRawAll.sh
授权后台:http://ip:52/gm/gm.php
玩家后台:http://ip:52/gm/
GM码:soydmcom
谢谢楼主
谢谢楼主
还好还好哈
技术牛
感谢分享,试试看
看看看看看看看看看