企鹅 发表于 2023-12-13 10:12:38

刀锋战记2源码+搭建教程

一.下载BII和Engine文件夹,并解压

二.将engine文件夹复制BII-DEv目录下

三.开启虚拟机,修改虚拟机nat IP为172.168.0.0
修改BII-Dev\BladeII\Config network配置IP为172.168.0.32

四.打开虚拟机,等待一会,至出现输入
   用户:root
   密码:1
内网面板地址: http://172.168.0.32:8888/34a117c8
宝塔
*以下仅为初始默认账户密码,若无法登录请执行bt命令重置账户/密码登录
username: 2u7szgi0
password: 8eda15d1
SQL数据库
root
b2api


五.Xshell连接虚拟机
主机172.168.0.32
root
协议SSH
端口22

复制七个窗口
1.
# service zookeeper-server start
# cd /usr/local/redis/
# ./bin/redis-server ./redis.conf

2.
# cd /home/ec2-user/distribution/session-server-0/
# ./b2SessionServer.1.21.2.0.release

3.
# cd /home/ec2-user/distribution/channel-server-0/
# ./b2ChannelServer.1.21.2.0.release

4.
# cd /home/ec2-user/distribution/api-server-0/
# ./b2api-app-server-1.21.2.0-SNAPSHOT.jar ^C
# cd ../master-server-0/
# ./b2MasterServer.1.21.2.0.release

5.
# cd /home/ec2-user/distribution/api-server-0/
# java -Dlog4j.configuration=file:conf/log4j.xml -jar b2api-app-server-1.21.2.0-SNAPSHOT.jar

等待多行后,再次出现输入
# java -Dlog4j.configuration=file:conf/log4j.xml -jar b2api-app-server-1.21.2.0-SNAPSHOT.jar

6.
# cd /home/ec2-user/distribution/job-server-0/
#java -Dlog4j.configuration=file:conf/log4j2.xml -jar b2api-job-server-1.21.2.0-SNAPSHOT.jar

7.
# ps -ef| grep maset
# ps -ef| grep mase
# ps -ef| grep ma
# ps -ef| grep b2SessionServer
# ps -ef| grep zook
# ps -ef| grep redis
#

等待前三个服务端代码必须出来了类似于端口的才能说明服务器起来了
Starting to accepting servers at port(11600)...

六.打开BII-Dev文件夹下BladeIIEditor,进入开发界面后点击播放按钮。



镜像系统用户
用户:root
密码:1
端口:22

用户:ec2-user
密码:123456
端口:22

虚拟机配置文件里面的IP是:172.168.0.32

外网面板地址: http://:8888/34a117c8
内网面板地址: http://172.168.0.32:8888/34a117c8
宝塔
*以下仅为初始默认账户密码,若无法登录请执行bt命令重置账户/密码登录
username: 2u7szgi0
password: 8eda15d1



If you cannot access the panel,
release the following panel port in the security group
若无法访问面板,请检查防火墙/安全组是否有放行面板端口

服务端开启指令:
cd /home/ec2-user/distribution/session-server-0
nohup ./b2SessionServer.1.21.2.0.release &

cd /home/ec2-user/distribution/channel-server-0
nohup ./b2ChannelServer.1.21.2.0.release &

cd /home/ec2-user/distribution/master-server-0
nohup ./b2MasterServer.1.21.2.0.release &

cd /home/ec2-user/distribution/api-server-0
nohup java -Dlog4j.configuration=file:conf/log4j.xml -jar b2api-app-server-1.21.2.0-SNAPSHOT.jar &

cd /home/ec2-user/distribution/job-server-0
nohupjava -Dlog4j.configuration=file:conf/log4j2.xml -jar b2api-job-server-1.21.2.0-SNAPSHOT.jar &


(这个不需要执行,如果是重新创建数据库可以执行这个,这个是导入数据到数据库里面)
cd /home/ec2-user/distribution/master-data-tool
nohupjava -Dlog4j.configuration=file:conf/log4j.xml -jar b2api-master-data-tool-1.21.2.0-SNAPSHOT.jar --directory=data/ &

客户端编译需要
vs2015updae3 :https://download.microsoft.com/download/5/4/b/54bf5736-8429-4c81-b1b3-79de06dfe756/vs2015.3.pro_chs.iso
ndk12 https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip
sdk21




















下载链接: https://og1.in/t2oKCN
提取码: **** Hidden Message *****

duishuifenda 发表于 2024-2-14 15:22:22

刀锋战记2源码+搭建教程

a124214 发表于 2024-3-4 07:17:34

wrqwrqwrqw

1187664992 发表于 2024-5-9 10:17:35

谢谢分享

cccccddddd 发表于 2024-8-29 06:33:09

感谢分享啊啊啊啊

coldcoffee 发表于 2024-9-2 13:59:35

刀锋战记2源码

elon.liu 发表于 2024-9-18 23:43:38

谢谢分享
页: [1]
查看完整版本: 刀锋战记2源码+搭建教程