skyformat99/HMX-Server
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
// 版权所有代码作者qq296464231所有,代码可用于复制,修改,商业目的等,但不得去掉版权所有标识,或在文件头加于注明即可 下面两个库也是需要x64 boost 1.60-x64 http://pan.baidu.com/s/1pL6DheN mysql 5.56-x64 http://pan.baidu.com/s/1nu5KZsH 安装步聚: 从Github下载后,将项目放在E:/NEW_SERVER/目录下(以后优化会取消这个限制,原因如上说明) 从百度云盘下载我编译好的Boost库与Mysql库,这里需要注意的是,本项目是x64的,所以请在win7-64以上机器测试,mysql要安装5.6-x64以上 导入Source/sql/swa_data.sql 文件 (哈哈,为什么是swa_*** 是原因沿用了swa-server项目的原因,那个项目已经不维护了) 本项目文件需要绝对路径或修改默认路径 CommonDefine.h #define CFG_DIR "../../Config/" #define RES_DIR "E:/NEW_SERVER/Resource/" #define ZONE_DIR "E:/NEW_SERVER/Resource/Zone/" #define SCENE_DIR "E:/NEW_SERVER/Resource/Scene/" 目录结构: E:/NEW_SERVER/BIN/ E:/NEW_SERVER/BIN/DEBUG E:/NEW_SERVER/Resource E:/NEW_SERVER/Resource/Scene E:/NEW_SERVER/Resource/Zone E:/NEW_SERVER/Source E:/NEW_SERVER/Source/dependence/boost 下载boost解压覆盖这个目录 E:/NEW_SERVER/Source/dependence/mysql 下载mysql解压覆盖这个目录 E:/NEW_SERVER/Source/doc 项目的一些临时设置思想文档 E:/NEW_SERVER/Source/sql 导入到数据库 E:/NEW_SERVER/Source/servers 进程服务器代码 生成项目文件.sln(选用) 你可以通过项目文件进行创建项目,也可以通过Cmake来构建项目(哈哈,我要收点手工费,偷点流量,仅需要9.9块,流程请看:http://www.hmx-server.org) 生成好后,在Bin/Debug/目录下启动,双击RunServer.bat启动它们五个进程,这时要检查各个进程之前的报错,如打印中有[ERROR]:xxxx 再启动测试Client.exe 在上面测试的过程中会偶尔弹出assert提示,进程会挂掉,测试阶段这样方便找到问题或者知道哪里可能需要优化, 你可以将ASSERT这个宏定义值 assert 改为 printf("assert\n");就不会影响你开发与测试了,后面我继续完善,这些ASSERT会慢慢去掉 cmake 设置为x64 vs cmake 3.4 以上 vs编译也需要设置为x64 vs2012 以上
About
hmx-servers is a multil servers,it can use to multi players of scene game and application, hope you like it!
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published