吾爱尚玩资源基地
标题:
【幻想神域2.0-决战黑骑士】手工架设服务端+客户端+工具+教程等
[打印本页]
作者:
admin
时间:
2025-6-17 18:54
标题:
【幻想神域2.0-决战黑骑士】手工架设服务端+客户端+工具+教程等
内容介绍
本资源同版本镜像端:
【幻想神域2.0-决战黑骑士】虚拟机镜像一键启动服务端+客户端+教程等
http://bbs.523play.com/thread-7782-1-1.html
幻想神域 Linux 搭建教程
测试系统:Centos 7.6
安装宝塔:
url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec
复制代码
输入y回车确认安装
安装环境
Nginx 1.24
PHP 5.4(安装pgsql扩展,重启PHP)
PostgreSQL管理器
宝塔放行端口:1-65535
软件商店-已安装-打开PostgreSql管理器, 安装postgresql数据库 选择版本11
PostgreSql管理器------左侧 配置修改 找到59行
#listen_addresses = 'localhost'
复制代码
修改为
#listen_addresses = '*'
复制代码
点保存
PostgreSql管理器------左侧 客户端认证
替换为以下文本 81行以下
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
# local all all peer
local all all trust
# IPv4 local connections:
# host all all 127.0.0.1/32 ident
host all all 127.0.0.1/32 md5
host all all 0.0.0.0/0 md5
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
# local replication all peer
# host replication all 127.0.0.1/32 ident
# host replication all ::1/128 ident
复制代码
点保存
左侧服务状态重启数据库
进入 postgres
su - postgres
psql
复制代码
输入密码:ffOnhavE1()kfun
ALTER USER postgres WITH PASSWORD 'ffOnhavE1()kfun';
CREATE USER spiritking WITH SUPERUSER PASSWORD 'ffOnhavE1()kfun';
ALTER USER spiritking SUPERUSER;
create database "FFAccount" encoding 'SQL_ASCII' template=template0;
create database "FFDB1" encoding 'SQL_ASCII' template=template0;
create database "FFMember" encoding 'SQL_ASCII' template=template0;
exit
复制代码
数据库列表添加数据库
库名:postgres
用户:postgres
密码:ffOnhavE1()kfun
访问权限 所有人
再添加一个数据库
库名:FFAccount
用户:FFAccount
密码和访问权限默认不动
再添加一个数据库
库名:FFDB1
用户:FFDB1
密码和访问权限默认不动
继续添加一个数据库
库名:FFMember
用户:FFMember
密码和访问权限默认不动
三个数据库添加完成后
上传数据库压缩包内的五个sql文件导入即可,要对应导入,切勿张冠李戴导错。
fortune_bag.sql和itemmall.sql导入到FFAccount数据库 其他的对应名字导入
使用NavicatPremium16或11连接数据库
主机: 服务器IP
端口: 5432
初始数据库: postgres
用户名: postgres
密码: ffOnhavE1()kfun
进入FFAccount修改worlds表里的192.168.1.99为你的服务器IP
进入FFDB1修改serverstatus表里的192.168.1.99为你的服务器IP
本地解压服务端修改服务端文件
\root\hxsy_ar\TicketServer\setup.ini
\root\hxsy_ar\WorldServer101\.serverstatus.sql
\root\hxsy_ar\WorldServer101\.worlds.sql
\root\hxsy_ar\WorldServer102\.serverstatus.sql
\root\hxsy_ar\WorldServer102\.worlds.sql
使用uedit或者C32Asm,使用16进制方式,打开如下文件
\root\hxsy_ar\LoginServer\LoginServer
\root\hxsy_ar\MissionServer\MissionServer
\root\hxsy_ar\WorldServer101\WorldServer101
\root\hxsy_ar\WorldServer102\WorldServer102
\root\hxsy_ar\ZoneServer101\ZoneServer101
\root\hxsy_ar\ZoneServer102\ZoneServer102
分别把LoginServer MissionServer WorldServer101 WorldServer102 ZoneServer101 ZoneServer102目下的主程序文件删除
然后把主程序文件的备份文件,比如LoginServer.bak改名,直接重命名删除掉后面的.bak,然后用UE打开修改保存
查找并替换DEDEDE为你外网IP的十六进制,只要前三位,记得把下面的 查找ASCII选项的勾去掉
这里做个简单说明,比如你外网IP是192.168.200.100,那么十六进制前三位就是C0A8C8
那么就用UE替换DEDEDE为C0A8C8
改完重新打包服务端为hxsy.zip 并上传服务器根目录
解压服务端文件
cd /
unzip hxsy.zip
复制代码
给权限
chmod -R 7777 /root
复制代码
创建网站:
IP:81
目录指向:/www/wwwroot/game
创建虚拟网卡并映射端口
把命令里的192.168.200.100改成你服务器的公网IP
ifconfig eth0:0 192.168.200.100 netmask 255.255.255.0
echo "nameserver 114.114.114.114" >> /etc/resolv.conf
继续输入如下命令,把IP改成你服务器公网的
firewall-cmd --permanent --add-masquerade
firewall-cmd --permanent --add-forward-port=port=5567:proto=tcp:toaddr=192.168.200.100:toport=5567
firewall-cmd --permanent --add-forward-port=port=5568:proto=tcp:toaddr=192.168.200.100:toport=5568
firewall-cmd --permanent --add-forward-port=port=10021:proto=tcp:toaddr=192.168.200.100:toport=10021
firewall-cmd --permanent --add-forward-port=port=10022:proto=tcp:toaddr=192.168.200.100:toport=10022
firewall-cmd --permanent --add-forward-port=port=18321:proto=tcp:toaddr=192.168.200.100:toport=18321
firewall-cmd --reload
复制代码
这堆命令重启服务器不会失效,如果失效,检查宝塔防火墙的开关。
服务端启动:
cd /root
./ar
复制代码
关闭
cd /root
./stop
复制代码
客户端修改:
\客户端\connects.ini
\客户端\connect.ini
注册地址:
http://IP:81/html/zhuce.php
GM后台:
http://IP:81/chognzhi/
GM码:
Www.523Play.Com
PS:注册完账号和充值暂时无法使用
自带账号和密码都是:admin
内容截图
(, 下载次数: 108)
上传
点击文件名下载附件
附件下载
(如果本资源侵犯到您的权益,请联系在线管理员QQ:
1589479632
处理!)
(, 下载次数: 3)
上传
点击文件名下载附件
欢迎光临 吾爱尚玩资源基地 (https://bbs.523.games/)
Powered by Discuz! X3.4