Reaper-X » Emulators » Guide » How To » MMORPG » Misc. Games » Tutorials » Video Games » How to Configure MaNGOS the World of Warcraft Emulator

How to Configure MaNGOS the World of Warcraft Emulator

Update : You can browse this site software category if you’re looking for my mangos release or my custom mangos release … btw i’d suggest you to get my mangos release first because it has been tested with WoW 2.2.3 and will be updated frequently (even easier than anything written on this old post because i already include everything you need to run your own wow private server except for mysql program of course)

This is the old version of my WoW Private Server Guide, the new version that gives you a detailed step (with images) can be found at below links :

  1. Installing MySQL
  2. Setting up the Mangos
  3. Just in case you want to create lan party
  4. Setting up the webserver to put registration page

It’s been a while since the last time i post something to my blog and that’s because i’ve been playing World of Warcraft in various private / public server, from WowScape, WowFusion, b3ckswow, etc (i’m switching various server because some of them always disconnect me a lot) …

But let’s keep that aside shall we ? because this time i’ll post a guide on how to setup your own world of warcraft private server using MaNGOS (i’m sure there are many other WoW Emulator out there, but i choose this one instead)

And as a note, currently i’m using the World of Warcraft classic version (1.12.1) and this guide might or might not be useful for you if you’re trying to setup TBC (The Burning Crusade) server

So here’s the step …

Update :

If you find this guide a little bit confusing, maybe you should try reading my new guide on how to create wow private server the easier way .. also to those who’s keep getting SQL error or want the easiest way of importing the sql, i already uploaded my mangos sdb (updated till changeset 156) and already tested to work with Mangos Rev3462

You can find all of the files required (including mangos itself) in my new post .. so be sure to check it out too ;)

Required Software :

  • MySQL : This is important because MaNGOS use MySQL as it’s database and currently i’m running the 5.0.xx version
  • MaNGOS : Without this you can not run a private server of course but do not forget to get the binary files instead of the source files unless you have Microsoft Visual Studio 2003 ++ installed and want to compile it by yourself (currently i only have MSVC 6 so there’s no way i can compile it, and the Visual Studio 2005 Express version is to large for me to download it)
  • Map Extractor (both of them included) :
    1. Ad.exe : This is used to extract maps files from your World of Warcraft files
    2. MPQE : This is used to create DBC files which is extracted from WoW games data too
  • SDB : This is the database used by MaNGOS and to make your private server playable of course this is a must. And the one you must download first is SDB FULL 0.6.2 including it’s hotfix and it’s update (you must register first)

Note : You can get binary release of Mangos from Mangos-Files.de

New Update :

Im sorry previously i did not upload the changeset 141 till 156 files because i thought everyone can find the changesets files easily (also i do not know if the SDB team allowed me to put that thing here) … but to make thing easier (and that’s the purpose) .. i decided to upload the changesets file here (if it’s not allowed i’ll removed it immediately) :

You must run the sql files in order (eg 141, 142, 143, and so on) and the step to execute this sql script is described in step 5

Optional Software :

  • MySQL Client such as Phpmyadmin, etc (although in this example i did not tell you how to use those mysql client) so feel free to use mysql client or not

Special Note :

  • If you get an error message saying the maps files is outdated or anything similar to that message from the Mangos Log, that means the Ad.exe you’re using is incompatible (i have experienced this) and i’m pretty sure the Ad.exe you’re using is for the Burning Crusade client so try getting the old version a little bit
  • Im currently using Mangos Revision 3459, because the later revision from 3463 and above did not work for me (i have tested it) and i’m sure it was caused because i do not have TBC installed
  • Im currently using SDB 0.6.2 and updated till changeset 1.5.6
  • And as a reminder, i’m using World of Warcraft Client version 1.12.1

Let’s begin …

I assume you’ve downloaded all the required software and now as for the next step :

Note : If you did not set up password for the root account of your mysql database the default password is blank .. but in this example i’ll write username as username and password as password :P

1. Install MySQL and do not forget to enable InnoDB when prompted also check to make sure MySQL is in the Environment Variable Path … and activate the mysql service if you havent do so or if it is not started yet and you’re done installing MySQL

Note : Setting up environment variable for mysql is necessary to make thing easier, because you can execute it from any location

2. Extract the mangos program you’ve downloaded into your desired location for example, C:\WoW\Mangos

3. Open the Run command (Start -> Run) and type cmd and press enter and you’ll see command prompt window

4. Now type this in the command prompt :

  • cd /d C:\WoW\Mangos\sql
  • mysql -u username -p -v < create_mysql.sql
  • mysql -u username -p -v -D realmd < realmd.sql

Note : Feel free to adjust database name to your liking but in this example i only show you the easiest way of doing it

5. Extract the SDB Full 0.6.2 file, SDB 0.6.2 Hotfix, and SDB Update into desired location, for example C:\WoW\SDB and type this in the command prompt :

  • cd /d C:\WoW\SDB
  • mysql -u username -p -v -D mangos < SDB_0.6.2_FULL_DB.sql
  • mysql -u username -p -v -D mangos < SDB_0.6.2_FULL_DB_HotFix.sql
  • and continue with the update by typing the same command with the exception you must change the filename after “<” character

Note : You must update the database according to it’s version number (0.6.2 Full database equal to changelog / revision 1.4.0) so the update you must get is 1.4.1 and above .. as an addition, it might take a while before the full database imported so you can take a break while doing so

And now you’re done setting up database for MaNGOS … and feel free to delete the extracted sdb file

6. Copy the ad.exe into your WoW game directory, for example C:\Program Files\World of Warcraft. And create maps directory in there and run the ad.exe .. and yet another break time :) .. and when this process finished move the maps directory into your desired location, for example C:\WoW\data\maps

7. Now you’ll need to copy MPQE you’ve downloaded earlier into WoW games data directory, for example C:\Program files\World of Warcraft\Data. And now open command prompt again and type this :

  • cd /d C:\Program Files\World of Warcraft\Data
  • MPQE /p dbc.MPQ DBFilesClient\*.dbc

You’ll see another directory created called MPQOUT inside the data directory. Now go open that directory and rename the DBFilesClient directory to DBC, and move it into C:\WoW\Data\DBC for example

Congratulation, now you’ve finished setting up the data required for mangos

8. Now for the last step you’ll need to open the mangosd.conf inside the mangos directory and edit below lines :

  • Change the DataDir = “@MANGOSD_DATA@” into your data location inside the quotes, in this example it would be like this “C:\WoW\data”

Now you’ve finished configuring Mangos and it’s database completely, as for the next step .. try running the mangosd.exe and realmd.exe and see if you can run it without problem or not .. if there’s no problem you can go to the next step (you do not need to close the realmd process and mangosd process)

9. Go to your World of Warcraft game directory and open the realmlist.wtf file using notepad or other text editor program .. and edit it like below :

  • set realmlist 127.0.0.1

Now you’ve finished configuring WoW to used your mangos server

10. Now you can connect to your own server, if you want to create new user account you can do so by typing create username password from the mangosd window (it’ll create normal user account). But if you want to create GM account you can do so by typing this from normal command line (type cmd in the run command) and type below lines :

  • mysql -u username -p
  • USE `realmd`;
  • INSERT INTO `account` VALUES (NULL, 'username', 'password', '3', NULL, NULL, NULL, '', CURRENT_TIMESTAMP, '0', '127.0.0.1', '0', '0', '0000-00-00 00:00:00', '0');
  • quit

To get commands for your GM account, you can type : .commands at the chat window inside the game

That’s it you’re finished configuring Mangos and WoW to be played locally :) and here’s some screenshot (please don’t laugh on my equipment because i dont know anything about good items or equipment in WoW and that’s why i choose to play it locally first to learn about WoW) :)

WoW Screenshot 1

WoW Screenshot 2

Updated Screenshot :

WoW Screenshot 2

WoW Screenshot 3

WoW Screenshot 4

Leave a Comment

Comments Navigation 1 2 3 ... 8
  1. Xtonic said Apr 28, 2007 at 1:20 am

    Fixed that :D sorry about all the other posts, my browser gone nuts.
    Can you just explain me detailed how to make 2 lan computers acces the same realm ? thanks.

  2. Xtonic said Apr 28, 2007 at 1:11 am

    I get an error saying uknown database ‘realmd’

  3. Xtonic said Apr 28, 2007 at 12:58 am

    mysql -u root -p -v -D realmd

  4. Xtonic said Apr 28, 2007 at 12:55 am

    It’s hard to take my doubts here, so I’m trying to do all over again.
    This time an error appears in step 4.
    In the last line when I type
    mysql -u root -p -v -D realmd

  5. HELPME said Apr 27, 2007 at 11:53 pm

    Hi. Great guide. I have managed to create the server but I can’t make a GM acc. I write these things:
    mysql -u username -p
    USE `realmd`;
    INSERT INTO `account` VALUES (NULL, ‘username‘, ‘password‘, ‘3′, NULL, NULL, NULL, ”, CURRENT_TIMESTAMP, ‘0′, ‘127.0.0.1′, ‘0′, ‘0′, ‘0000-00-00 00:00:00′, ‘0′);
    quit
    But when I try to connect it won’t recognize me. Are there any other way to add a GM account?

  6. Xtonic said Apr 27, 2007 at 8:16 pm

    Yes, I’m cheking that, but I can’t see where can be the problem, can you please post your conf of realmd and mangosd ? I might have something wrong, but don’t know what parameter.
    Thanks.

  7. Reaper-X said Apr 27, 2007 at 2:52 pm

    hm .. i think there’s a misconfiguration somewhere try checking the realmd and mangosd configuration file

    as for server available for lan, try editing the realmlist table in the realmd database and set it into your lan ip address .. but i’d suggest you to use mysql client such as phpmyadmin to make thing easier to edit mysql database entry in the future

  8. Xtonic said Apr 27, 2007 at 1:27 am

    I just want my server to be available for Lan use, my 2 computers only. But I can’t do that, the realmlist files in D:\MySQL\data\realmd are all with squares, can’t read it, but I don’t know if it’s there I must change something.
    But for now my first priority is to set up the realm, because I can’t enter it :P

  9. Xtonic said Apr 27, 2007 at 12:59 am

    I have managed to fix the map error, I can login, but when I login i cant enter in the realm, it appears logging in and then the window of the realm appears again and again. I’m trying to fix that now, any help would be welcome :D
    thanks

  10. Reaper-X said Apr 26, 2007 at 10:39 am

    I wnat that a computer in my network can access to the server, how can i do it ? is any way I can make it enter by opening a port in my router or is something diferent ?

    first you must edit the realmlist table in realmd database and set it to your dns name or ip address

    and configure wow client to connect to your dns name .. that’s it

    but in order for other computer to connect to your computer you configure your router to portforward automatically (this is for internet)

    as for lan … just edit the realmlist and set wow client to use that lan ip address

    I can’t find the Item Sets only, any other item works fine. Are the dungeons working on your server ?
    Thanks

    item set ? it works fine for me :) .. if you see the screenshot my character was using Dreadnaugh or something item set

  11. Reaper-X said Apr 26, 2007 at 9:25 am

    # danne

    yes .. the /d option used to automatically switch into the target directory from anywhere, but i forgot if this option exist in windows 2000 and below or not (this is what i always use in windows xp because it’s pretty handy) for example :

    - you’re at D:\ and want to switch into C:\WoW and instead of typing C: && cd Wow you can use cd /d c:\wow :)

    # Xtonic

    Yep everything worked fine and i dont see any major problem at all except for minor glitch :)

    as for you error, i experience it because i was running the ad.exe for TBC client which is incompatible for my wow classic client and im sure you’re having the same problem too

    because i cant find 04331 map either in my computer so i can assume you’re using different version

    btw which version (the revision number) of mangos you’ve downloaded into your computer ?

  12. danne said Apr 26, 2007 at 2:03 am

    Man. u said
    cd /d C:\WoW\SDB
    mysql -u username -p -v -D mangos

  13. Xtonic said Apr 26, 2007 at 12:57 am

    The error in the Server text appears:
    2007-04-25 18:55:46 ERROR:Check existing of map file ‘127.0.0.1/maps/0004331.map’: not exist!
    2007-04-25 18:55:46 ERROR:Correct *.map files not found in path ‘127.0.0.1/maps’. Please place *.map files in the directory pointed by this path or correct the DataDir value in the mangosd.conf file.

  14. Xtonic said Apr 26, 2007 at 12:57 am

    Sorry, the window that pops up is the mangosd, not the realmd.
    Just to correct the sentence above.
    Thanks.

  15. Xtonic said Apr 25, 2007 at 11:24 pm

    something weird is happening now, when I click on realmd.exe the window pops up but immediatly disapears, disabling the server.

  16. Glyn (Zaphod) Evans said Apr 25, 2007 at 8:32 pm

    Thank you! That is the one yes!

  17. Xtonic said Apr 25, 2007 at 8:09 pm

    I wnat that a computer in my network can access to the server, how can i do it ? is any way I can make it enter by opening a port in my router or is something diferent ?
    Thanks :)

  18. Xtonic said Apr 25, 2007 at 7:18 pm

    I can’t find the Item Sets only, any other item works fine. Are the dungeons working on your server ?
    Thanks

  19. Reaper-X said Apr 25, 2007 at 4:13 pm

    # Skarre

    Dont worry my english is bad as well .. lol .. btw does the file actually exist in your WoW data directory ?

    try looking for those two files using Windows Explorer and see if you can find them

    or are you using burning crusade client ?

    (also .. if you want i can send you the DBC file) because its not that big – 1.60 MB compressed :)

  20. Reaper-X said Apr 25, 2007 at 4:07 pm

    # Glyn (Zaphod) Evans

    You can use broadcast your message command from the mangosd window :)

    # Xtonic – Riding skill problem

    I guess you want to learn the raptor riding skill (because i experience it too) when creating horde orc character. The only problem i have is because my character is in battle mode and that’s why i cant talk to raptor trainer

    other than that, you might also found problem at later time when doing orc quest at crossroad .. and the only solution so far i have found is :

    by typing .gmon to temporarily disable monster from attacking your character (although there’re no nearby monster) and it does the trick for me :)

    or the other way around you can learn the skill by typing .learn skill_id (i prefer not to use this for the first time because i want to learn about WoW system) lol

    # Xtonic – Using DNS

    Although i havent tried it yet (because i dont want to open specific port used by mangos in my computer) .. but maybe you can try signing up into Dynamic DNS Server so you can assign dns to your computer ip address

    and thsi is often used when you try to create web server on your computer that is accessible from outside world (internet)

    a good dynamic dns service i’ve tried is from Sitelutions (i already assign one address to my computer but i cant give the address to public using my own domain name) :)

  21. Xtonic said Apr 25, 2007 at 5:56 am

    Besides the doubt I have with the riding skill can you answer about how can I change the ip adress of the Mangos server i.e 123.0.0.0 to a name, like WoW server or something.
    Thanks

  22. Skarre said Apr 25, 2007 at 4:52 am

    when i write MPQE /p dbc.MPQ DBFilesClient\*.dbc it says that dbc.MPQ and DBFilesClient.dbc doesnt exist :S..anyone know whats wrong?? srry for my bad english

  23. Xtonic said Apr 25, 2007 at 2:29 am

    Is it me or does any1 else have a problem whith the riding instructors, because i can’t learn riding skill. When I click in a instructor no box appears.
    The rest is just PERFECT!! Great Job you have done here ;) congratiolations.

  24. Glyn (Zaphod) Evans said Apr 24, 2007 at 11:08 pm

    I am currently running this and it works great. I have a quick question about the DOS box that is up while the server is running though…

    What is the syntax to send a message using the DOS box as opposed to using the in-game .announce command? If I am not playing and want to warn others about a reboot for example, it woul dbe handy to simply type it in the DOS box.

    Thanks for your efforts BTW!

  25. Reaper-X said Apr 24, 2007 at 1:22 am

    glad it works fine for you :)

    btw to know which version of mangos you’re using try typing version at the mangosd process (command)

    as for editing the database directly using notepad or other text editor is not possible because the database was stored in mysql database format but you dont have to worry about it because there are two ways to edit your character info :

    1. Edit the data stored in the mysql database using MySQL Client program to make thing easier and not using the command line like in this example (but it’s not recommended unless you know about mysql)

    2. Using the GM commands (recommended) and to get all available gm commands try typing :

    .commands

    at the chat window in game

    for example to modify your character Talent Point :

    .modify tp (number)

    although the effect is temporary because the value recalculated each time you log in

    as a side note, im using mangos 0.7 SVN (R3462 and not plan to upgrade or to switch it in the near future unless i get the TBC client) lol .. by Maxi

  26. Xtonic said Apr 24, 2007 at 12:43 am

    Yes, the NPCs are available, must have happened something worng during the first time.
    Everything is okay, so i don’t know the revision number of my Mangos :D
    Do you know how can i change the game parameters? like HP or other stuff? in which file are those things written?
    Thanks ;)

  27. Reaper-X said Apr 23, 2007 at 11:48 pm

    Im sorry for late reply because i just got back from outside .. lol

    and to answer your question :

    - By the way, i’m using mangos 0.6, couldn’t find the 0.5 version. Don’t know if matters.

    Well .. actually what’s important is it’s version / revision number. And i’d suggest you to use the revision 3462 or below (3462 is better of course) if you only have WoW classic installed and use the SDB until changeset 156

    - Yay, i have managed to create the server. Just one problem, there are no NPC’s, do you know how to put them ?

    No NPC ? are you sure you’ve imported the full database (SDB) correctly ? and did you apply the hotfix and the updates ?

    because the NPC are already included in the full database :) .. that is if you’re using the SDB package

  28. Xtonic said Apr 23, 2007 at 9:58 pm

    Yay, i have managed to create the server. Just one problem, there are no NPC’s, do you know how to put them ?

  29. Xtonic said Apr 23, 2007 at 8:33 pm

    By the way, i’m using mangos 0.6, couldn’t find the 0.5 version. Don’t know if matters.

  30. Xtonic said Apr 23, 2007 at 8:29 pm

    I’m having a little trouble finding the mangosd.exe and realmd.exe files. don’t know where to look.
    thanks

  31. Reaper-X said Apr 23, 2007 at 6:24 pm

    forgot to put this lol

    to see mangos version, you can see it from the revision number but to make thing easier :

    mangos revision below / < 3463 support wow classic while >= 3463 support burning crusade and cant be used on wow classic only (for example like myself)

  32. Reaper-X said Apr 23, 2007 at 6:20 pm

    fortunately i still have the address from my download manager lol

    btw here’s the address :
    e-turay.com/files/MaNGOS/SDB/Archive/0.6.3/

    get the changeset from 141 until 156 only .. if you only own WoW classic version (non burning crusade update)

  33. Xtonic said Apr 23, 2007 at 6:12 pm

    ChCan i use f.e Changeset 162 or I have to choose an update that has compatibility with my Mangos (how do I see mangos version) ?
    thanks

  34. Xtonic said Apr 23, 2007 at 5:41 pm

    Thanks, worked perfectly, I now managed to go into 5 step.
    Do you know where i can downlod the update? i just have the Hotfix and the full version.

  35. Reaper-X said Apr 23, 2007 at 5:32 pm

    Ah of course not (to be honest i dont register myself at mysql.com) lol .. because it ask you for the root password (if you just installed mysql recently)

    try using mysql -u root followed by the other options used in this page :)

  36. Xtonic said Apr 23, 2007 at 5:19 pm

    Thanks, I have managed to do it, now he is asking the password, it’s the MySQL.com account password or other ?

  37. Reaper-X said Apr 23, 2007 at 5:10 pm

    aah forget to tell you this, there is other alternative if you dont want to set mysql into your env. path

    try using this command line instead if you dont want to use env. path (for example like below):

    X:\Where MySQl Directory Located\bin\mysql.exe -u username -p -v < create_mysql.sql

  38. Reaper-X said Apr 23, 2007 at 5:07 pm

    aah ic .. then the problem is because mysql havent been configured in your environment variable path

    the solution is try this :

    1. Open System properties (if you’re using windows Keyboard press CTRL+PAUSE/BREAK)

    2. Open the Environment Variables

    3. In the system Path add below line (if you’re running mysql 5 the default path would look something like this or adjust it to your mysql bin path) :

    - Variable Name = Path
    - Variable Value = C:\Program Files\MySQL\MySQL Server 5.0\bin

    please note insert that value after anything else (im sure there’re other value there)

    that’s it now you can run mysql command from anywhere :)

  39. Xtonic said Apr 23, 2007 at 4:46 pm

    Im using Windows XP. I managed to enter the path, but now the only error i get is in the 2nd part when it says mysql is not recognized as an internal, external command etc..

  40. Reaper-X said Apr 23, 2007 at 4:42 pm

    # Dasti

    I have make New Mangos server (Mangos Revision 3459) and my WoW Version is 1.12.1. When i try to login its says “unable to validate game version” what is the problem? could anyone help me? thx

    hm .. that’s strange .. did you use another patch to your wow installation ?

    try reinstalling world of warcraft (fresh install, mine was 1.0 version ), and download the 1.12.0 patch (400 mb++) and install the 1.12.1 patch (3 mb++) .. btw that’s what i done to my wow installation and it worked fine ;)

    # Xtonic

    What windows version you’re using ? winxp or win9x ?

    if you’re using win9x (or non win xp system) try this command instead :


    cd D:\WoW\Mangos

    or without /d option

  41. Xtonic said Apr 23, 2007 at 3:19 pm

    I have done has you said, in the cmd now appears D:\WoW\Mangos (I used the cd /d D:\WoW\Mangos\ without the slq).
    But I still dind’t understand the 4 step. Can you please help me by messenger? thanks.

  42. Dasti said Apr 23, 2007 at 9:35 am

    You must use your mangos directory. i.e. : Your mangos directory is E:\Mangos, use cd /d e:\mangos. If your mangos directory is C:\wow\mangos, use cd /d c:\wow\mangos. Etc…

  43. Xtonic said Apr 23, 2007 at 7:33 am

    Edit:
    I’m using cd /d D:\WoW\Mangos\sql
    But the error is the same. If any1 as managed to crate the server I would apreciate the help. My msn mail is anidrosan@msn.com in case anyone can help me.
    I don’t know what the “cd /d” part means, otherwise I could try to solve it.
    Thanks in advance.

  44. Xtonic said Apr 23, 2007 at 7:11 am

    This may sound weird, but i’m stuck at the 4 step. I put cd /d C:\WoW\Mangos\sql in the cmd, but it allways appears “The filename, the volume label syntax or the direcory name is incorrect” and ” The system cannot find the path specified. I tried various ways of writting it, but none worked.
    thanks in advance

  45. Dasti said Apr 22, 2007 at 9:39 pm

    I have make New Mangos server (Mangos Revision 3459) and my WoW Version is 1.12.1. When i try to login its says “unable to validate game version” what is the problem? could anyone help me? thx :-)

  46. I try deh said Apr 22, 2007 at 2:53 pm

    Hmmm..nice info..may be if have a time I will try it. But, I’m not a gamers..or very bad gamers :P

  47. Dasti said Apr 22, 2007 at 1:19 pm

    Nice guide. Thx :-)

  48. Reaper-X said Apr 22, 2007 at 7:55 am

    # Canna

    Your welcome :)

    # Morgan

    1. Can i make my own server free?
    Yes ..

    2. will other be in it if want?
    well that’s depend on how you promote your server of course :D but to answer your question yes

    3. can u send me a email and tell me how to make it?
    Erm .. actually you’re already reading ;)

    • striker said Aug 17, 2007 at 9:12 am

      Do anyone knows how i am getting rid of the bugs in the game? made a GM account and tried att the commands..yea its good everything is so cool!
      BUT class skills are buged ..cant ware any other weapons. warrior cant ware plate…priest cant ware staff nither, rogue can stealth bug gets buged in stealth and cant move the char..
      Most thing in the game are buged! and how do i put up my realm so other can play? plz if anyone knows this issues plz contact me OneWinged_KnightAngel@hotmail.com

  49. Canna said Apr 22, 2007 at 6:07 am

    You are the crack. Thank you man :D

  50. Morgan said Apr 22, 2007 at 12:43 am

    Can i make my own server free? will other be in it if want? can u send me a email and tell me how to make it?morganblodgett@msn.com

Comments Navigation 1 2 3 ... 8

Trackbacks/Pingbacks