Log In

Home
    - Create Journal
    - Update
    - Download

Scribbld
    - News
    - Paid Accounts
    - Invite
    - To-Do list
    - Contributors

Customize
    - Customize
    - Create Style
    - Edit Style

Find Users
    - Random!
    - By Region
    - By Interest
    - Search

Edit ...
    - User Info
    - Settings
    - Your Friends
    - Old Entries
    - Userpics
    - Password

Need Help?
    - Password?
    - FAQs
    - Support Area


jimmy ([info]jimmy) wrote,
@ 2008-06-07 10:04:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Private MaNGOs Server Setup 1.12.1
First let's get things straight! Please do not instant message me in any sort of way asking me how to get this set up. I will block you and make fun of you for being a moron! If you do need help, go ahead and post a question on the message boards! Myself or someone will be glad to help you out as long as you ask an intelligent question. It's more then possible that when you read this guide it will be out of date (written on 12/30/2006), so just be aware of that.

So let's get started shall we!?!

I myself am using a Pentium 4 2.66GHz, 2GBs of RAM and an IDE HDD. Having a lot of RAM is a good thing. That and a nice upload speed will make for a nice World of Warcraft server! This guide will be using Linux (Gentoo to be specific). Sorry Windows newbies! Learn how to use a real operating system and then come back to the guide!

Alright, so you will need to have subversion installed. Using Gentoo it's as simple as using:

emerge subversion

Next you going to want to create a directory to download the MaNGOs source code into. I created it in /root/ but you're more then welcome to make something like /opt/mangos/.

cd /opt/
mkdir mangos


or if you're sitting in /root/ you can just do

mkdir mangos

Now you're going to use subversion to download the code. Type in:

svn checkout https://svn.sourceforge.net/svnroot/mangos/trunk *mangos directory you made*

Now, for that last part *mangos directory you made*, it could be something like /opt/mangos if that's where you made the directory in the previous step.

Hopefully that step when out. Usually at the end of the checkout it'll spit back a build number. It might say something like Version 2383 checked out successfully.

That's a good thing. For the next part you're going to need these programs installed, gcc 3.3, g + + 3.3, make, automake (1.5 and above), autoconf, glibc and glibc-dev, MySQL (4 or 5, I used 5), Apache2, PHP5 and PHPMyAdmin.

If you know you're Linux then you should have no issues at all installing these applications. Some of them are probably even already installed. If not, then look on Google for installation instructions.

Now we're going to configure the MaNGOs source code we previously downloaded for install. Use this command:


./configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --with-python --enable-cli --enable-ra --datadir=/opt

It'll run through a bunch of things, shouldn't take more then a couple minutes. The next command could take some time so go make some popcorn and watch a movie.


Type in:

make

This will compile the server! Once that is complete you are ready to install it. Type in:

sudo make install

It'll prompt you for your root password so type that in and hit the 'enter' button. It'll install the server into /opt/mangos/. This process is rather short.

It's almost ready but not quite there yet! You need to download the maps! I would just Google around and see if you can find them. Please don't ask me or ask on the message boards for them. Just look and don't be a newb! When you have them create a folder called 'maps' in your /opt/mangos/ directory (so it looks something like /opt/mangos/maps/ and put the map files in there. Simple!

Now you'll need some DBC files which again you'll have to Google for. Most people put up the zipped up version of the DBC files for people to download. Very nice of them, makes it easier!

Ok, now you'll want to open your web browser and navigate to your PHPMyAdmin page. This is how you're going to create some databases for all your quests, accounts, characters, items, etc...

Now create 2 databases, one called 'mangos' and one called 'realmd'. I created a new user that wasn't root to connect to the databases, you don't have to. It's just more secure. I called my user 'mangos'. Nice and simple. You can then give them privileges to access the databases you just made.

Now if you look in your /opt/mangos/trunk/ directory (wherever you download the source code from before) you'll see a folder called 'sql'. You'll want to import the sql files; mangos.sql and realmd.sql to the appropriate databases you just made. PHPMyAdmin will do all of that for you.

Now you need to get the guts (quests, items, commands, etc...). I used Silver's DB, but there's another one out there called WDM I think. When you download it, it'll be small, but after uncompressing it, it'll be something like 200MBs. Import the sql into the mangos database (not realmd).

At this point you may want to go into the realmd database, find the 'account' table and make yourself an account. You can just edit one of the 4 that are already in there for yourself. That's what I did, I just input my information into the already existing administrator account and deleted the other 3, but do whatever you want.

We now need to configure the server so it can connect to the databases. Go into /opt/mangos/etc/ and there will be 2 files there; mangosd.conf and realmd.conf. The realmd.conf file only needs a couple edits. Find the line where it's asking to connect to MySQL and edit that accordingly.

The mangosd.conf file has loads of things you can change about the server. You can change the server type, amount of people allowed on the server at once, professions, MOTD, rates and more. Just look though it. The file is well commented so it's easy to know what it what. Save and exit.

I'd say you're about ready to load that server up!! You will need one more application installed, and it's called 'screen'. Once that's installed (sometimes it already is by default) then you should be ready to go!

Input:

cd /opt/mangos/bin/
screen
./realmd

hit Ctrl+A and then Ctrl+D

Type in:
screen
./mangosd
hit Ctrl+A and then Ctrl+D

This will start the realm server and the mangos server. You should be up and running. In your World of Warcraft client you will need to edit your realmlist.wtf (found in C:\Program Files\World of Warcraft & and can be opened with Notepad) to point to your server. Update your client to version 1.12.1 and have fun!!

Here's a few commands that you can use in-game, you can find them all in the Mangos database in the 'command' table;

help - Display this help message.
broadcast - Announce in-game message.
create - Create account.
delete - Delete account and characters.
info - Display Server infomation.
motd - Change or display motd.
kick - Kick user.
ban - Ban account|ip.
listbans - List bans.
unban - Remove ban from account|ip.
setgm - Edit user privileges.
listgm - Display user privileges.
loadscripts - Load script library.
setloglevel - Set Log Level.
corpses - Manually call corpses erase global even code.
version - Display server version.
idleshutdown - Shutdown server with some delay when not active connections at server.
shutdown - Shutdown server with some delay.
exit - Shutdown server NOW.

Obviously MaNGOs is a huge application and it's still a little baby so there's going to be a lot of changes, fixes and stuff in the coming days, weeks and months (hopefully years too)! This guide really only covers how to set the server up but there is so much more you can do with MaNGOs. Do visit our message boards and if all else fails just come and play on my server! Enjoy and remember, this guide was made for educational purposes!


(Post a new comment)



scribbld is part of the horse.13 network
Design by Jimmy B.
Logo created by hitsuzen.
Scribbld System Status