This guide is currently outdated - Check back soon!
TrinityCore – Start to Finish
Table of Contents:
1. Programs you’ll need
2. Obtaining the source using HG
3. Compiling the core
4. Obtaining and configuring your database
5. Setting up your configs and extracting extra data
5.5 Extracting Vmaps
1. Programs you’ll need:
Setting up any server, including TrinityCore requires a few extra programs.
I’ve done my best to compile them into a simple list;
Mysql: MySQL :: Select a Mirror to Start Downloading - mysql-essential-5.1.44-win32.msi
Hit “No thanks, Just take me to the downloads!”
TortoiseHG: http://bitbucket.org/tortoisehg/stab...3-hg-1.4.3.exe
Microsoft Visual C++ Express: Microsoft Express Downloads
3rd link from the top, on the left.
Navicat: Navicat Lite - Free software downloads and software reviews - CNET Download.com
Notepad++: Browse Notepad++ Files on SourceForge.net
Optional, if you plan on editing your core or want a clean view of your configs. I’d recommend it but if you’re low on HD space don’t bother.
Map/Vmaps Extractor Binaries
http://code.google.com/p/trinitycore...20Maptools.zip
If you don't plan on compiling these yourself.
TrinityCore Development Libraries
http://code.google.com/p/trinitycore...enssl_libs.zip
Open the archive, open "lib", then you'll see 4 folders;
win32_debug
win32_release
x64_debug
x64_release
open win32_release
you'll see some dlls and some Libs, take all of the libs and place them in C:/program files(x86)/Visual Studio 9.0/VC/lib/
now restart your PC
YOU NEED TO DO THIS PART OR TRINITYCORE WILL NOT COMPILE!
2. Obtaining the source using HG
Make sure TortoiseHG has been installed correctly and that you have restarted if prompted.
Create a folder on your desktop; this will be your source folder. It’s where you will compile and edit your core. Follow this picture:
A Window will pop up, prompting for a few fields.
Fill in “Source Path” as I did,
“Destination Path” is the location of your source folder.
Let the program run for a while, it could take up to 10 minutes depending on your Internet Speed.
Once you see this, it’s safe to exit out of TortoiseHG
Now we’re on to section 3!
3. Compiling the core
Open up your source folder. Then go to /SOURCE/WIN/
Open “TrinityCore&Script VC90.sln” with VC++
You should see something like this:
Now go to the “Build” Tab then select “Configuration Manager”
Change “Active Solution Configuration” from “Debug” to “Release”
Now let the compiler do its thing.
When it’s done you should get this:
You’re halfway there!
4. Obtaining and configuring your database
TDB Link: https://trinitydb.googlecode.com/hg/full_db/
The newest version is the file with the highest number (dur)
(it’s NOT in the archive folder)
Now put these aside for a bit, We’re going to set up MySQL
MySQL:
Run the installer for MySQL that you downloaded at the beginning of the guide. (If you passed it by, it’s at the top of the page :P)
Once MySQL is installed, it will ask you if you want to configure the server. Select Yes.
Follow this picture to configure MySQL:
After 9. Hit next, then on the 10th screen hit “Execute”
You should get the all clear.
Once you hit Finish, you’ve set up MySQL.
I hope you still have those databases!
Now open up Navicat.
Up at the top, under “Connections” Select “MySQL”
You’ll get a window with “maor stuff” to fill out.
Fill out the window like this:
Once you’re in.
Create 3 new databases, “World” “Characters” “Auth”
Now, find your TDB rar file
Extract it to anywhere. (You need Winrar (dur))
Now right click “world” select “Open Database”
Then “execute batch file”
Now navigate to find your TDB sql file
Navicat will now execute your database (this could take a good 20 minutes)
if this step takes a long time for you to finish, you can use this way
Once that’s finished, open “Characters” “execute batch file” navigate to
“SOURCE FOLDER/sql/base/characters.sql” let that execute, then open “auth” and execute “SOURCE FOLDER/sql/base/auth.sql”
Running the Updates
In the “SOURCE\sql\updates\” folder are all of the updates you need to apply. Don’t worry about all of those files, because you only need to execute the ones that are a higher number than your CTDB or TDB database. Say your CTDB database is TDB_rev32_0.0.4_7441.sql
The 7441 is the revision number it was made for. So you only need to execute the updates that are PAST 7441 (7442+, dur) You DONOT need to execute the character or realmd updates. Just the ones beginning with “world_” and a revision number past “7441”
Once you’ve installed all of the necessary updates. All that’s left is your configs!
Go into your “SOURCE/bin/win32_release/” folder. The 2 files we’re looking for are called “worldserver.conf.dist” and “authserver.conf.dist”
You’re going to want to remove the .dist extension so that they both files become “worldserver.conf” and “authserver.conf” respectively.
Now open worldserver.conf with WORDPAD, WORD, or Notepad++. Notepad will not work with TrinityCore config files.
Look for these 3 lines:
Code:
LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world"
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;characters"
Change them to:
Code:
LoginDatabaseInfo = "127.0.0.1;3306;root;YOURMYSQLPASS;auth"
WorldDatabaseInfo = "127.0.0.1;3306;root;YOURMYSQLPASS;world"
CharacterDatabaseInfo = "127.0.0.1;3306;root;YOURMYSQLPASS;characters"
Where YOURMYSQLPASS is your MySQL password you set while configuring your MySQL server.
Now open authserver.conf with WORD, WORDPAD, or Notepad++
Find the line:
Code:
LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
Replace it with
Code:
LoginDatabaseInfo = "127.0.0.1;3306;root;YOURMYSQLPASS;auth"
Where YOURMYSQLPASS is your MySQL password you set while configuring your MySQL server.
That’s all that’s necessary to do to get your server running!
I highly recommend that you read ALL of these config files. What I’ve shown you is just the bare minimum. To really understand your server, and to customize it a lot more you NEED to read both config files completely.
5. Extracting extra data
The last small step you need to do is go to where you downloaded "maptools.zip" (at the top of the guide, if you missed it :P)
now select everything in the zip file you downloaded and place them in your world of warcraft folder.
First run mapextractor.exe
(Vista and 7 users need to run this as admin)
This will extract your maps and DBCs.
It will do this, for quite a while (10-20 min)
When mapextractor.exe closes, that means it has finished extracting all of its data.
Now Drag and Drop your “maps” and “dbc” folders from your WoW directory to your “SOURCE/bin/win32_release/” folder.
5.5. Vmaps
Now run makevmaps3_simple.bat
it will run for quite a while, (about a half an hour)
once it has closed, it means it's done.
drag the vmaps folder from your WoW directory to SOURCE/bin/win32_release/
you can safely delete the "buildings" folder in your WoW directory, it's not needed.
That's All! You should be able to start worlserver.exe and authserver.exe with no problems!
If you have any questions, send me a PM or reply to this thread!
Try to give me a specific error so I can get your problem solved faster!