This guide will show you how to install TrinityCore and TrinityDB.
I am suggesting you to use Debian, Ubuntu or CentOS.
For Debian based packed managers you need to run your terminal and login as SU (super user) Then type this:
Those packets will help us to get all tools we need to compile and run the server.Code:apt-get install build-essential autoconf libtool gcc g++ make cmake subversion mercurial patch wget links zip unzip unrar apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline5-dev zlib1g-dev libbz2-dev
Ok, now we have those packets and we need to compile ACE libary:
The compile will take some time, so be a patient!Code:wget http://download.dre.vanderbilt.edu/previous_versions/ACE-5.7.8.tar.gz tar xvzf ACE-5.7.8.tar.gz cd ~/ACE_wrappers/ mkdir build cd build ../configure --prefix=/home/ВАШЕТОИМЕ/.sys/ make make install
Now we will download OpenSSL (libSSL):
For х64 CPUs you need another packages. Just use google :PCode:wget ftp://ftp.debian.org/debian/pool/main/o/openssl/libssl-dev_0.9.8o-2_i386.deb wget ftp://ftp.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-2_i386.deb wget ftp://ftp.debian.org/debian/pool/main/o/openssl/openssl_0.9.8o-2_i386.deb sudo dpkg -i libssl0.9.8_0.9.8o-2_i386.deb sudo dpkg -i openssl_0.9.8o-2_i386.deb sudo dpkg -i libssl-dev_0.9.8o-2_i386.deb
Now lets download the core
Code:hg clone http://trinitycore.googlecode.com/hg/ trinitycore
After downloading it we need to make build folder.
Code:cd trinitycore mkdir build cd build
Now we will configure CMake:
We show where to compile the core ( /home/.../build/ ) and we also enable option for remote access to core by -DDO_RA=1 ( mostly used for web tools).Code:cmake ../ -DACE_LIBRARY=/usr/lib/libACE.so -DSSLLIB=/usr/lib/libssl.so -DACE_INCLUDE_DIR=/home/YOURNAME/.sys/include/ -DDO_RA=1 -DPREFIX=/home/YOURNAME/build/ -DCONF_DIR=/home/YOURNAME/build/etc/
For more options you can take a look at this:
Code:-DSERVERS Build worldserver and authserver -DSCRIPTS Build core with scripts included -DTOOLS Build map/vmap extraction/assembler tools -DUSE_SCRIPTPCH Use precompiled headers when compiling scripts -DUSE_COREPCH Use precompiled headers when compiling servers -DUSE_SFMT Use SFMT as random numbergenerator -DWITH_WARNINGS Show all warnings during compile -DWITH_COREDEBUG Include additional debug-code in core -DWITH_SQL Copy SQL files during installation -DPREFIX Set installation directory -DCONF_DIR Set configuration directory -DLIBSDIR Set library directory -DCMAKE_C_FLAGS Set C_FLAGS for compile (advanced users only) -DCMAKE_CXX_FLAGS Set CXX_FLAGS for compile (advanced users only)
Now we will compile the core. This will take some time.
After the core get compiled you will have two folders into your /home/.../build/ directory. Navigate to /etc and change file extension to .conf !Code:make && make install
Now edit your worldserver.conf and configure server options, don't forget to setup MySQL server settings, password and user name (you've set up the password after packet installing, the users is root).
Do the same thing with authserver.conf.
When you are ready, upload/download maps, vmaps ect into the /bin directory.
Now we will download and install TrinityDB:
When its ready, navigate to the folder and unzip the biggest file. When it finish you will find file with extension .sql. Lets import it into the Mysql server:Code:hg clone https://trinitydb.googlecode.com/hg/ trinitydb
...while you are in the folder type:Code:mysql -u root -p -h localhost >type your password here mysql>create database auth; mysql>create database world; mysql>create database characters; mysql>exit;
After that we need to import characters and accounts databases:Code:mysql -u root -p -h localhost world < THE_FILE_NAME.sql
You need to change realmlist, port, and ip. Use program like Navicat SQLyog or whatever...Code:cd trinitycore/sql/base mysql -u root -p -h localhost auth < auth.sql mysql -u root -p -h localhost characters < characters.sql
When everything is ready, stop all processes (graphical interface too):
Done! You have your server running now!Code:cd /home/.../build/bin screen ./authserv - after loading finish press CTRL+A, CTRL+D screen ./worldserv - same thing now





Reply With Quote