EDIT: Guide outdated, check back later to see if its updated
I see so many people complaining about mangos stuff..
Well, that is because 99% are repacks, which suck ass!
This guide explains how to get real MaNGOS, set it up, maintain your server, and update it!
*Partial credits to [Only registered and activated users can see links. ]
STEP 1: Downloading the source
Required items: [Only registered and activated users can see links. ]
When that is installed, go into your desktop and create a folder called "MaNGOS-Source" or something.
Right click on your folder and select "SVN Checkout"
.On the top line where it says "URL of Repository" put in the url "https://mangos.svn.sourceforge.net/svnroot/mangos/trunk/".
.Do not change any other options, then press ok. This will download the source code.
STEP 2: Adding ScriptDev2 to make mangos awesome
Open your new folder, and go into the folder "src". Then open "bindings".
Now create a new folder named "scriptdev2"
Now right click and do the same, but at url of repository, type "https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2"
Now you have everything needed, and are ready to compile!
STEP 3: Compiling
Required items:
A Windows Operating System
A version of MS Visual C++:
Visual Studio 6 (Version 7/2003)
Visual Studio 2005 (Version 8/2005) + SP1
Visual C++ 2005 Express Edition (Version 8/2005). Available [Only registered and activated users can see links. ] for free.
Filebeam Downloads : [Only registered and activated users can see links. ] [Only registered and activated users can see links. ]
Install the SDK and a visual studio thing.
Then, open your mangos-source folder and then 'win' folder. Use one of the MangosVC__.sln's
Now go to Tools > Options (once you opened the project). In the dialog that pops up click the plus sign next to Projects and Solutions and then click VC++ Directories. The drop down menu should say Executable Files. Click the button that looks like a folder and type
Code:
C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Bin
Then click the drop down menu and select Include Files. Click the folder button again and type in
Code:
C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Include
Then click the drop down menu again and select Library Files. Click the folder button and type in
Code:
C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Lib
Now that hard part is done
Now select Build->Build Solution from the menu. (Note: If you had an error or are having problems with the build you can select Build->Clean Solution to "reset" the compilation.)
Your MaNGOS application will now begin compiling.
This may take quite some time depending on the speed of your processor.
You WILL get various warning messages. This is expected and should not alarm you.
When the process is complete you should see a message like "Build: 9 succeeded, 0 failed, 0 up-to-date, 0 skipped". The key is to make sure that failed = 0. (If you are doing an update of an existing build you may get a message like "Build: 3 succeeded, 0 failed, 6 up-to-date, 0 skipped". Again, no failures so you are in good shape.)
Occasionally you will get this error: "error LNK1181: cannot open input file 'mangosd.lib'". In order to fix this iussue you can do these steps (once):
Right-click on "Solution 'mangosdVC80' (9 projects)" in solution explorer.
Select "Project Build Order..."
Click on the "Dependencies" tab.
In the "Projects:" drop down list, select "script" and check "mangosd" and hit OK.
Build Solution.
Now go into your src/bindings/scriptdev2 and compile same way as this (except without the tools>options part)
STEP 4: Setting up stuff!
Now you got the hard part done, here is the boring-est part!
Go in your mangos-source folder and then go into map-extractor folder.
If there is already an ad.exe in there, place in your WoW folder, then create a maps folder and start ad.exe, then come back in 20 mins. Then place the maps folder in your mangos source folder/bin/release
Now you are ready to extract your DBCs.
If you don't have mpqe, get it here: [Only registered and activated users can see links. ]
Place it on your desktop and then go to run, then type cmd.
In the black box type "cd C:\\Users\\(YOURNAME)\\Desktop"
Then type "set PATH=%cd%"
Now type "cd "C:\\Program Files\\World of Warcraft\\data\\enUS(or enGB, depending on location)"
Now type "mpqe /p locale-enUS.MPQ DBFilesClient\*.dbc", or "mpqe /p locale-enGB.MPQ DBFilesClient\*.dbc" depending on loaction
It will extract into "C:\\Program Files\\World of Warcraft\\data\\enUS(or enGB)\\MPQOUT\\DBFilesClient"
Rename DBFilesClient to DBC and place in your mangos source folder/bin/release
SETTING UP DATABASE:
My fingers hurt so register on [Only registered and activated users can see links. ] and find their database, install it, and follow their setup guide (sorry for laziness )
Also if their database doesn't match your rev #, run sql updates in your mangos source/sql/updates
Links to DB release section [Only registered and activated users can see links. ] [Only registered and activated users can see links. ]
SETTING UP CONFIGS:
Go into mangos source/src/mangosd/ and copy mangosd.conf.in to your bin/Win32_Release folder. Then go into src/realmd/ and copy realmd.conf.in to your bin/Win32_Release folder.
Rename the .conf.in's to .conf
Read the comments in (#'s) and set them up (laziness..)
STEP 5: running teh server
Start realmd.exe and mangosd.exe
Go into WoW folder and set your realmlist to 127.0.0.1
Log on
STEP 6: Updating
Right click on mangos-source folder and click SVN Update, then re compile. Then right click on mangos-source/src/bindings/scriptdev2/ and recompile AFTER MaNGOS!
STEP 7: Maintaining (Still in progress!)
I'll write how to maintain the server (full version) later, but this is a crappy version
APPLY PATCHES:
Found a good patch you want to add to improve your server?
D/L the patch, right click on your folder, then hover to TortoiseSVN
Scroll down to "Apply Patch"
Click on your patch and then a popup appears.
After that just apply it!
MOD CORE: (WIP)
Learn C++ (cplusplus.com\doc\tutorial)
Modify
HOPE YOU ENJOYED IT
__________________
"I don't fail at stuff, I succeed at finding what doesn't work"
Last edited by Le Froid; 11-09-2008 at 04:22 PM.
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Join Date: Feb 2008
Posts: 25
Reputation: 2
Points: 345, Level: 1
Level up: 87%, 55 Points needed
Activity: 0%
Quote:
Originally Posted by Le Froid
Now you are ready to extract your DBCs.
Atm at this point ,it doesn't seem very much left now,and hope this guide will work,
tryed much guides,have putted 2h work in this one and hope it will be ok
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Join Date: Feb 2008
Posts: 1
Reputation: 1
Nice Guide! :D
Hey dude (you with the "maps" problem) you sould not put the ad.exe file in the maps folder just put the ad.exe file in your WorldofWarcraft folder and make another folder (inside the WorldofWarcraft folder) named "maps" ,
Then click on add.exe and it will worg
Great guide! Atm im extracting the maps and everything so far have worked fine rep + 200
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Join Date: Oct 2007
Posts: 10
Reputation: 1
I loved this guide. Oh and I don't know much about it but you can apply patch files you get off the board to the uncompiled source. This can allow you to do more stuff with your server. Most of the stuff is geared to more blizzlike stuff though.
Just remember
Don't ask for help about a repack. They won't help you.
Also, do not I repeat do not mention you're running a public server the moderators don't like that because its considered illegal.
Oh yeah everytime you apply a patch you have to recompile it.
Last edited by asahi; 04-07-2008 at 06:20 AM.
Reason: Patch compiling message
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Join Date: Mar 2008
Posts: 2
Reputation: 1
Thanks for the guide it was very nice . But how do I add custom items and give myself special abilities, make others gm make custom vendors, drops, quests, goldrate , islands, droprate etc?