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 Board Message
STEP 1: Downloading the source
Required items: Download | TortoiseSVN
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 here for free.
- Filebeam Downloads :
Microsoft Visual Studio Express 2005
Microsoft Platform SDK
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
Then click the drop down menu and select Include Files. Click the folder button again and type inCode:C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Bin
Then click the drop down menu again and select Library Files. Click the folder button and type inCode:C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Include
Now that hard part is doneCode:C:Program FilesMicrosoft Platform SDK for Windows Server 2003 R2Lib
- 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: Filebeam - Free Fast File Hosting
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 UDB community forums (Powered by Invision Power Board) 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
UDB community forums -> Releases & Announcements
https://unifieddb.svn.sourceforge.net/svnroot/unifieddb
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![]()