Search the Community
Showing results for tags 'trinity core'.
Found 4 results
Hello everyone, I see you are interested in learning how to compile and setup the latest trinity core on Ubuntu 14.04. In this tutorial I will teach you step by step, on how to compile and setup your server! Sections: Required Programs Updating your server (host). Installment of your development tools. Pulling the latest Trinity Core source Creating your build directory Configuring for compiling Compiling Trinity Core Making server public How to import your databases though SSH. Setting up a automatic restarter for your world server How to start your server Required Programs Click the names, for the links. Putty - Putty is a terminal emulator which will allow you to connect to your server though a secure SSH connection. I will assume you know how to log into your server already. Updating your Ubuntu host to get it ready: When you first log into your Ubuntu server, you will need to run the following command(s) to update and upgrade your server. This will save you from having any problems installing the required development tools later on in this tutorial. apt-get update && apt-get upgrade Installment of your development tools: Now you are ready to install the development tools. Run the following commands and wait for them to install. sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core wget p7zip-full libncurses5-dev zlib1g-dev libbz2-dev sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient-dev libmysql++-dev libreadline6-dev sudo apt-get install libboost-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-iostreams-dev The following command is only if you're trying to compile 4.3.4 or 6.x only. sudo apt-get install libzmq-dev Pulling Trinity Core onto your server Now that you have all your development tools installed, you are ready to pull the latest Trinity Core, and compile the source. Pulling the latest Trinity Core source cd /home git clone https://github.com/TrinityCore/TrinityCore.git cd TrinityCore git checkout 3.3.5 Run the following command, to enter your Trinity Core folder you just pulled. cd Trinitycore Creating your build directory To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur) mkdir build cd build Configuring for compiling You are now ready to configure your cmake to compile. Run the following command. cmake ../ -DPREFIX=/home/`echo $USER`/server Compiling Trinity Core: Now that you have configured your cmake, you are now ready to compile. Run the following command(s) to compile your core. This might take some time, depending on the how fast your server(host) is. Single Core Server(host) The following command(s) should only be used, if your server(host) only has a single core CPU. make make install Multiply Core Server(host) The following command(s) should only be used, if your server(host) has two or more CPU cores. example - make -j 4 (4 being the number of cores the server has.) make -j <number of cores> make install Now after awhile, the server should compile with no compiling errors. You can find your server files under cd /home/root/server Making your server public I see you made it to this part in my tutorial, and I'm glad I could helpful so far. In this next step I will show you how to make your server public! This part of the tutorial is very simple and easy to follow. If you aren't already in the correct folder, please run the following command to get there. cd /home/root/server/etc Okay now that you are in the right folder, run the following command(s) to remove the .dist at the end of the config files. mv authserver.conf.dist authserver.conf mv worldserver.conf.dist worldserver.conf Now you are ready to change the configuration file to get your server online! Run the following command to edit authserver.config nano authserver.config Use the arrow keys to go down, until you find "LoginDatabaseInfo" and change it to your mysql information. and change it to your mysql information. Once you are done changing the mysql information and any other settings you are now ready to save and exit. Push the following keys to save the file, and exit. CTRL+O - hit enter afterwards. CTRL+X Editing WorldServer.Config Run the following command to edit worldserver.config nano worldserver.conf Use the arrow keys to go down, until you find "LoginDatabaseInfo", "WorldDatabaseInfo", "CharacterDatabaseInfo" and change it to your mysql information. Once you are done changing the mysql information and any other settings you are now ready to save and exit. Push the following keys to save the file, and exit. CTRL+O - hit enter afterwards. CTRL+X How to import your databases though SSH. I made this part of the tutorial for those users who wish to import your database SQL files though SSH,rather then waiting for them to import though Heidisql, etc. This is honestly a much faster way. Run the following commands to create your database in case you haven't done that already. mysql -u root -p <-- it'll ask for your root password after you run this command CREATE DATABASE IF NOT EXISTS auth; CREATE DATABASE IF NOT EXISTS characters; CREATE DATABASE IF NOT EXISTS world; After you have ran the commands list above, exit out of the MySQL server window and run the commands listed below: After you have created your databases, exit out of the MySQL window by hitting CTRL + C really quick. Then run the commands listed below: mysql -u root -p auth < /home/TrinityCore/sql/base/auth_database.sql mysql -u root -p auth < /home/TrinityCore/sql/base/characters_database.sql I personally don't know if they host the world database on the git repo, or not. But you can excute the world database the same way as shown above. Downloading and unzip the DBC, Maps, Vmaps: This part of the tutorial will be updated shortly Setting up a automatic restarter for your world server Run the following command to create a new file with the name world-restarter.sh. nano world-restarter.sh After you have ran the command listed above, it should automically open up the new file you just made. You are now ready to copy and paste the code listed below, to setup your restarter. Note: You can paste text into your putty window by copying it, and then right clicking inside the window. #!/bin/bash while : do ./worldserver sleep 5 done Once you have pasted the code above, you will need to save the new file by pushing CTRL+O then hit enter since the file is already named. Followed by CTRL + X to exit the text editor. This is a rather simple restarter, but it gets the job done for new Linux users. How to start your server After you have compiled, setup your database, and downloaded your maps, and what not.. You are now ready to start your server, and log ingame! Run the following command to start your Auth Server: screen -s authserver ./authserver To exit the screen window, push CTRL + A + D. Run the following command to start your World Server: screen -s worldserver ./world-restarter.sh To exit the screen window, push CTRL + A + D. You can reattach to the screens, by typing screen -x and then screen -x PID.worldserver.
[[Template core/front/global/prefix is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] [Trinity] Cannot add custom ranks with world chat script (DEATHS CHAT SCRIPT)I cannot add custom ranks with world chat script. When I try, I type .chat or .help I get no output in game except text e.g. [Angelunit] : .chat I am new to this as I have only worked with repacks. Any support will be appreciated!
First I went and opened the ports. And so I did. I went to the website you suggested and it gave me timeout errors. So I went into the command prompt and did netstat -a to see all the open ports, and it clearly told me the ports were listening, which is weird. Oh well I created a DNS and put it unto my hosts.conf like this: # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # 184.108.40.206 hellboundwow.zapto.org Lastly, I went into heidisql and changed the address to my external ip like this: ( https://lh5.googleusercontent.com/-m...0-no/heidi.png ) Now, when people try to connect they can't connect, as of when they set their realmlist to hellboundwow.zapto.org When they change their realmlist to my external ip they can connect, but not login to the realm. HELP PLEASE