这是本文档旧的修订版!
服务器设置
安装指南 | |
本文是《安装指南》的一部分。您可以单独阅读它,也可以单击上一个链接以在步骤之间轻松移动。 | |
<< 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。
配置文件
The configuration, conf, files are where you configure your settings for the world- and authserver.
Every time the core is recompiled a distributed, .dist, conf file will be made where all the default options are stored. This file serves no real purpose except for distributing all the options from the core.
Creating the config files
Go to your configs folder i.e. D:\build\bin\RelWithDebInfo\configs
Remove the .dist part from worldserver.conf.dist and authserver.conf.dist.
You should be left with worldserver.conf and authserver.conf. Open the .conf files and scroll down to LoginDatabaseInfo, WorldDatabaseInfo, and CharacterDatabaseInfo and enter MySQL login information for the server to be able to access your database.
On a newly compiled configuration, you will have the following values by default
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
They follow this structure:
Variablename = "MySQLIP;Port;Username;Password;database"
The following steps must be verified:
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.