Nov 8, 2009

Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server. - A great way to learn about how big MMORPGs work and are built.

free web hosting
Open Discussion > The Gaming Zone (7Gears.com) > Games [subforums] > RPG's (Role Playing Games)

Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server. - A great way to learn about how big MMORPGs work and are built.

KainRacure
====================
| Disclaimer Please read |
====================

This is an educational project ONLY! It is NOT MENT TO BE RAN AS A PUBLIC SERVER! If you do run a public server it MAY be against Blizzard's (World of Warcraft's parent company) EULA and you will void any agreements including the right to play on their servers. They will DELETE YOUR ACCOUNT and possibly ban you from their servers all together.

I am writing this to help you learn what goes into making a big time MMORPG and possibly get people into learning about video game production, C++, php, mysql and other programs and programming/scripting languages involved in large MMORPGs and their development.

I will reply to this thread with help if you need it but if I believe you are using this to run a public server I will ignore your posts.

Also another thing to think about, using and creating this server is 100% legal and DOES NOT infringe upon copyrights because it falls under fair use for educational purposes, HOWEVER If you use any of blizzard's images, files, even the names of their characters for anything besides learning you are BREAKING THE LAW. (This means if you make any money off of this server you can be sued by Blizzard, this would possibly include advertising on pages associated with your server and "donations".)


==================
| What you need First |
==================

First thing you will need is Some Version of MS Visual C++

This can be one of the following:
  • Visual Studio 6
  • Visual Studio 2005 + SP1
  • Visual C++ 2005 Express Edition
  • Visual Studio 2008
  • Visual C++ 2008 Express Edition Download for free Here
Most likely you will need the patch for SP-1, especially if you are using Windows Vista - Download SP-1 here

===================================
| Things you need to know when installing |
===================================

If you chose Visual C++ 2005 Express Edition You need to install and configure Platform SDK. To do this follow This tutorial found here up until it says in step 5 "Save and close the file and open Visual C++ Express."

If you are having trouble with step 3 here is a more detailed version:

QUOTE
[Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box]1. To add the paths to their appropriate sections, click the button Tools, and then go down to Options.
2. This will produce a new box.
3. Open up the Projects and Solutions subbox (click the +), and then go to VC++ Directories.
4. You'll notice that in the top-right corner of the box you will have an option which says: [Show Directories For...].
5. It should be easy from here on out, but read on if you want a guide.

6. Add the three directories, they are:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin] - Add this to Executable Files.
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include] - Add this to Include Files.
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib] - Add this to Library Files.

7. Continue with the steps on the website.


It is recommended that you install SP-1 as well

-----------------------------------------

If you have chosen to use Visual Studio 2005 you HAVE TO install SP-1 for VS 2005

(other versions mentioned may have other problems but I am not familiar with them and so I can not offer any help, I only mention them because they will work.)

=============================
| The Other Main Tool for Compiling |
=============================

Now you need to download TortoiseSVN from here

This is a free ware application for sharing of source code and we will use this quite a bit during this tutorial.

Install the program normally and then you need to set up your source files using SVN checkout

=====================
| Getting the Source Files |
=====================

Make a new folder somewhere (This tutorial assumes you have created this folder in the C:\ drive's root directory and named the folder MANGOS source) (from now on this will be referred to as your " MANGOS source folder")

Right click on the MANGOS source folder and choose the "SVN Checkout" option.

In the box that pops up you want to click on the area labeled "URL of Repository" and put in the address to the MANGOS source code's SVN which is:
https://mangos.svn.sourceforge.net/svnroot/mangos/trunk/

Now press the ok button and allow it to download. When it is done the window will say "Completed at revision: XXXX" It is suggested that you make a note of which revision you have for later when updating and for when you are doing the rest of this tutorial.

What you have just downloaded was 1 of 3 parts to your server, this part is known as the "core"

You will also want to get a set of scripting source code called Script Dev 2 (SD2), This is what makes the creatures actually do stuff, it is not 100% necessary but without it your creatures will do very little and many other things will not work.

To get this go into your MANGOS source folder and navigate to C:\MANGOS SOURCE\src\bindings\

Create a new folder titled ScriptDev2 and as with the core's source we need to right click the folder and choose "SVN Checkout"

This time put this url into the area labeled "URL of Repository":
https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2

Now let that download and you have your scripts. (note the revision on this one too)

(the 3rd part, which is the database, I will get to in a little bit)

========================
| Updating your server's core |
========================

This is something will want to do regularly but for now to shorten this tutorial a bit I will add it in a different tutorial later.

=========
|Extra stuff|
=========

OK here is where you would add any custom patches you have. HOWEVER I will leave that to a separate tutorial seeing as it will make this INSANELY long (not that it inst right now, lol) (hmm I was right, It is long enough that I need to cut it in parts xd.gif )

==================================
|Compiling Your MANGOS Server with SD2 |
==================================

Now to the biggest part of the work.

I suggest that you ALWAYS use a whole new set of source code for EACH
COMPILE to make sure that you do not accidentally mess it up.



SO copy your MANGOS source folder (with the SD2 folder inside it)



Label this folder "workbench"

Open your workbench folder and navigate to C:\workbench\win\
Double click the .sln file for your version of Visual Studio
  • mangosdVC71.sln - Visual Studio 6
  • mangosdVC80.sln - Visual Studio 2005 or VC++ 2005 Express
  • mangosdVC90.sln - Visual Studio 2008 or VC++ 2008 Express
Now in Visual Studio select the build menu and choose the Configuration Manager

In the configuration manager change the "Active Solution Configuration" to Release and leave the "Active Solution Platform" at Win32 and close.

Now go back to the Build menu and choose Build Solution.

It should begin to compile and will take quite some time (especially on slower computers)

If you get warning messages in the bottom do not worry, some times there will be warnings, It is ok.

When it is done it should say something like: "Build: 9 succeeded, 0 failed, 0 up-to-date, 0 skipped", if it says "Build: 3 succeeded, 0 failed, 6 up-to-date, 0 skipped" That is ok too, as long as it says "0 failed" you are good.

Now on to building the Scripts.

====================
| Compiling Script Dev 2 |
====================

This is pretty much like the core, but there are a few changes.

instead of using the .sln file in C:\workbench\win you need to look for one in C:\workbench\src\bindings\ScriptDev2

MAKE SURE YOU USE THE EXACT SAME .sln FILE AS YOU USED WITH THE CORE! If you don't this build will fail and it IS annoying.

Once again we need to go to the Build menu and to Configuration Manager and change the "Active Solution Configuration" to Release and click close.

Now just as before go to the Build menu and choose Build Solution.

When this is done you will have both your scripts and core waiting for you in C:\workbench\bin\release


=====================================
| Copying your server to its Working Directory|
=====================================

Now you need to copy these files to the directory you wish to run your server out of. (This tutorial will assume C:\MANGOS)

Also copy the files mangos.conf.in out of C:\workbench\src\mangosd\ and realmd.conf.in out of C:\workbench\src\realmd\ and scriptdev2.conf out of C:\workbench\src\bindings\ScriptDev2\ and put them in C:\MANGOS

Now rename the two .conf.in files by removing the .in from each.

Check My next Tutorial for how to Set up your MANGOS Server and database. (I will add a link at the bottom when It is finished)

======
| Links |
======

Official Mangos Forum -loads more info and the ability to get involved in creating stuff for this server project.

Official ScriptDev2 Forum - Info on the scripts used here and once again the ability to get involved and learn more.

 

 

 


Comment/Reply (w/o sign-up)

caselles2006
What would you do next?

Comment/Reply (w/o sign-up)

KainRacure
I am sorry, I havent gotten around to the actual set up tutorial yet, I have been VERY busy with things, I will create it soon (tho honestlly it gets more complicated the longer I wait, new features and all..)

Comment/Reply (w/o sign-up)

iGuest-Sarenen
Any chance on an update for this tut yet?
Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server.

Replying to KainRacure

Have you updated the next tutorial yet? I am very curious as to what to do next, and your tutorials have been the easiest to understand and follow that I have found.

I would appreciate your time if you could get that tutorial up, and if you already have, then the link to that tutorial would be appreciated as well...

Thanks so much,
Sarenen

-question by Sarenen

Comment/Reply (w/o sign-up)

twiwolfex
Definitely keeping an eye on this post. I've heard many things about mangos servers being better than ascent servers. I personally tried ascent and it had lots of bugs, and took up alot of space (well over 1 gig). So far so good with mangos, waiting for the next tutorial to continue. wink.gif

Comment/Reply (w/o sign-up)

(G)NekroN
Communication Protocol
Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server.

Hi, Thanks for the tutorial, it's has been very helpfull.

I was wondering, do you have any documentation of the protocol used for client-server communication?

You see, I have in mind the posibility of making a port to Smalltalk, just for fun, or maybe not ;). And in the no so far future, improve and add functionality in a more productive environment (or at least more productive for me ;)).

But for that I don't want to read all the source to understand how it works... It'll be easier if you have some code documentation to support it that you can share.

Thank you in advance,

NekroN.


Comment/Reply (w/o sign-up)

ZettaAIR
"educational purposes only," lol, I bet that half of these people viewing this post is probably trying to create one.

Comment/Reply (w/o sign-up)

(G)Shekina
Mangos help:)
Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server.

I have created my own mangos server but at the end it give me a error and then shuts down...

Do you maybe know why

Please Help :D 

-reply by Shekina

 


Comment/Reply (w/o sign-up)

rnichilo
Thanks for the great tutorial, i may try to host my own wow server, sounds easy enough, thanks man!

I play on Eternion private server, if any one is looking for a fun WOTLK server come on over!


Does anyone here host their own server? We should start a Trap17 wow server!

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : compile, mangos, world, warcraft, private, server, great, learn, big, mmorpgs, work, built,

  1. If You Don't Find The Guild You Like...
    About World of Warcraft Guilds (2)
  2. What's The Deal With World Of Warcraft?
    (17)
    First off, this opinion is going to be biased against World of Warcraft. And I'm going to tell
    you why, along with all the cons of playing this game. (Apparently, 10.5 million people can't be
    wrong... so I'm one of the odd ducklings out.) So here's a massively-multiplayer online
    role playing game. The concept seems neat, and a lot of people world-wide love this game for some
    reason. Maybe it's the vast in-game world. Or the plethora of instances/quests that have you
    find this person, kill this thing, kill everything, get this thing. Or the fact that ....
  3. What The Best Pirate Mmorpgs?
    (3)
    Yargh, mateys, I'm here to know what are the best pirate MMOPRGs!! /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> For that I would like you
    guys to to respond with the game tittle, a screenshot and your oppinion about it. Also, your IGN &
    Game server, so you could help me. One more question, besides the name, what's the diference
    between Pirate King and Tales of Pirate? /huh.gif" style="vertical-align:middle" emoid=":huh:"
    border="0" alt="huh.gif" />....
  4. Private Server
    (1)
    Well Private servers first came into my mind a few years back when i asked someone about "Zezima" a
    High Leveled Runescape Player, he said that "Zezima" Uses a Private "World" Which are Servers that
    are hosted through out the Real World and then connect to a Login/Game Server. now a "Private"
    Server I was wondering what it was and how we may get Access to that, well for one it would have to
    connect to the official Runescape Game Server in order to see the Graphics and Game Details and so
    on, this could not be possible because Runescape has a Web Browser based Client, but....
  5. Play World Of Warcraft, Wrath Of The Lich King Now
    EVEN BEFORE RELEASE! (18)
    This guy I know has a server hosting World of Warcraft, Wrath of the Lich King He is a family
    member/friend or whatever of the developer team, and he has been assigned as a beta tester You, yes
    YOU, can play WoW:WotLK now! How to play: Download the WoW Wotlk Alpha Client - 3.0.1 - Build 8391
    or 8392 (8330-8410 supported). (enGB)************** PC :
    hxxp://www.worldofwarcraft.com/downloads/clients/pc/beta/WotLK_enGB/PlayWoW-WotLK.exe Mac :
    hxxp://www.worldofwarcraft.com/downloads/clients/mac/beta/WotLK_enGB/PlayWoW-WotLK.dmg
    (enUS)************* PC : hxxp://www.worl....
  6. Diablo 2 D2pk Custom Private Pvp Private Realm
    Up for 2 years and in it's prime (3)
    You guys if you play Diablo 2 then listen up! Love dueling? Then you will love D2PK. Hmm...Where do
    I start? Here is what D2PK is Get 100% perfect characters level 99 in less than 2 minutes Get gear
    at NPCs, and get level 99 and torch and anni from 1 monster kill Then you duel all the time! Make
    builds you never have before, or be what you always wanted to be! This is a GM Realm! Thats right.
    Not only are you not allowed to hack, but it doesn't work. I tried ;D D2pk is a private server
    for Diablo II that is based on the Battle.Net Realms. Currently, we are usi....
  7. Runescape Through A Proxy
    I'm having trouble running Runescape through a proxy server (2)
    I use GhostGo when I surf the web most of the time because it helps protect my privacy. One
    problem I've encountered, is playing Runescape on it. A picture of my screen is attached. I use
    Safari to play Runescape. I'd rather not, but I will use Firefox if I need to.....
  8. Private Ragnarok Online Server
    (0)
    Yes this is a private ragnarok online server hosted by me. If you're interested in playing on
    trying out the game for free, feel free to join mine! If you have no idea what Ragnarok Online is,
    check out the official site before you read ahead! http://iro.ragnarokonline.com/ TwilightRO
    Server Website - http://TwilightX.net Forums - http://TwilightX.net/forum Control Panel -
    http://twilightcp.servegame.com/cp TwilightRO is hosted by Windows Server 2003 OS on a home 10mbit
    line which is soon to be upgraded to a 20mbit line. The computer itself has a P4 pr....
  9. World Of Warcraft
    Private Servers (Reccomendations) (29)
    I Play at a small private server called AlphaWoW (Previously wow.vtwout.net) We are a small
    community and have all grown to know each other withing the game and on the forums!
    www.alphawow.net i also used to play at AniWoW anyone have any suggestions on other good servers....
  10. World Of Warcraft
    (6)
    I play WoW and have a very successfull guil dwith over 100 members im lvl 41 and i ahve no idea
    where to lvl up most of my members were recruited at lvl 1 now we have about 40 lvl 70's i have
    no clue were to lvl up/quest all help appreciated....
  11. I Nid Help About Private Ro
    (0)
    i seen here before....and i nid download a lot of thing but this software i cant download can anybd
    help me find this?? >>> BadPacket....
  12. Any Animal Mmorpgs?
    (7)
    I like MMORPGs alot and animal-themed ones are the best!! I like how in some mmos you can make an
    animal character, and name it and stuff, but unfortunately there aren't many of these type of
    MMORPGs... I know of Club Penguin, Penguin Chat, Furcadia, Avatar Chat, Pokemon Online (and other
    Pokemon RPGs), and The Endless Forest. Please post the ones and you know, and/or post where I can
    find an animal mmo. Thanks!....
  13. I Need Help Creating Private Ro Server
    i need help (1)
    i just read the tutorial on how to make ro server. (Since the client software needs to be made
    aware the new private server, a few changes need to be made to the Sclientinfo.xml file located in
    the “C:\Program Files\Gravity\RO\data” folder.) the problem is i can't find the data folder for
    Sclientinfo.xml . and when i run map server an error occurs (connect failed ) same error with the
    character server. please anyone i need help. tnx /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" /> Edited topic title to better fit topic. ....
  14. World Of Warcraft
    (13)
    there seems to be alot of topics about runescape and lots of people seem to play it, so i was
    wondering if anyone played World of Warcraft, its a similar game to runescape, i personally really
    enjoy the game, its just the Ģ8.99 a month i dont like /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" />....
  15. Free Online Pirate Mmorpgs
    Do you know of any? (4)
    I love pirate MMORPGs, and I wish there were more. I am not satisfied with the ones I know. I just
    love making a pirate character and owning ships, getting piratey clothes weapons and getting crews
    and stuff. It's so much cooler than the usual medieval MMORPG. The ones I know in this GENERAL
    category: 1. Zepirates (lame, not live, text based, I don't like it) 2. Puzzle Pirates
    (Addicting and cool pretty much, I guess, but I want more) 3. Pirates of the Burning Seas (Looks
    sweet, but I can't figure out how to sign up!, also still in beta testing) 4. Dogs o....
  16. Text-based Mmorpgs?
    (3)
    Anyone know any good ones? and i DONT want to play the game called Kings of Chaos. /xd.gif"
    style="vertical-align:middle" emoid=":XD:" border="0" alt="xd.gif" /> anyone knows, jsut let me
    know here please:)....
  17. World Of Warcraft, How Do I Report A Player?
    (6)
    Hi guys and gals, Ive been playing WOW for a little while but i dont know how to report a player
    for abuse, for example if i was scammed what do i do about that? Can i report them to blizzard and
    if so, how? I dont have any need for reporting anyone as of yet but when the day arrives i dont
    want to be faffing about asking how to report them or what to do while they are off abusing other
    people too. ....
  18. Elven Dischord - New & Upcoming
    BurningWoW Server (Not owned by Blizzard) (2)
    Sup guys. I'm new to World of Warcraft, a mere three weeks so far. I've got a guild going on
    the BurningWoW server and I was wondering if anyone else played there that is looking for a guild to
    join or maybe a new server and a new guild. /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> Just PM me plz if you have any questions. Requirements ~ Horde
    Characters Only - All Alliance Chars Rejected Able to work in a team with a hierarchy No Slackers No
    Drama Currently we have about 45 players in the guild and we are looking for ....
  19. World Of Warcraft: Bc Cinematic
    The Burning Crusades Cinematic (2)
    Blizzard just released the Burning Crusade's cinematic. Click here to view Click here to
    download I just can't wait for The Burning Crusade to come out. I love in the video when the
    Mage polymorphs the Tauren and when the Undead Lock kills the Murlocs. /cheer for Illidan....
  20. World Of Warcraft
    Online Gaming (26)
    I don't play the game. I have played it before but now I all I do is make fun of people who play
    it and get addtited to it. So common and fess up if you play the game so I can make fun of you.
    South Park even made an episode on it, quoted from the show "How do you kill that, that has on
    life?". ....
  21. World Of Warcraft: The Burning Crusade
    Release date! No open beta (0)
    January 2007 Source: http://www.wow-europe.com No plans for open beta Source:
    http://worldofwarcraft.com/burningcrusade/faq.html When World of Warcraft was in beta there was
    an open beta so everyone from the whole world could just download the client and signup for free
    then play. It seems they won't have that in this beta. As of now, WoW:TBC is in closed beta and
    I am participating /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> I was lucky, back in March there was an honor contest and I did like 1
    battleground the....
  22. Free Mmorpg's
    where are they? (8)
    I'm searching for MMORPG's that are free. And not like browser based or something. I want to
    have full 3d world. Not 2d... just 3d /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />. Latly i found RF online. Its a cool game. If you wanna check it out.
    Go ahead. I got 2 examples of games i now, and in what genre i would like the games: Silkroad RF
    Online Just think of WoW and than free /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />. Give me some names guys /biggrin.gif" style="vertical-....
  23. World Of Warcraft.
    this game is so cool. (8)
    how many people love this game,and how did u find out about it? this game has many upgrades to it.
    /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  24. World Of Warcraft Billing
    (10)
    ok, well i have a question for all of you wow players out there. I am thinking on buying the game
    but i have a queestion, Is world of warcraft a one time payment thing, where you buy the CD's
    and thats it, or is it somthing where you buy the CD's, then you have to pay a monthly fee to
    play it? just curious....
  25. Private Server Ro .
    How to create your own private Ragnarok-Online server !!! (181)
    I saw that there are a lot of people asking for how to create a private Ragnarok-Online server . so
    now i decide to make this tutorial to to help these people ... i didn't have a server but my
    friend had server and ihelped him to find pros and some tutos so , i learned with him how to create
    a server ...stop making introduction ...let's go ... first you have to have minimum
    requirements : ----Software :---- i think any windows should work, but i recommend Win Xp i
    think you have alredy a Winrar *- Korean Ragnarok client *- Sakray patch (*i recommend the las....
  26. Free Mmorpg's
    Let us know of your favorite MMORPG. (32)
    I have no money to play WoW or any mof them, so whats a good alternate? I know Runescape, it sucks.
    I also know Maple Story and Dofus. Any others?....
  27. Follow Up On The Best Free Mmorpg's
    praise to Anarchy Online (8)
    There was a recent post about someone asking what good free mmo's are available for free
    download. Im not necessarily going to make a list but all are welcome to do so and comment on what
    im about to say. I without a doubt believe that for anyone who tries it and hangs in there long
    enough to see all the features of the game that ANARCHY ONLINE is indeed the supreme in free
    mmo's. I would even argue that this game is better than most pay to plays. Also it has 4
    expansions and you can get them all for only $9.95! I have played everquest back in the day and it
    was ....
  28. World Of Warcraft: Burning Crusade
    WoW Expansion Pack (11)
    As you maybe know, Blizzard has their Blizzcon this weekend. It's a meeting of much gamers and
    others. The're contests, competitions and much more. For all information about this, plz visit
    Blizzcon . One of the things we all looked forward too, is the announcement of the World of
    Warcraft Expansion set. It will be called World of Warcraft: The Burning Crusade. It will contain 2
    new races, lvl increase to 70, a new part of the world: The shadowrealm Outland and much much more.
    One of the new races will be the Blood Elves (known before as High Elves). They will....
  29. Mmorpgs. My Choice Is Planeshift
    (14)
    You have been chatting here about Anarchy and Guild Wars. Well, I didnīt know them (Iīll check them)
    but here is the one I like; Planeshift. Anyone knows it? Planeshift is an RPG 3D online game. I
    think itīs similar to Everquest and that kind of games (which are usually paying). But PS is free
    and it is created by users (if you know to make polygons, textures, maps and things like that you
    can help to develope it. If you donīt, just play and tell what would you change to make it better).
    Itīs available at least in Windows and Linux and Iīm amazed of the minimal resource....
  30. World Of Warcraft Mmorpg
    Lets play online. Tell me your server. (21)
    Greetings Gamers, Who here enjoys the World of Warcraft MMORPG, I myself have been finding
    myself throughly enjoying the companions of my guild and friends as we wander around Azeroth beating
    on stuff, doing the various quests throughout the lands, and just hanging around talking with my
    friends as work on tradeskills and levelt hose up as well. If you play this game drop me a line or
    a pm and let me know what server your on and your name.....

    1. Looking for compile, mangos, world, warcraft, private, server, great, learn, big, mmorpgs, work, built,

Searching Video's for compile, mangos, world, warcraft, private, server, great, learn, big, mmorpgs, work, built,
See Also,
advertisement


Tutorial On How To Compile Your Own Mangos World Of Warcraft Private Server. - A great way to learn about how big MMORPGs work and are built.

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com