这是本文档旧的修订版!
服务器设置
安装指南 | |
本文是《安装指南》的一部分。您可以单独阅读它,也可以单击上一个链接以在步骤之间轻松移动。 | |
<< Step 2: 核心安装 | Step 4: 数据库安装 » |
目录
Now that you have the source compiled, you need to add some necessary files, by either downloading or extracting them.
Some files are optional but highly recommended:
Directory | |
dbc | Mandatory |
maps | Mandatory |
vmaps | HIGHLY RECOMMENDED |
mmaps | HIGHLY RECOMMENDED |
cameras | Recommended |
下载
如果您不想使用提取器提取这些文件,可以在此处找到下载链接:
Github 链接:
Full data (v16) - from 02/01/2023 to now
- 下载上面的文件。
- 在生成文件夹中创建一个名为 Data 的新文件夹。 例如: windows: C:\Build\bin\RelWithDebInfo\Data or Linux: $HOME/azeroth-server/data/
- 从 zip 文件中提取文件并将它们放在“Data”文件夹中。
- 将 DataDir 配置选项编辑到文件夹的位置。
提取器
(如果您下载了上述文件,则不需要)
如果您下载了上面的文件,则可以跳过此步骤并跳转到 worldserver.conf / authserver.conf.
这部分只是整个过程的一般摘要 - 请针对您正在使用的操作系统更详细地阅读它。
AzerothCore 需要从魔兽世界客户端中提取的某些文件。您需要从 3.3.5a 客户端中提取它们。
默认情况下,您将使用工具编译核心,您将获得以下可执行文件:mapextractor,vmap4extractor,vmap4assembler,mmaps_generator(Windows上的.exe)。
将文件放到您的魔兽世界文件(wow.exe 在 Windows 上)所在文件夹,并运行它们。
提取所有必要的文件后,在 RelWithDebInfo 或 Debug 目录中创建一个名为 Data 的文件夹,并将文件放入其中。或者,您可以通过更改 worldserver.conf 文件中的 DataDir 值来指定要保存它们的其他目录。
如果您使用来自其他项目或分支的提取器,几乎可以肯定您的 AzerothCore 将无法识别提取的数据,甚至无法工作!
完成此操作后,您可能会收到以下消息,可以安全地忽略该消息:
Processing Map 724 [################################################################] Extracting GameObject models...Extracting World\Wmo\Band\Final_Stage.wmo No such file. Couldn't open RootWmo!!! Done! Extract V4.00 2012_02. Work complete. No errors.
故障排除
“Unable to open wmo_list.txt! Nothing extracted.”
你需要在makevmaps_simple.bat之前运行Mapextractor.exe。
配置文件
配置、conf、文件是您配置世界服务器和身份验证服务器设置的地方。
每次重新编译内核时,都会创建一个分布式的 .dist conf 文件,其中存储了所有默认选项。除了从核心分发所有选项外,此文件没有任何实际用途。
创建配置文件
- 转到您的配置文件夹,例如:D:\build\bin\RelWithDebInfo\configs
- 从 worldserver.conf.dist 和 authserver.conf.dist 中删除 .dist 部分。
- 你应该留下 worldserver.conf and authserver.conf.
打开 .conf 文件并向下滚动到 LoginDatabaseInfo、WorldDatabaseInformation 和 CharacterDatabaseInfo,然后输入服务器的 MySQL 登录信息,以便能够访问您的数据库。
在新编译的配置上,默认情况下将具有以下值:
LoginDatabaseInfo = "127.0.0.1;3306;acore;acore;acore_auth" worldserver.conf / authserver.conf WorldDatabaseInfo = "127.0.0.1;3306;acore;acore;acore_world" worldserver.conf CharacterDatabaseInfo = "127.0.0.1;3306;acore;acore;acore_characters" worldserver.conf
它们遵循以下结构:
Variablename = "MySQLIP;Port;Username;Password;database"
必须验证以下步骤:
- The hostname (127.0.0.1) can stay the same if AzerothCore is being installed on the same computer that you run WoW on. If not, follow the instruction in Realmlist Table.
- The port (3306) is the standard configured value. If you changed the default port in your MySQL settings, you must change it accordingly. The username and password can be variable. You can choose to either:
- use default acore / acore username and password pair.
- create a unique login within a User Manager within your preferred database management tool (commonly identified by an icon that looks like a person or people) and give it the necessary permissions (SELECT, INSERT, UPDATE, DELETE permissions are sufficient, and is much safer).
Updating DataDir
In your worldserver.conf file locate the DataDir option.
Edit it to the path of your folder. i.e C:\Build\bin\RelWithDebInfo\Data
Pro Tip: For most worldserver.conf setting changes, you can simply type .reload config in-game to see changes instantly without restarting the server.
NOTE: The AzerothCore Team and Owners DO NOT in any case sponsor nor support illegal public servers. If you use these projects to run an illegal public server and not for testing and learning it is your own personal choice.
(Optional) Config options by environment variable
It is possible to load config options via environment variables, which you can read about here.
Help
If you are still having problems, check:
FAQ
Common Errors
How to ask for help
Join our Discord Server, but it is not a 24/7 support channel. A staff member will answer you whenever they have time.