Compilation and setup of the Mangos framework are divided into two parts.I. Prerequisites:
1. Visual Studio 2003 or Visual Studio 2005.
2. MySQL 4.1 is available in version 4.1.22 or later.
3. Navicat2005 database manager for MYSQL Database Management
4. Prepare the mangos source code and ScriptDev2 script source code folder.
How to download mangos and ScriptDev is already clear. After downloading two projects, put ScriptDev under the/src/bindings directory of mangos.Ii. CompilationFirst, release compiles mangos and opens different sln files based on different vs versions. Generate a solution to have a cup of tea and smoke it. So far, more than 4.5 million of the code of the entire project is a great challenge for my hardware devices. Normally, the compilation is successful. If the compilation fails, check whether the source code is the latest version. After compiling ScriptDev2, go to the/src/bin/release directory in the mangos directory and find the six files: scripts.Iii. ConfigurationCreate a new directory to store the things required for enabling the WOW service. Copy the compiled file. now,. find mangosd in the/src/mangosd folder. conf. dist. in, and then. find realmd under/src/realmd. conf. dist. in file,
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:
<1> 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.
<2> find the following in the realmd. conf file:
LoginDatabaseInfo = "127.0.0.1; 3306; xxxx; realmd"
The modification method is the same as mangosd. conf creates four new databases in mysql: mangos, realmd, characters, and scriptdev2, and then imports some initial data. The SQL directory contains three main SQL mangos. sqlrealmd. sqlcharacters. SQL src \ bindings \ ScriptDev2 contains the data information required by scriptdev2. 5. Release 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. Start realmd.exeand mangosd.exe OK. Now save the following text as bat and copy it to your wow Client Directory @ echo off.
Rd cache/s/q
Echo set realmlist 127.0.0.1> realmlist. wtf
Start wow.exe-opengl-windows
Exit click this bat to start logging in. There is an initial game ADMINISTRATOR account with the same password.
This article is from the "Jiu Li tribe" blog, please be sure to keep this source http://axiii.blog.51cto.com/396236/141209