Server Setup

Guide

This article is part of the Installation Guide. You can read it alone or click on the previous link to easily move between the steps.

Now that you have the source compiled, you need to extract some necessary files.

Extractors


Note

This part is just a general summary of the overall extraction process - please read it more detailed for the OS you are working with:

Linux Server Setup

macOS Server Setup

Windows Server Setup



Trinity needs to extract certain files from World of Warcraft client. You will need to match the client version with the server branch you want to use: 3.3.5 branch needs wotlk 3.3.5a client, master branch needs the version pointed near the top of github repository.

By default you will compile the core with tools and you will get the following executable files: mapextractorvmap4extractorvmap4assemblermmaps_generator (.exe on windows platform).

You have to find the directory with your World of Warcraft binary (wow.exe on windows) and put those files in there.

Some of them are optional, but highly recommended:

DirectoryBranch
dbcallMandatory
mapsallMandatory
vmapsallHIGHLY Recommended
mmapsallHIGHLY Recommended
camerasallRecommended

gt

master onlyMandatory

After extracting all necessary files simply copy all the newly created directories to the directory with worldserver binary. Alternatively you can specify directory where you want to keep them changing DataDir value in worldserver.conf file.

If you use extractors from other projects or branches it is almost certain that your TrinityCore will not recognize the extracted data or even work!

RECOMMENDATION: compile tools in release mode to save time, debug mode extraction is much longer and it's only needed if you have a crash to report.

Contents




When this is complete you may receive the following message which can be safely ignored.

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.


worldserver.conf / authserver.conf (bnetserver.conf for master) (you must remove .dist from worldserver.conf.dist / authserver.conf.dist / bnetserver.conf.dist files to obtain them)

Scroll down to the LoginDatabaseInfo, WorldDatabaseInfo, and CharacterDatabaseInfo configuration options and enter MySQL Server login information for the server to be able to connect to your database.

On a newly compiled configuration, you should have the following values:

LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth" worldserver.conf / authserver.conf (bnetserver.conf for 6.x/master)    
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world" worldserver.conf    
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;characters" worldserver.conf

It follows this structure:

Variablename = "MySQLIP;Port;Username;Password;database"  


The following settings must be verified:

  • The hostname (127.0.0.1) can stay the same if Trinity is being installed on the same computer that you run WoW on.
    Otherwise, follow the instruction in Realmlist Table if this is not the case. 
  • The port (3306) is the standard configured value. If you changed the default port on your mysql settings, you must change it accordingly.
  • The username and password can be variable. You can choose to either:
    • use default trinity / trinity username and password pair.
    • create an 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 necessary permissions (SELECT, INSERT, UPDATE, DELETE permissions are sufficient, and is much safer).

Pro Tip

 For most worldserver.conf setting changes, you can simply type .reload config in-game to see changes instantly without restarting the server.


Public Servers

The TrinityCore 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.


Troubleshooting

"Unable to open wmo_list.txt! Nothing extracted."

you need to run Mapextractor.exe before the makevmaps_simple.bat.


Help

If you still have any problem, check:



Guide

This article is part of the Installation Guide. You can read it alone or click on the previous link to easily move between the steps.