summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Borzì <stefanoborzi32@gmail.com>2019-03-06 16:01:41 +0100
committerGitHub <noreply@github.com>2019-03-06 16:01:41 +0100
commit665e4bc20d19c1ba5e4d2ffbf84a827b712538f2 (patch)
tree830d315058de3f71631cc7131cc461c35af1611d
parentfecdf407f0c5d8685802a142f1834603fabfb94e (diff)
downloadwiki-665e4bc20d19c1ba5e4d2ffbf84a827b712538f2.tar.gz
wiki-665e4bc20d19c1ba5e4d2ffbf84a827b712538f2.tar.bz2
wiki-665e4bc20d19c1ba5e4d2ffbf84a827b712538f2.zip
Update Extract-Client-Data.md
-rw-r--r--docs/Extract-Client-Data.md54
1 files changed, 51 insertions, 3 deletions
diff --git a/docs/Extract-Client-Data.md b/docs/Extract-Client-Data.md
index 38a0e0d..02016d4 100644
--- a/docs/Extract-Client-Data.md
+++ b/docs/Extract-Client-Data.md
@@ -1,6 +1,7 @@
-# Windows
+# Extracting DBC, Maps, VMaps & MMaps
+
+## Windows
-## Extracting DBC, Maps, VMaps & MMaps
AzerothCore requires certain files obtained from World of Warcraft client.
1. First of all we need to do a small modification in CMake: check **Grouped** and **Advanced** boxes. Then drop down **Ungrouped Entries** and check **TOOLS** box. (like shown in the image below)
@@ -32,12 +33,59 @@ Next press Configue and then Generate.
Now that everything is completed, you need to copy **dbc**, **maps**, **vmaps** and **mmaps** folders to your AzerothCore build directory (E.g. AzerothCore\build\bin\Release).
+This guide was written by [mindsear](https://github.com/mindsear).
+
***
-This guide was written by [mindsear](https://github.com/mindsear).
+## Linux & Mac
+
+1. To extract the client data we need to build the tools, so change the cmake parameter -DTOOLS=0 into -DTOOLS=1 and launch the build of the core.
+Type the following commands (replacing 4 with the number of threads that you want to execute):
+**Linux**
+```
+cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=1 -DSCRIPTS=1
+make -j 4
+make install
+```
+
+**Mac**
+```
+cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DTOOLS=1 -DSCRIPTS=1 -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient_r.dylib -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl/lib/libcrypto.dylib
+make -j 4
+make install
+```
+
+### Now that you have the source compiled, you can proceed to the next step.
+2. Go to your AzerothCore build directory (e.g. $HOME/azeroth-server/bin/) and copy the following files to your World of Warcraft directory (where there is also the Wow.exe file etc.)
+* **mapextractor**
+* **mmaps_generator**
+* **vmap4assembler**
+* **vmap4extractor**
+
+3. First, you must extract **dbc** and **maps**, so open the terminal and go to your WoW/ directory and rune the file **mapextractor**. You must wait until this process is completed.
+```
+./mapextractor
+```
+4. Next, we need to extract **Buildings** through the **vmap4extractor**, so type in your terminal the follows command. You must wait until this process is completed.
+```
+./vmap4extractor
+```
+5. Next, we need to assembly **vmaps** through the **vmap4assembler**, so type in your terminal the follows command. Same thing, you must wait until this process is completed..
+```
+mkdir vmaps
+./vmap4assembler Buildings vmaps
+```
+
+6. Next, we need to extract **mmaps** with the **mmaps_generator**, so run:
+**NOTE: This process will take up to a few hours, depending on your computer specs.**
+```
+./mmaps_generator
+```
+Now that everything is completed, you need to copy **dbc**, **maps**, **vmaps** and **mmaps** folders to your AzerothCore build directory (e.g. *$HOME/azeroth-server/data/*).
+This guide was written by [Helias](https://github.com/Helias).