Misc/Extractor: Minor changes to windows extractor script (#29902)
* Extract all with logs & some cosmetics Added an option to output extraction results to the console and log files. Also added a pause of 5 seconds between actions, and some cosmetic changes. (cherry picked from commit 2ae8c0d32da8a5cb167de82e93c993a4f7145418) Signed-off-by: luis <[email protected]>
This commit is contained in:
committed by
luis
parent
7c62a5e648
commit
e03eab4083
+70
-28
@@ -3,59 +3,101 @@ CLS
|
|||||||
|
|
||||||
:MENU
|
:MENU
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO ...............................................
|
ECHO ====================== Extractor ========================
|
||||||
ECHO Trinitycore dbc/db2, maps, vmaps, mmaps extractor
|
ECHO TrinityCore cameras, dbc, maps, vmaps and mmaps extractor
|
||||||
ECHO ...............................................
|
ECHO =========================================================
|
||||||
ECHO PRESS 1, 2, 3 OR 4 to select your task, or 5 to EXIT.
|
|
||||||
ECHO ...............................................
|
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO WARNING! when extracting the vmaps extractor will
|
ECHO ======================================================
|
||||||
|
ECHO WARNING! When extracting the vmaps extractor will
|
||||||
ECHO output the textS below, it's intended and not an error:
|
ECHO output the textS below, it's intended and not an error:
|
||||||
ECHO ..........................................
|
ECHO ======================================================
|
||||||
ECHO Extracting World\Wmo\Band\Final_Stage.wmo
|
ECHO Extracting World\Wmo\Band\Final_Stage.wmo
|
||||||
ECHO No such file.
|
ECHO No such file.
|
||||||
ECHO Couldn't open RootWmo!!!
|
ECHO Couldn't open RootWmo!!!
|
||||||
ECHO Done!
|
ECHO Done!
|
||||||
ECHO ..........................................
|
ECHO ======================================================
|
||||||
ECHO Can't open WDT for map <a number> - <a name> (FileNameID <number>): FILE NOT FOUND
|
ECHO Can't open WDT for map <a number> - <a name> (FileNameID <number>): FILE NOT FOUND
|
||||||
ECHO ..........................................
|
ECHO ..........................................
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Press 1, 2, 3 or 4 to start extracting or 5 to exit.
|
ECHO 1: Extract base files (NEEDED) and cameras.
|
||||||
ECHO 1 - Extract base files (NEEDED) and cameras.
|
ECHO 2: Extract vmaps (needs maps to be extracted before you run this) (OPTIONAL, but highly recommended)
|
||||||
ECHO 2 - Extract vmaps (needs maps to be extracted before you run this) (OPTIONAL, highly recommended)
|
ECHO 3: Extract mmaps (needs vmaps to be extracted before you run this, may take hours) (OPTIONAL, but highly recommended)
|
||||||
ECHO 3 - Extract mmaps (needs vmaps to be extracted before you run this, may take hours) (OPTIONAL, highly recommended)
|
ECHO 4: Extract all (may take hours)
|
||||||
ECHO 4 - Extract all (may take hours)
|
ECHO 5: Extract all with logs (may take hours)
|
||||||
ECHO 5 - EXIT
|
ECHO 6: EXIT
|
||||||
ECHO.
|
ECHO.
|
||||||
SET /P M=Type 1, 2, 3, 4 or 5 then press ENTER:
|
SET /P M=Type 1, 2, 3, 4, 5 or 6 then press ENTER:
|
||||||
IF %M%==1 GOTO MAPS
|
IF %M%==1 GOTO MAPS
|
||||||
IF %M%==2 GOTO VMAPS
|
IF %M%==2 GOTO VMAPS
|
||||||
IF %M%==3 GOTO MMAPS
|
IF %M%==3 GOTO MMAPS
|
||||||
IF %M%==4 GOTO ALL
|
IF %M%==4 GOTO ALL
|
||||||
IF %M%==5 GOTO :EOF
|
IF %M%==5 GOTO ALLWITHLOGS
|
||||||
|
IF %M%==6 GOTO :EOF
|
||||||
|
|
||||||
:MAPS
|
:MAPS
|
||||||
start /b /w mapextractor.exe
|
ECHO.
|
||||||
|
START /b /w mapextractor.exe
|
||||||
|
ECHO Cameras, dbc and maps extracted.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
CLS
|
||||||
GOTO MENU
|
GOTO MENU
|
||||||
|
|
||||||
:VMAPS
|
:VMAPS
|
||||||
start /b /w vmap4extractor.exe
|
ECHO.
|
||||||
start /b /w vmap4assembler.exe Buildings vmaps
|
START /b /w vmap4extractor.exe
|
||||||
rmdir Buildings /s /q
|
START /b /w vmap4assembler.exe Buildings vmaps
|
||||||
|
RMDIR Buildings /s /q
|
||||||
|
ECHO Vmaps extracted and reassembled.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
CLS
|
||||||
GOTO MENU
|
GOTO MENU
|
||||||
|
|
||||||
:MMAPS
|
:MMAPS
|
||||||
|
ECHO.
|
||||||
ECHO This may take a few hours to complete. Please be patient.
|
ECHO This may take a few hours to complete. Please be patient.
|
||||||
PAUSE
|
TIMEOUT 5 > NUL
|
||||||
start /b /w mmaps_generator.exe
|
START /b /w mmaps_generator.exe
|
||||||
|
ECHO Mmaps generated.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
CLS
|
||||||
GOTO MENU
|
GOTO MENU
|
||||||
|
|
||||||
:ALL
|
:ALL
|
||||||
|
ECHO.
|
||||||
ECHO This may take a few hours to complete. Please be patient.
|
ECHO This may take a few hours to complete. Please be patient.
|
||||||
PAUSE
|
TIMEOUT 5 > NUL
|
||||||
start /b /w mapextractor.exe
|
START /b /w mapextractor.exe
|
||||||
start /b /w vmap4extractor.exe
|
ECHO Cameras, dbc and maps extracted.
|
||||||
start /b /w vmap4assembler.exe
|
TIMEOUT 5 > NUL
|
||||||
rmdir Buildings /s /q
|
START /b /w vmap4extractor.exe
|
||||||
start /b /w mmaps_generator.exe
|
ECHO Vmaps extracted.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w vmap4assembler.exe
|
||||||
|
RMDIR Buildings /s /q
|
||||||
|
ECHO Vmaps reassembled.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w mmaps_generator.exe
|
||||||
|
ECHO Mmaps generated.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
CLS
|
||||||
|
GOTO MENU
|
||||||
|
|
||||||
|
:ALLWITHLOGS
|
||||||
|
ECHO.
|
||||||
|
ECHO This may take a few hours to complete. Please be patient.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w mapextractor.exe > mapextractor.log
|
||||||
|
ECHO Cameras, dbc and maps extracted.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w vmap4extractor.exe > vmap4extractor.log
|
||||||
|
ECHO Vmaps extracted.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w vmap4assembler.exe > vmap4assembler.log
|
||||||
|
RMDIR Buildings /s /q
|
||||||
|
ECHO Vmaps reassembled.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
START /b /w mmaps_generator.exe > mmaps_generator.log
|
||||||
|
ECHO Mmaps generated.
|
||||||
|
TIMEOUT 5 > NUL
|
||||||
|
CLS
|
||||||
GOTO MENU
|
GOTO MENU
|
||||||
|
|||||||
Reference in New Issue
Block a user