How to use Forge for TrinityCore

neccta

Veteran Member
35
2014
6
How to Install TrinityCore using Forge.

All commands are case-sensitive!
You can copy and paste each command in the console. If you don't know how to paste into the console see the FAQ.
You can download Forge here.

Type the command -

Code:
[COLOR="#000000"]Download.All x86[/COLOR]

Or if you have a 64-bit OS you can use the command -

Code:
[COLOR="#000000"]Download.All x64[/COLOR]

This will download all required software, this can take some time depending on your connection speed. After the message: "All software has been downloaded" Then type the command -

Code:
[COLOR="#000000"]Install.All x86 root[/COLOR]

Or if you downloaded 64-bit -

Code:
[COLOR="#000000"]Install.All x64 root[/COLOR]

Again this will take time. When it's finished you will be asked to restart your system, please do so. Why? See the FAQ.

Next create a new folder on your system where you want to save the source files. For example create a new folder called TrinityCore in the C directory like so: C:\TrinityCore

Now type the command -

Code:
[COLOR="#000000"]Git.Clone C:\TrinityCore 3.3.5 https://github.com/TrinityCore/TrinityCore.git[/COLOR]

Or if you created a folder elsewhere type the command -

Code:
[COLOR="#000000"]Git.Clone[/COLOR] [COLOR="#FF0000"][Your Folder Directory][/COLOR] [COLOR="#000000"]3.3.5 https://github.com/TrinityCore/TrinityCore.git[/COLOR]
You do not use the brackets.

After it's finished create a new folder called 'Build' in C:\TrinityCore, like so. C:\TrinityCore\Build
Now type the command -

Code:
[COLOR="#000000"]Build.Cmake x86 C:\TrinityCore\Build C:\TrinityCore\[/COLOR]

Or if you downloaded/installed 64-bit use -

Code:
[COLOR="#000000"]Build.Cmake x64 C:\TrinityCore\Build C:\TrinityCore\[/COLOR]

If you created a folder elsewhere use the command -

Code:
[COLOR="#000000"]Build.Cmake[/COLOR] [COLOR="#FF0000"][Architecture][/COLOR] [COLOR="#FF0000"][Your Build Directory][/COLOR] [COLOR="#FF0000"][Repository Directory][/COLOR]

Finally type the command -

Code:
[COLOR="#000000"]Build.VisualStudio C:\TrinityCore\Build\TrinityCore.sln Release[/COLOR]

When it's finished your complied server is located in C:\TrinityCore\Build\bin\Release or wherever else you made your folder.

FAQ:

Q: Why do I have to restart after installing Visual Studio or All software?
A: This is because normally Visual Studio will make you restart your system after installation is complete for the system to install any updates.

Q: How do I paste anything into the console?
A: Click on the icon in the top left corner of the application. Go to Edit - Paste.

Q: Why do I pick the architecture for MySQL during installation?
A: The MySQL package downloads both x86 and x64 versions, you can choose the architecture during the install proccess.

Q: What is VCRedist?
A: VCRedist is the Microsoft Visual C++ 2008 Redistributables that is needed for OpenSSL.

Q: Does the Boost system variable get added?
A: Yes, when Boost is installed the system variable will be automatically be added.

Q: Why is Administrator access needed?
A: The console application needs access to the Program Files directory to install any required software.
 
Top