Linux guide
easy way to get it running - 1 Week Ago
ok, u have problem - try it this way 10 steps - it's easy hehheeh
1.
install svn (subversion)
(debian e.g.) sudo apt-get install subversion
2.
create dir for mangos:
lala:/opt# mkdir mangos
3.
download newest ver by exec this:
notice - there is a link to svn, but you need to type it the as it is.
lala:/opt# svn checkout
https://svn.sourceforge.net/viewvc/mangos/trunk /opt/mangos
If all went ok go to to next one
6.
run this one and have a cup of coffe -> it'll take some time
lala:/opt/mangos# make
7.
ok, so you'r not sleeping - good
now it's time to install it
lala:/opt/mangos# sudo make install
so - it's installed now - great but, it's not done yet.
u have to download maps -> link
and extract them into maps dir (in this archive is maps folder, so just copy&paste it in mangos dir.
and you need one more tihng DBC -> link
extract it into mangos dir (u have dbc dir in this archive so just copy&paste it into mangos dir).
8.
ok, you can start the server. go to mangos/bin directory and from first shell (or term window) start ./realmd by typing ./realmd
now start mangos from second shell or term window (also from your bin directory) type ./mangosd
it will end like this (if all went ok)
Loading Teleport Coords...
Loading Game Object Templates...
>> Loaded 180105 game object templates
Scripts Library was successfully loaded.
Initializing Scripts...
Reference thread created.
1 reference-thread added.
Grid compression apply on creatures....
Grid compression apply on gameobjects....
WORLD: SetInitialWorldSettings done
WORLD: Starting Event System
Setting Grid clean up delay to 300 seconds.
Setting map update interval to 100 milli-seconds.
User thread created.
pollPendingThreads()
1 user-thread added.
User thread created.
Thread starting...
pollPendingThreads()
1 user-thread added.
Thread starting...
mangos>
9.
so now u have a server.
you can download acc creation page -> here
and if you want to add new realm (i've done that from phpmyadmin - open database realmd, click on realmlist - on left side, then on the right side click on insert. Fill in the field "name" and address (if you want to allow your network clients to connect) with your IP address of the "mangos" computer.
10.
patch your W*W to 1.12.1 or 1.12.2 and you can play.
-------------------------------------------------------------------------------------------------------------------------------------------
ok, one little update!!!!!
IF you download mangos via svn, it can be ver 0.6, and then u need maps 1.12.2 and u can find them here
(usualy, u get error that maps are outdated, then just download 1.12.2 maps and place them in /maps dir and play it again Sam )
--------------------------------------------------------------------------------------------------------------------
MySql tutorial
MySql is required for mangos to work, optional is PHPMyAdmin and PHP.
i.e. (debian) apt-get install mysql-server phpmyadmin php5 (to be able to install php5 and mysql 5 maybe you'll need to modify your apt source list - but that's way out of this tutor).
When you install MySql, download newest SDB (HERE - SDB forum - registration needed).
Ok, you have latest database, now let's create database. If you installed phpmyadmin, point your browser to i.e.
http://localhost/phpmyadmin/index.php login to your mysql server with usrname & passwd, and you'll see a field - Create new database, there create database called mangos and once again create database realmd. Becouse phpmyadmin has a limitation of filesize to import, got to shell/terminal and type: lala:/where/u/xtracted/sdb/ mysql -p mangos < name-of-sql.sql (i.e. lala:/opt/mangos/sql# mysql -p mangos < mangosdb.sql)
It will take some time to import about 100-120mb of data.
Repeat the same action for realmd.sql (i.e. lala:/opt/mangos/sql# mysql -p realmd < realmd.sql ).
So you have your databases up and running. You need to edit realmd database table realmlist to set it the way you want (realmname, ip .. . .).
In case that it is needed, update your mangos db (in your mangos dir, there is dir sql, and inside is dir updates. There are located updates for mangos and realmd. So, point your browser to
http://localhost/phpmyadmin/index.php login and on the left side select database mangos, then go to import, click browse and navigate to your mangos/sql/updates dir. select the update you want (recommended is to exec ALL UPDATES newer than your DB release) and hit go. If you get error, in most cases it means that the update you'r trying to do is already included in your database, but read the error output.
So, this is really short mysql tutorial, i'll try to add some more things later.
------------------------------------------------------------------------------------------------------------------
To update your mangos (core and sql) you can do it this way:
lala:/# svn up
https://svn.sourceforge.net/viewvc/mangos/trunk /opt/mangos
it will download all updated files newer than your release, but you have to read a bit to figure out if some major update has been made (like transports.sql) becouse transports.sql needs transports.cpp and transports.h to work fine. That's just an example,
I hope this can help someone.
------------------------------------------------------------------------------------------------------------------------------------------
TESTING REALMD: UploadTemple.COM - Free File Hosting up to 30MB!
TESTING MANGOS: UploadTemple.COM - Free File Hosting up to 30MB!
(for acc usernames and passwords open realmd.sql, mangos.sql is patched to 2633_character_spell_cooldown.sql, that's the last patch).