Full setup of mangos for TBC

Source: Internet
Author: User
Tags tortoisesvn
Supports full setup of TBC mangos tutorials.
I don't see any detailed tutorials on the Internet. I wrote one, hoping

Everyone can get started quickly. If you repost it, please indicate the author and the source. Thank you!

I. Prerequisites:

1. Visual Studio 2003 is required for compilation.

2. For MySQL 4.1, go to the official version 4.1.22.

3. The navicat2005 Database Manager works perfectly with MySQL.

4. Download the update tool from tortoisesvn. I will explain how to update laterSource code

5. Create a mangos SourceCodeAnd scriptdev script source code folder

2. Start compilation preparation:

1. Install tortoisesvn, go to the created "mangos source code" folder, right click in the blank area, and view the following
Process:
Select SVN checkout ---> enter at URL: https://svn.sourceforge.net/svnroot/mangos/trunk (update address of mangos source code) ---> select omit externals ---> OK to start update
Just wait until it is updated to the latest version.
The download process of the scriptdev script is the same, and its update address is: http://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2

3. Prepare for database creation:

1. After mysql4.1 is installed, a setup wizard is installed to set the password to root.

2. After navicat2005 is installed, select Add... from the file drop-down menu, add root in the password, and then OK.

3. Double-click localhost and then turn green. Right-click localhost ---> new database --->

Create two databases: "mangos" "realmd.

4. double-click mangos to make it green, right-click mangos ---> execute batch file ---> select the mangos you downloaded. SQL file (there is no empty data in the source code SQL folder, only tables ...) ---> open

5. Same as realmd

4. Start Compilation:

1. Compile the mangos file:

Go to./mangos source code/win/and open mangosdvc71.sln. This is the project that requires vs2003 compilation.

The Solution Explorer displays eight sub-project frameworks, game, mangosd, realmd, script, shared, zlib, and zthread.
Select the script and press del to delete it.

Then select shared, which has a common. h

Open it and find the four digits in # define expected_mangos_client_build {XXXX, 0}, which are the supported client version numbers.

The 2.0.12 version of TBC is 6546. Change it to {6546, 0} and click Save.

Next, there is a "debug" above the window to change it to "release"

Click Generate ---> Generate a solution.

Well, after a long wait, it will prompt 7 success messages and 0 failure messages.

Note: after the game is compiled

Framework. Lib (objectlifetime. OBJ): Warning lnk4006: _ external_wrapper is defined in shared. Lib (objectlifetime. OBJ). The second definition is ignored.
Framework. Lib (objectlifetime. OBJ): Warning lnk4006: "Void _ cdecl mangos: at_exit (void (_ cdecl *) (void ))"(? At_exit @ mangos @ yaxp6axxz @ z) is defined in shared. Lib (objectlifetime. OBJ). The second definition is ignored.

The generated logs are stored in "file: // D: replica data update winvc71game1__win32_releasebuildlog.htm ".
Game-0 error, 2 warning

These two warnings will not affect anything. Just ignore them!

2. Compile the scriptdev script:

Create a folder in./mangos source code/src/bindings and name it scriptdev2,

Copy everything in the "scriptdev2 Script original code,

Start scriptvc71.sln and start compiling. Change "debug" to "release" in the same way. After a long process, you will be prompted that you have successfully generated a file.

After compilation, go to the./mangos source code/bin/release and find the five files libeay32.dll,libeaysql.dll,mamgosd.exe,mangosscript.dll,realmd.exe.

Create a folder named mangos in the root directory and copy the above five files.

Now, find mangosd. conf. In in the./src/mangosd folder, and find the realmd. conf. In file under./src/realmd,

Copy the two files to the mangos folder and remove. In.

Use notepad or ultaredit32 to open the two conf files and modify the following:

In the mangosd. conf file, find:
Logindatabaseinfo = "127.0.0.1; 3306; xxxx; realmd"
Worlddatabaseinfo = "127.0.0.1; 3306; xxxx; mangos"
Set the first XXXX as your MySQL user name and the second XXXX as your MySQL password.
Find: datadir = "@ mangosdata @" replace "with"./", that is, datadir = "./"
And save it.

In the realmd. conf file, find:
Logindatabaseinfo = "127.0.0.1; 3306; xxxx; realmd"
The modification method is the same as mangosd. conf.

5. Release the dBc and maps files:

Two software is required: ad.exe, which is used to extract the map. mpq.exe, which is used to extract the mpq file.

1.place ad.exe in the directory of the game client, that is,./World of Warcraft, and create a folder named "maps ".
Then, the TBC client can run directly. If it is a server TBC, You need to rename the entw folder under the data folder to engb
Then change the tw of the locale-enTW.MPQ, patch-enTW-2.MPQ, and patch-enTW.MPQ files to GB.
Run the command to decompress the map. The size of the maps folder is 1.06 GB.

2.put mpq.exe and zlib. dll in zhtw, and then:
Start Menu ---> RUN ---> input cmd ---> to the path where you put mpq.exe, for example, F:/Wow/data/zhtw --->
Input command: mpq e locale-zhTW.MPQ *. DBC
Then, a directory named ex... locale-zhtw is generated, which contains a folder starting with a DB, And the folder name is changed to DBC,
Finished

3. Now copy the maps and DBC folders to mangos.

6. Modify the client reamlist. WTF File
Change the URL to 127.0.0.1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.