Zisly
Intermediate OT User
- Joined
- Jun 9, 2008
- Messages
- 7,338
- Reaction score
- 120
Hello and welcome to my first Open Tibia tutorial.
I hope you will understand it
I will try to cover the most in this tutorial, the information might not be 100% accurate, so if you notice something which is wrong please inform me.
Content;
Start
Getting a open-tibia server up and running is not really that big of a deal, it's very simple actually.
The first decision to make is which distribution you would like to use and which type of distribution, either SQL or XML.
To make the decision easier I have written the differences.
SQL
The structured query language (most commonly known as SQL) is a query language that is used in conjunction with relational database management systems. It is designed to retrieve, edit, insert, update and delete data via lines of code, instead of manual maintenance.
A SQL server is faster & easier to manage than a XML server, which just seems clumsy,slow.
But a lot of people prefer to use XML server, now you will probably ask yourself;
"If SQL is much better, why use XML?"
Well the reason is that the XML servers are more ready-to-go, which means; change the settings and start it, which normally takes some minutes.
But with SQL you need to setup a database, which isn't really a big deal and there are a bunch of tutorials for it also, it may take some more time than setting up a XML server, but I can secure you, it's worth it.
The most known SQL distribution is The Forgotten Server, which indeed is a great one with a lot of features.
You can get the download link in the Distribution (server) Downloads topic, just scroll down a bit.
XML
XML stands for Extensible Markup Language. It is a system that allows for users to create their own Markup Languages by specifying and defining elements in a document that allows for data to be shared across systems easily.
In OT XML files are used for many reasons such as a means of holding data on items, monsters, accounts, players etc.
But today XML is not used to store accounts & players, that is SQLite's and MYSQL's work, simply because they are faster,easier to manage as pointed out before.
It is not recommended to use XML servers.
The most know XML distribution is Evolutions, which was a great distribution, but has not been updated since 8.0(?)
So it is not recommended using any XML above client 8.0
Ok, now you should have a idea of what you want to go with, if you choose SQL, you should go with The Forgotten Server as mentioned earlier, you can read how to set it up later in this post.
If you chose XML (8.0 and earlier versions only) you should go with Evolutions which is a great XML distribution, but remember, don't use it for client above 8.0, because it will most likely have a lot bugs.
You can read how set it up later in this post.
How to Setup a SQL Server
Let's start with the SQL server
The tutorial is divided in 10 simple steps
Files & Installation
You will need some files to get started, XAMPP and a distribution of course which you already should have.
Download XAMPP here
Now when the download is done, let's install it, which is very simple.
Configure
Now let's configure things.
The Server Side 1
Now let's configure your server with Mysql
Just follow these steps and you will be fine.
If you haven't chosen a server yet, check the the Distribution (server) Downloads topic, just scroll down a bit.
The Server Side 2
Now let's configure the server.
How to Setup a XML Server
This will not take long.
I hope you understood me, not that great writing tutorials
If I missed something just tell me.
Feel free to rep++ me
I hope you will understand it
I will try to cover the most in this tutorial, the information might not be 100% accurate, so if you notice something which is wrong please inform me.
Content;
- Start
- SQL
- XML
- How to Setup a SQL server
and AAC - How to Setup a XML server
- Distribution (server) Downloads
- FAQ
- Windows Firewall - Ports
- Router - Open Ports
Start
Getting a open-tibia server up and running is not really that big of a deal, it's very simple actually.
The first decision to make is which distribution you would like to use and which type of distribution, either SQL or XML.
To make the decision easier I have written the differences.
SQL
The structured query language (most commonly known as SQL) is a query language that is used in conjunction with relational database management systems. It is designed to retrieve, edit, insert, update and delete data via lines of code, instead of manual maintenance.
A SQL server is faster & easier to manage than a XML server, which just seems clumsy,slow.
But a lot of people prefer to use XML server, now you will probably ask yourself;
"If SQL is much better, why use XML?"
Well the reason is that the XML servers are more ready-to-go, which means; change the settings and start it, which normally takes some minutes.
But with SQL you need to setup a database, which isn't really a big deal and there are a bunch of tutorials for it also, it may take some more time than setting up a XML server, but I can secure you, it's worth it.
The most known SQL distribution is The Forgotten Server, which indeed is a great one with a lot of features.
You can get the download link in the Distribution (server) Downloads topic, just scroll down a bit.
XML
XML stands for Extensible Markup Language. It is a system that allows for users to create their own Markup Languages by specifying and defining elements in a document that allows for data to be shared across systems easily.
In OT XML files are used for many reasons such as a means of holding data on items, monsters, accounts, players etc.
But today XML is not used to store accounts & players, that is SQLite's and MYSQL's work, simply because they are faster,easier to manage as pointed out before.
It is not recommended to use XML servers.
The most know XML distribution is Evolutions, which was a great distribution, but has not been updated since 8.0(?)
So it is not recommended using any XML above client 8.0
Ok, now you should have a idea of what you want to go with, if you choose SQL, you should go with The Forgotten Server as mentioned earlier, you can read how to set it up later in this post.
If you chose XML (8.0 and earlier versions only) you should go with Evolutions which is a great XML distribution, but remember, don't use it for client above 8.0, because it will most likely have a lot bugs.
You can read how set it up later in this post.
How to Setup a SQL Server
Let's start with the SQL server
The tutorial is divided in 10 simple steps
- Files & Installation
- Configure XAMPP
- The Server Side 1
- The Server Side 2
Files & Installation
You will need some files to get started, XAMPP and a distribution of course which you already should have.
Download XAMPP here
Now when the download is done, let's install it, which is very simple.
- Run the XAMPP installer.
- Chose MYSQL and Apache as service when it asks for it.
- Now just finish it.
- Congratulations you have now installed XAMPP, easy eh?
Configure
Now let's configure things.
- Go to the XAMPP directory where you installed XAMPP.
- Run XAMPP_START and don't close it.
- As XAMPP has German as default language it would be smart to change it,
go to http://localhost/security/ and chose a language that fits for you. - Now navigate to http://localhost/security/xamppsecurity.php
- Set your passwords to keep MYSQL & the XAMPP directory safe.
- Congratulations, you have configured XAMPP!
The Server Side 1
Now let's configure your server with Mysql
Just follow these steps and you will be fine.
If you haven't chosen a server yet, check the the Distribution (server) Downloads topic, just scroll down a bit.
- Navigate to http://localhost/phpmyadmin
- Enter the password you set earlier to enter phpadmin if it asks for it.
- Now create a new database, name it whatever you want, but OT would be the easiest.
- Now click "import",chose a file named either
Schema.mysql,Database.sql or Forgotten.sql
which is situated in your distribution folder, now import it (click run/ok/kör)
- Now you have yourself a database, congratulations!
The Server Side 2
Now let's configure the server.
- Go to your distribution folder and open the file named config.lua
- Find the part with ip,port etc.
- Set your ip from http://whatsmyip.net/ in your ip field.
- Now set the port you would like the server to listen to, 7171 will do fine.
- Find the database part,and fill it. when your done it should look something like this:
Code:sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "MYSQLPASSWORDHERE" sqlDatabase = "DATABASENAMEHERE" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 60 passwordType = "plain"
- MYSQLPASSWORDHERE: set the mysql password you created on step 2.
- DATABASENAMEHERE set the database name you created on step 3.
- Congratulations, you have set up your server with mysql, you can now run the server.
AAC Setup
So, you made it here huh?
Now let's create a nice AAC site for you.
- Download a AAC, we will go with Nicaw's. download HERE
- Delete all the files in the htdocs folder in the XAMPP folder.
- Unzip/unrar the nicaw's AAC to the htdocs folder.
- Now open the config.inc.php file in the htdocs folder.
- You will see this;
Code:# Set data directory of your OT server $cfg['dirdata'] = 'C:/OT/data/'; $cfg['house_file'] = 'world/mapname-house.xml'; # MySQL server settings $cfg['SQL_Server'] = 'localhost'; $cfg['SQL_User'] = 'root'; $cfg['SQL_Password'] = 'MYSQLPASSWORD'; $cfg['SQL_Database'] = 'DATABASE';
- $cfg['dirdata'] = ''; Simply set the whole path to the data folder of your distribution.
$cfg['house_file'] = ''; Set the house file path.
$cfg['SQL_User' = '';] if you didn't take another name than root don't change it.
$cfg['SQL_Password'] = ''; Just set the MYSQL password you created on step 3 here.
$cfg['SQL_Database'] = ''; Set the database name here which you created on step 3.
- Now you just need to set the Town Config, find the part Town Config and fill in the wanted settings. (you must at least set one town)
- Congratulations! you now have a SQL server with a AAC site.
to visit the site, navigate to your ip address.
How to Setup a XML Server
This will not take long.
- Open the config.lua file in the distribution folder
- Find the ip and port part
- Set your ip from http://whatsmyip.net/ in your ip field.
- Now set the port you would like the server to listen to, 7171 will do fine.
- Now you should be good to go, congratulations!
I hope you understood me, not that great writing tutorials
If I missed something just tell me.
Feel free to rep++ me
Last edited: