aboutsummaryrefslogtreecommitdiff
path: root/contrib/extractor.bat
blob: 31aa8114cdcdfd64d11d344963c64ae457f12c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@ECHO OFF
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO Trinitycore dbc/db2, maps, vmaps, mmaps extractor
ECHO ...............................................
ECHO PRESS 1, 2, 3 OR 4 to select your task, or 5 to EXIT.
ECHO ...............................................
ECHO.
ECHO The vmaps extractor output text below is intended and not an error:
ECHO ..........................................
ECHO Extracting World\Wmo\Band\Final_Stage.wmo
ECHO No such file.
ECHO Couldn't open RootWmo!!!
ECHO Done!
ECHO ..........................................
ECHO.
ECHO 1 - Extract dbc/db2 and maps
ECHO 2 - Extract vmaps (needs maps to be extracted before you run this)
ECHO 3 - Extract mmaps (needs vmaps to be extracted before you run this, may take hours)
ECHO 4 - Extract all (may take hours)
ECHO 5 - EXIT
ECHO.
SET /P M=Type 1, 2, 3, 4 or 5 then press ENTER:
IF %M%==1 GOTO MAPS
IF %M%==2 GOTO VMAPS
IF %M%==3 GOTO MMAPS
IF %M%==4 GOTO ALL
IF %M%==5 GOTO EOF
:MAPS
start mapextractor.exe
ECHO Wait until mapextractor.exe closes before continuing.
pause
GOTO MENU
:VMAPS
md vmaps
start vmap4extractor.exe
ECHO Wait until vmap4extractor.exe closes before continuing.
pause
start vmap4assembler.exe Buildings vmaps
ECHO Wait until vmap4assembler.exe closes before continuing.
pause
rmdir Buildings /s /q
GOTO MENU
:MMAPS
md mmaps
start mmaps_generator.exe
pause
GOTO MENU
:ALL
start mapextractor.exe
ECHO Wait until mapextractor.exe closes before continuing.
pause
md vmaps
start vmap4extractor.exe
ECHO Wait until vmap4extractor.exe closes before continuing.
pause
start vmap4assembler.exe Buildings vmaps
ECHO Wait until vmap4assembler.exe closes before continuing.
pause
rmdir Buildings /s /q
md mmaps
start mmaps_generator.exe --threads %NUMBER_OF_PROCESSORS%
ECHO Wait until mmaps_generator.exe closes before continuing (may take hours).
pause
GOTO MENU
:EOF