[Retro Westward Journey] Latest arrangement of Linux manual server + MT3 reskin Westward Journey 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 retro Westward Journey 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.14
mysql5.6
php5.4 (delete function exec and restart php)
1. Close the firewall and open ports
Pagoda release port: 1:65535
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
cd /home
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
Site one
IP: port 88
Path/www/wwwroot/game/mhxy
Site two
127.0.0.1:81 port
Path/www/wwwroot/game/zc
7. Modify 192.168.200.129 on the server and website to your IP
There are differences in each end, please refer to the actual situation.
Modify this end
Modify /home/mt3/sdk_server/sdk.config.xml to your own IP
/www/wwwroot/game/mhxy/serverccz/index.html Modify your own IP file 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
It’s basically fine if you see 20003 on this end.
8. Client modification (client default address 192.168.200.129)
Android:
AndroidManifest.xml
libarmeabi-v7alibgame.so Search getRecruitSuccess Here you need to align it. 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: 88 This requires alignment if your IP number is modified using the UE tool
You can modify the file name. For example, the IP here is
192.168.200.129 15 digits in total
http://192.168.200.129:88/serverccz/index.html
If your IP is 13 digits
http://192.168.8.129:88/serverccz/index11.html
Just copy index.html and change it to index11.html (please add two digits to make the name the same as the actual file)
This won’t work. Here are the 15 digits.
http://192.168.200.129:88/serverccz/index.html
http://42.194.135.168:88/serverccz/index1.html
Decompile it back after modification!
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
Backend 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