当前位置:网站首页>wap绿色传奇搭建(纯净版)
wap绿色传奇搭建(纯净版)
2022-07-21 05:08:00 【流情】
网上比较多的版本是那种一键部署的,也就是下载下来解压之后直接就能用的。这个我也搭建过。用的小皮面板,俗称phpstudy,里面集成了php+mysql+redis+apache环境,所以直接运行就行了,这个没啥好说的,没啥大的技巧含量。
原版源码,大概46M,100多M的是别人做的一键端。只能说各有各的好处的,我选择纯净版的原因是方便我后期二开。虽然他里面的数据有些确实和一键端差不多哈。有耐心的可以直接把npc,技能,物品,装备,任务啥的直接都删了,自己重新设定一套东西,就能自己做一个新游戏。
闲话少叙,下面进入正文。
1.原版源码获取
本来我想直接分享的,但是涉及到版权问题,所以没通过。想着白嫖来的总会让人不懂得珍惜,所以这里就不做源码分享了,自己去网上捞吧。
2.搭建环境
下载下来的目录大概长这样(偷偷告诉你。一键端的目录也是长这样)
我是用的宝塔搭建的环境,下载的环境有如下:数据库一定要是Mysql5.7以上 不然导入数据库的时候会缺失几个表,原因就是字节过长,所以省事点就安装5.7吧。带箭头的是必要的四个环境。其他的可有可无。
3.配置文件
万事俱备之后,代码上传到站点。我创建的站点:liuqing
数据库和redis配置,这里有两个关键文件:
好像是因为用户数据库和区服数据库分开的原因吧,所以有两个配置文件。这里我用的一个数据库,所以都对应配置一样的信息就行。
之后把数据库的文件导入就行。sg_mp001.sql和wapgame.sql文件就行。
然后就可以奔放啦~跑起来之后,我们从注册-》登录-》-》选择区服-》完了,芭比Q了,提示:
游戏区服暂未开放
什么鬼?这个地方我踩了不少坑,百思不得其解,网上也没对应的解决方法啊。没办法,我只好去看下一键端的代码去做一下对比,终于....麻了,原版源码中多了一段代码,就是如下:
这段代码根本没用到。换句话说就好比类似写死的那种,必然为真。所以我们注释这段代码就行。之后再奔放一下~
码字不易,转载请注明出处!
边栏推荐
- The text file is transferred to the external server through the web proxy server and returned after modification
- Zero dimensional interior ballistic equations of solid rocket motor
- Nodejs uses the post method to receive JS objects and write JSON files
- 微信小程序制作一个老虎机抽奖动画
- XML modeling
- 加快无人机智能巡检规模化应用,福建电力输电运检智能化建设提速
- Object. prototype. toString. The principle of call()
- Realization of serpentine digital lattice Write a cube function with the input parameter of num. the requirements are as follows through JS: when num=3, the output table effect is: [[1,2,3] [6,5,4] [7
- Web server / client setup (nodejs starts exe program)
- Why use the fast and slow pointer to find the link of the linked list, and the fast pointer and the slow pointer must meet?
猜你喜欢
qml 实现csdn搜索框,无规则圆角
The feeling of an elegant "interview"
Using tailwind on Google browser, the button will have a blue background
ecshop漏洞复现
Add, delete, modify and check~
Nodejs reads and parses the dom of XML
OpenFoam小技巧
Web server / client setup (nodejs starts exe program)
Recommend a useful WYSIWYG markdown editor mark text
Buuctf n1book [Chapter 2 advanced web] file upload
随机推荐
Usage and introduction of sonarlint
利用vscode插件 coderunner 编译运行 typescript,当输出有中文的时候,出现乱码
BUUCTF-web-随便注
thinkphp6使用EasyWeChat5.x之公众号开发(一)
Téléchargement de fichiers buctf n1book [chapitre 2 Web Advanced]
Global variable configuration dev . dev.dev . dev.test
Uniapp determines whether the user's Bluetooth is turned on
Realization of serpentine digital lattice Write a cube function with the input parameter of num. the requirements are as follows through JS: when num=3, the output table effect is: [[1,2,3] [6,5,4] [7
BUUCTF n1book [第二章 web進階]文件上傳
nodemon +NodeJs + express 文件修改自动重启服务器
php 提取字符串中的手机号并验证是否为 11 位
Realization of interface displacement by linear Schrodinger equation
Invalid mouse disabled style (cursor: not allowed) conflicts with mouse disabled events (pointer events: none)
Nodejs uses the post method to receive JS objects and write JSON files
Openfoam programming: combination of VOF method and porous media model
网页服务器/客户端搭建(nodejs启动exe程序)
TypeScript中的as unknown as xxx的用法及目的
Recommander un éditeur de markdown facile à utiliser Mark Text
大文件下载 解决方案
Precision problems and solutions of JS decimal conversion percentage