AzerothCore modules add features to your realm, like transmogrification, while leaving the core code alone. Because modules are compiled into the realm, your server has to build AzerothCore from source. The “your own build” image does that for you, and it also lets you run your own fork instead of stock AzerothCore.
You need a realm that already starts: its three databases (login, characters and world) set up on the Startup page, and the client data in the data folder. Creating a backup before you switch images is a good idea. This guide uses mod-transmog from the AzerothCore catalogue as the example, because it is small and needs no client patch.
Switch to your own build
- In the Physgun Gamepanel, open your server and select Server Options.
- Select the Image box.
- Select AzerothCore (your own build). On the World of Warcraft (Playerbots) game, select Playerbots (your own build) instead.
The panel confirms with “Container image successfully saved.”
Build the realm for the first time
Select Console, then Start, and wait for the build to finish.
On the first start, AzerothCore’s source is copied into a new source folder and built. Look for console lines starting with [Build]: they count up as Compiling: 10%, 20% and so on, then show Build done in .... The console says this takes a few minutes, and the realm starts by itself when it is done.
Add a module
- Select Files.
- Open the source folder, then modules.
- Select Git above the file list, then Clone.
- In Repository URL, paste the module’s address. For mod-transmog that is
https://github.com/azerothcore/mod-transmog.git. - Turn on Shallow clone.
- Select Clone.
The module appears as its own folder, mod-transmog, inside source/modules. Any module from the catalogue works the same way: each one goes in its own folder in source/modules.
You can also upload a module by SFTP, or download it as a zip and extract it there. If you do, rename the folder so it does not end in -master: it must be mod-transmog, not mod-transmog-master. Also check that the module’s files sit directly in that folder and not in a second folder inside it.
Build and restart
Your server builds changes in the background while the realm keeps running, so players are not kicked while it compiles.
- Keep the Console open and wait for the line “The new build is ready”.
- Select Restart and confirm.
The realm starts on the new build. On start, the worldserver applies the module’s database changes by itself, as long as Updates.EnableDatabases in worldserver.conf allows it.
If a build fails, the console shows the errors and the last good build keeps running, so your realm stays up while you fix it. A change too big to build in your server’s memory while the realm runs waits until you stop the server. Stop it, then start it again.
Module settings
After the build, the realm writes each module’s settings to etc/modules, named after the module. For mod-transmog that is etc/modules/transmog.conf. Open it in the file manager, change what you need, save and restart the server.
Test it in game
To spawn the NPC you need a GM account. If you do not have one, type these in the Console while the realm runs. Swap in your own account name and password:
account create NAME PASSWORD
account set gmlevel NAME 3 -1Level 3 is administrator, and -1 applies it to every realm. If you were logged in with that account, log out and back in.
Then, in the game:
- Log in with the GM account and stand where you want the NPC.
- Type
.npc add 190010in chat. - Talk to the transmog NPC that appears. Its menu opens, and you can transmogrify an item.
To list every module the realm loaded, type .server debug. mod-transmog should be in the list.
Run your own fork
You can replace the code in source with your own fork of AzerothCore. Copy your fork’s files into source by SFTP or with the file manager, replacing what is there, and keep a copy of the old folder first. It builds the same way a module does: wait for “The new build is ready”, then restart.
A fork built on Playerbots needs the Playerbots game. Select Switch Game, pick World of Warcraft (Playerbots), then select Playerbots (your own build) in the Image box before you add the fork.
Without the panel
If you compile AzerothCore yourself instead of using the “your own build” image, the manual way is the one from the AzerothCore wiki:
-
Clone the module into the
modulesfolder of your AzerothCore source:cd modules git clone https://github.com/azerothcore/mod-transmog.git -
Make sure the folder is not named with a
-masterending. -
Run CMake again and rebuild the core. The CMake output lists
mod-transmogunder the modules configuration. -
Start the worldserver. It runs the module’s SQL from its
data/sqlfolder ifUpdates.EnableDatabasesallows it. If not, import that SQL into the right database (auth, world or characters) by hand. -
Optionally, copy
transmog.conf.disttotransmog.confin your server’s config folder and edit it.
If it does not work
- The module is not in the build: recheck the folder’s name and location (see Add a module).
- The build failed: a module that does not match your AzerothCore version is a common cause. Read the errors in the console and check the module’s page for the versions it supports.
- The realm stops with “The client data is missing”: upload the
dbc,maps,vmaps,mmapsandCamerasfolders extracted from a 3.3.5a (12340) client into thedatafolder. - The realm asks for three databases: create them on the Databases page, then enter each one’s name, user and password, plus the host and port, on the Startup page.
.npc add 190010does nothing or the NPC has no menu: the module’s SQL did not run. CheckUpdates.EnableDatabasesinworldserver.conf, or import the module’s SQL by hand.
