/TrinityCore/TrinityCore
服务端源码,而且github上有详细教程,这里只记录关键
Windows Requirements
Processor with SSE2 support
Boost 1.63 (根据教程实际下载的是1.66)
MySQL ≥ 5.1.0 up to MySQL 5.7.x
OpenSSL≥ 1.0.x(Win64OpenSSL-1_1_0i.exe)
CMake ≥ 3.8.2 (latest stable recommended)
MS Visual Studio (Community) () (Desktop)
1.Git (2.19.0)
Git Extensions
Includes Git, MySYSGit, and KDiff - be sure toinstall all threeViewthis threadfor important details on how to install Git for best results.Default install options for KDiff and MySYSGit are acceptable.
During Git installation - Adjusting your PATH environment. Pick "Run Git from the Windows Command Prompt".
2.vs 选c++
3.mysql mysql-5.5.60.1.msi
4.KDiff3-64bit-Setup_0.9.98-2.exe
源码是3.3.5
编译成功如下
还要拷贝3个文件
→ C:\Program Files\MySQL\MySQL Server 5.x\lib\
libmysql.dll
→ C:\OpenSSL-Win64\bin
libssl-1_1-x64.dll
libcrypto-1_1-x64.dll
下来准备启动服务器
Windows
1. Browse into yourD:\Build\bin\RelWithDebInfofolder and copy these files into your root World of Warcraft folder (where the Wow.exe is located):
mapextractor.exe
mmaps_generator.exe
vmap4extractor.exe
vmap4assembler.exe
Note - If you are extracting the data files from another machine, please make sure that you have the appropriate VC++ Redistributable Packages installed
2. Browse into yourC:\TrinityCore\contriband copy "extractor.bat" into your root World of Warcraft folder (with the previous files)
3. Launch extractor.bat and select what you want.
Important:dbc/db2 and maps AND vmaps are needed to make server work properly!
Note: Extracting the vmaps will take a while depending on your machine (30 min. - Up to 2 hours). Do not attempt to stop this process. It is finished when it prints "Press any key...".It will create two new folders:buildingsandvmaps.Thebuildingsfolder is completely useless post-running and can be safely deleted.
NOTE: Don't run another task before the 1st is finished or you will have errors.
Optional but recommended:Extracting mmaps is optional but recommended. You should know that doing it will take a while depending on your machine (up to 8 hours). Do not attempt to stop this process.
4. Move the vmaps, maps, dbc, cameras and gt (master only) folders to the same directory as the TrinityCore binaries.
Note: The mmaps are experimental right now. Any bugs should be reported to theIssue Tracker.
Setting up the configuration files
First of all you need to find the two default config files (namedworldserver.conf.distandauthserver.conf.dist (bnetserver.conf.dist in master)) and copy these to their namesakes without the.distextension.
下载
createsql
和TDB_full...sql
只执行第一个,把第二个拷贝到build\bin\RelWithDebInfo 运行worldserver.exe就自动导入了
然后启动两个服务端
在world server里面执行create account 来创建账户
修改客户端配置
客户端默认是去登陆官方服务器,需要修改一下地址改成让客户端登陆我们自己架设的游戏服务器。假设魔兽世界客户端安装在 D:\WOW 下面,到 D:\WOW\Data\zhCN 下面,备份 realmlist.wtf 文件(如果没有就创建一个)。该文件原来的内容是
set realmList cn.set patchlist cn.set realmlistbn ""set portal cn
将其内容改成
SET realmlist "127.0.0.1"SET patchlist "127.0.0.1"