[Journey to the West] Latest arrangement of Linux manual server + MT3 reskin dream GM backend + Android and Apple dual-terminal + video tutorial
Building instructions:
Warm reminder: No matter what is built, the server must install the required environment, close the firewall, and open all ports.
Close the server firewall and open all ports. Refer to Baidu
MT3 reskin and Red Dust Journey to the West Linux setup tutorial
Server system: CENTOS7.6
Just install Pagoda and run the command directly.
yum install -y wget wget -O install.sh http://download.bt.cn/install/install_6.0.sh sh install.sh
Build environment:
Nginx1.18
mysql5.6
php5.4 (disable function exec, delete overload configuration and restart php)
1. Close the firewall and open ports
Pagoda release port: 1:65535
Turn off firewall
systemctl stop firewalld
systemctl disable firewalld
PS: If you use Tencent Cloud or Alibaba Cloud, remember to open the console port as well.
2. Upload xy.tar.gz to the server root directory (the root directory is not the root directory!! Use WinSCP or other tools to upload data, or you can directly transfer it to the pagoda!!)
Unzip xy.tar.gz
cd /
tar zxvf xy.tar.gz
Grant 777 permissions
chmod -R 7777 /usr/bin/qd
chmod -R 7777 /home
chmod -R 7777 /www/wwwroot
3.Environment configuration
Install java
cd /home
rpm -ivh jdk-8u144-linux-x64.rpm
Install log4cpp
tar zxvf log4cpp-1.1.3.tar.gz
cd log4cpp
./configure
make
make install
yum install -y gcc-c++ log4cpp
ln -s /usr/lib64/liblog4cpp.so.4 /usr/lib64/liblog4cpp.so.5 If this command reports an error, ignore it
4. Set the database password to: ****** (set directly in the pagoda)
Enter the command to import the database
cd /home
./sk
Database creation is completed. You can check whether the creation is successful through the pagoda. (Database - click Get from Server to get 2, which is correct)
After running, you can delete the sk file for safety
6. Build a website
There are differences in each terminal here. Please refer to the actual accompanying text tutorial for details.
Create two new sites
Website 1: IP: port 88
Path/www/wwwroot/game/mhxy
Website 2: 127.0.0.1:81
Path/www/wwwroot/game/zc
7. Modify 192.168.200.129 on the server and website to your IP
Modify /home/mt3/sdk_server/sdk.config.xml to your own IP
/www/wwwroot/game/mhxy/serverccz/index1.html Change it to your own IP to match the client
/www/wwwroot/game/mhxy/config.php
/www/wwwroot/game/zc/user/reg.php
This is enough to consider the server side. Let’s take a look at the client side.
7. Start the game service
Start each command to open a new window session
qd
1
closure
qd
11
After startup, you can pass
Port view command netstat -lntp
If you see 10003 on this end, it’s basically fine.
8. Client modification (client default address 192.168.200.129)
Android:
AndroidManifest.xml
libarmeabi-v7alibgame.so Search getRecruitSuccess Here you need to adjust. If your IP number is wrong, please refer to the following modifications.
IOS modification:
mt3
Here we take Android as an example
Decompile the client (Change or other tools)
The reason for the change is used here. It has been compiled before 3.3.5 and will not be repeated.
AndroidManifest.xml can be modified directly
libarmeabi-v7alibgame.so Search getRecruitSuccess This needs to be corrected if your IP number is modified using the UE tool
You can modify the file name. For example, here the IP is
192.168.200.129 15 digits in total
http://192.168.200.129:88/serverccz/index1.html
If your IP is 13 digits
http://192.168.8.129:88/serverccz/index111.html
Just copy index1.html and change it to index111.html (please add two digits to make the name the same as the actual file)
This won't work. I have the right number of 15 here.
Decompile it back after modification!
http://192.168.200.129:88/serverccz/index1.html
http://42.194.135.168:88/serverccz/index11.html
Registration address: http://IP:81/user/reg.php
You can log in normally.
alright. This concludes this tutorial.
Good luck to you. . . .
Do other research on your own. . .
PS:
Briefly introduce the use of GM backend
GM background
http://ip:81/gm/gm.php
GM:******
Collection of game setup peripheral tools:
Link: https://pan.baidu.com/s/1tDZQgJCYUM-3fT-OJeJyLw
Extraction code: 6rsp