Closed FiftyTifty closed 2 years ago
If I remember well, mmaps folder is created when vmaps extractor+generator is ran. mmaps are extracted from vmaps
You'll need to run them in this order :
The mmaps folder isn't created by the previous tool. I followed the instructions, and everything worked fine, except I had to create that mmaps folder manually, otherwise mmaps_generator would throw that error and not continue.
mapextractor.cmd
@echo off
cls
extract_maps
echo.
echo Extracting DBCs and Maps...
mapextractor.exe
extract_vmaps
echo.
echo Extracting VMAPs
vmap4extractor.exe
build_vmaps
echo.
echo Building VMAPs
md vmaps
vmap4assembler.exe Buildings vmaps
echo.
echo Building MMAPs
md mmaps
mmaps_generator.exe
echo.
echo Press any key to exit
pause NUL
That should be added to the repository, and the instructions here updated: http://www.azerothcore.org/wiki/Extract-Client-Data
Much better to have everything done in a oner.
the extractor must create the directory, iagree
for POSIX we can add something like std::filesystem::create_directory(dirFiles);
instead of generating error https://github.com/azerothcore/azerothcore-wotlk/blob/e22d78ecd6997bc11f8620b759364f119dac431a/src/tools/mmaps_generator/PathGenerator.cpp#L33
and then do some basic exception handle with https://en.cppreference.com/w/cpp/filesystem/exists and etc
its just a guessing ) i don't try work with filesystem lib because its new-one from C++17
This is what I wrote for my repack users (windows .bat file):
======= @ECHO OFF CLS
ECHO.......................................................... ECHO AzerothCore-wotlk Map Maker ECHO. ECHO This may take a few hours to complete. Please be patient. ECHO.......................................................... PAUSE start /b /w mapextractor.exe if not exist "vmaps" mkdir vmaps start /b /w vmap4extractor.exe start /b /w vmap4assembler.exe Buildings vmaps rmdir Buildings /s /q if not exist "mmaps" mkdir mmaps start /b /w mmaps_generator.exe ECHO.......................................................... ECHO Map extraction\generation completed! ECHO.......................................................... pause
##### SMALL DESCRIPTION: When running mmaps_generator.exe, without having created an empty
mmaps
folder in the client's data directory, the following error is thrown:'mmaps' directory does not exist
##### EXPECTED BLIZZLIKE BEHAVIOUR: If there is no
mmaps
folder present, the program should create one, just like how the other extraction tools do.##### CURRENT BEHAVIOUR: According to the instructions here: http://www.azerothcore.org/wiki/Extract-Client-Data
You need only copy over the executables and ace.dll file to the client folder, and then just run the .exe files and the one .bat file. However, mmaps_generator.exe doesn't automatically create a
mmaps
folder like the other ones do, so it fails to run.Also, you are required to copy over libmysql.dll to the client folder as well, otherwise the following error is thrown:
The code execution cannot proceed because libmysql.dll was not found. Reinstalling the program may fix this problem.
Screenshot: https://i.imgur.com/NFnl702.png##### STEPS TO REPRODUCE THE PROBLEM:
(Running Windows 10 LTSC 2019 x64)
Follow the instructions located at http://www.azerothcore.org/wiki/Installation
Upon reaching section 5, opt to extract the files manually, following these instructions: http://www.azerothcore.org/wiki/Extract-Client-Data
Upon copying the stated files to the client folder, the tools will run successfully except for
mmaps_generator.exe
, as it requireslibmysql.dll
to be in the same folder.After copying over
libmysql.dll
, another error will be thrown, saying that it cannot find themmaps
folder.Right-click -> New folder -> Change it's name to
mmaps
Now when you run
mmaps_generator.exe
, the program will run and output the necessary files.##### EXTRA NOTES: This was not necessary to be done, when setting up TrinityCore on Ubuntu 19.4. The folder was created automatically, and
libmysql.dll
was automatically found.##### BRANCH(ES): master
##### AC HASH/COMMIT:
##### OPERATING SYSTEM:
Windows 10 LTSC 2019 x64 (Windows build 1809)
##### MODULES: None, this is a completely vanilla, step-by-step fresh install performed by following the instructions on AC's wiki
##### OTHER CUSTOMIZATIONS: None, this is a completely vanilla, step-by-step fresh install performed by following the instructions on AC's wiki