linux编译mangos-vmangos (Elysium / LightsHope分支)
Progressive Vanilla
This project is an independent continuation of the Elysium / LightsHope codebases, focused on delivering the most complete and accurate content progression system possible, including support for the patch appropriate game clients.
Currently supported builds
- 1.12.1.5875+
- 1.11.2.5464
- 1.10.2.5302
Project guidelines
- Accuracy: The point of an emulator is to recreate the functionality of that which it is emulating as closely as possible. Therefore any custom behaviour should be behind a config option and off by default.
- DB Scripting: Content should be separate from the core itself, so hardcoding scripts should be avoided where possible. When database scripting functionality is insuficient, we simply expand it.
- Full progression: The ultimate goal of this project is to have complete progression starting from patch 1.2 through 1.12. This means every piece of data must be marked with the patch in which itwas added or changed to it's current state.
- Tools are great: Content creation should not require programming knowledge. We hope to eventually provide tools that allow for user-friendly editing of database scripts and content, with all data presented in human-readable form.
Useful Links
build
#代理,防止以下操作超时
export http_proxy='http://192.168.2.181:1080'
export https_proxy='http://192.168.2.181:1080'
export ftp_proxy='http://192.168.2.181:1080'
环境准备
需要ACE
需要TBB
需要gcc6以上
相关编译过程站内搜索
[root@server output]# gcc --version
gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
编译
[root@server ~]# git clone --depth=50 --branch=development https://github.com/vmangos/core.git vmangos/core
[root@server ~]# cd vmangos/core/
export TRAVIS_COMPILER=gcc
export CXX=g++
export CXX_FOR_BUILD=g++
export CC=gcc
export CC_FOR_BUILD=gcc
export ACE_ROOT=/usr/local/ACE_wrappers/
mkdir build
cd build
cmake -DDEBUG=0 -DUSE_LIBCURL=1 ..
make -j 8
make install
部署
sql
数据库初始化sql在/root/vmangos/core/sql
对应数据库为 characters mangos logs realmd
配置文件
默认安装在/opt/mangos
配置文件在/opt/mangos/etc,将两个dist改为conf
修改数据库信息,超时时间时区信息。
地图文件
将地图文件放在/opt/mangos/bin
[root@server bin]# pwd
/opt/mangos/bin
[root@server bin]# ll
total 15224
drwxr-xr-x 3 root root 16 Dec 7 14:29 5302
drwxr-xr-x 3 root root 16 Dec 7 14:29 5464
drwxr-xr-x 3 root root 16 Dec 7 14:29 5875
-rw-r--r-- 1 root root 0 Dec 7 14:34 bg.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 Char.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 Chat.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 client.log
-rw-r--r-- 1 root root 1260 Dec 7 14:54 DBErrors.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 gm_critical.log
-rw-r--r-- 1 root root 1301 Dec 7 14:54 Info.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 levelup.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 loot.log
-rwxr-xr-x 1 root root 14527088 Dec 7 13:56 mangosd
drwxr-xr-x 2 root root 61440 Dec 7 14:28 maps
drwxr-xr-x 2 root root 61440 Dec 7 14:29 mmaps
-rw-r--r-- 1 root root 3047 Dec 7 15:50 perf.log
-rwxr-xr-x 1 root root 558656 Dec 7 13:46 realmd
-rw-r--r-- 1 root root 353 Dec 7 14:34 Realmd.log
-rwxr-xr-x 1 root root 345 Dec 6 13:58 run-mangosd
-rw-r--r-- 1 root root 31888 Dec 7 15:53 Server.log
-rw-r--r-- 1 root root 0 Dec 7 14:34 trades.log
drwxr-xr-x 2 root root 176128 Dec 7 14:29 vmaps
-rw-r--r-- 1 root root 497 Dec 7 14:28 WHAT IS THIS.txt
启动
cd /opt/mangos/bin
nohup ./realmd &>>realmd.log &
nohup ./mangosd &>>mangosd.log &