-
Notifications
You must be signed in to change notification settings - Fork 1
/
globalCompile.bat
226 lines (215 loc) · 6.42 KB
/
globalCompile.bat
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
@echo off
echo Compiling X-Men Legends II
echo.
CHOICE /C YN /M "Call globalUpdate first? "
IF ERRORLEVEL 2 goto section1
IF ERRORLEVEL 1 goto globalUpdate
:globalUpdate
call globalUpdate.bat
goto section1
REM ***********************************
REM * Section 1 - Establish Variables *
REM ***********************************
:section1
echo [1] PC
echo [2] GameCube
echo [3] PlayStation 2
echo [4] PlayStation Portable (PSP)
echo [5] Xbox
CHOICE /C 12345 /M "Which console are you using? "
IF ERRORLEVEL 5 SET consoleChoice=XB & goto skinPackSection
IF ERRORLEVEL 4 SET consoleChoice=PSP & goto skinPackSection
IF ERRORLEVEL 3 SET consoleChoice=PS2 & goto skinPackSection
IF ERRORLEVEL 2 SET consoleChoice=GC & goto skinPackSection
IF ERRORLEVEL 1 SET consoleChoice=PC & goto modPackSection
:modPackSection
echo [1] XML2 Ultimate Patch (X2UP)
echo [2] All X-Men Edition (AXE)
echo [3] Brotherhood Edition (BHE)
echo [4] Marvel Universe Edition (MUE)
CHOICE /C 1234 /M "Which Mod Pack are you using? "
IF ERRORLEVEL 4 SET modPackChoice=MUE & goto modeSection
IF ERRORLEVEL 3 SET modPackChoice=BHE & goto modeSection
IF ERRORLEVEL 2 SET modPackChoice=AXE & goto modeSection
IF ERRORLEVEL 1 SET modPackChoice=X2UP & goto modeSection
:modeSection
REM there are two options for mode, but if you're running from the global script, the mode will always be full
set modeChoice=full
goto :celChoiceSection
:celChoiceSection
if not %consoleChoice%==PC (
if not %consoleChoice%==PSP (
echo.
CHOICE /C YN /M "Are you using skins with cel shading? "
IF ERRORLEVEL 2 SET "celChoice=no" & goto :section2
IF ERRORLEVEL 1 SET "celChoice=yes" & goto :section2
) else set "celChoice=no" & goto :section2
) else set "celChoice=no" & goto :section2
REM ******************************
REM * Section 2 - Call Compilers *
REM ******************************
:section2
echo.
REM 1. Playable Characters
echo Compiling playable characters...
echo defaultman
cd "%~dp0\1. Playable Characters\defaultman"
call compile.bat %consoleChoice%
cd ..\..
echo Beast
cd "%~dp0\1. Playable Characters\Beast"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Bishop
cd "%~dp0\1. Playable Characters\Bishop"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
if not %consoleChoice%==GC (
echo Cable
cd "%~dp0\1. Playable Characters\Cable"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
)
if not %consoleChoice%==GC (
echo Cannonball
cd "%~dp0\1. Playable Characters\Cannonball"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
)
echo Colossus
cd "%~dp0\1. Playable Characters\Colossus"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Cyclops
cd "%~dp0\1. Playable Characters\Cyclops"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Dark Phoenix
cd "%~dp0\1. Playable Characters\Dark Phoenix"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Deadpool
cd "%~dp0\1. Playable Characters\Deadpool"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Emma Frost
cd "%~dp0\1. Playable Characters\Emma Frost"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Gambit
cd "%~dp0\1. Playable Characters\Gambit"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Iceman
cd "%~dp0\1. Playable Characters\Iceman"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Iron Man
cd "%~dp0\1. Playable Characters\Iron Man"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Jean Grey
cd "%~dp0\1. Playable Characters\Jean Grey"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
if not %consoleChoice%==PSP (
echo Jubilee
cd "%~dp0\1. Playable Characters\Jubilee"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
)
echo Juggernaut
cd "%~dp0\1. Playable Characters\Juggernaut"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Magneto
cd "%~dp0\1. Playable Characters\Magneto"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Nightcrawler
cd "%~dp0\1. Playable Characters\Nightcrawler"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Professor X
cd "%~dp0\1. Playable Characters\Professor X"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Psylocke
cd "%~dp0\1. Playable Characters\Psylocke"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Pyro
cd "%~dp0\1. Playable Characters\Pyro"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Rogue
cd "%~dp0\1. Playable Characters\Rogue"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Sabretooth
cd "%~dp0\1. Playable Characters\Sabretooth"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Scarlet Witch
cd "%~dp0\1. Playable Characters\Scarlet Witch"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Storm
cd "%~dp0\1. Playable Characters\Storm"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Sunfire
cd "%~dp0\1. Playable Characters\Sunfire"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Toad
cd "%~dp0\1. Playable Characters\Toad"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
echo Wolverine
cd "%~dp0\1. Playable Characters\Wolverine"
call compile.bat %consoleChoice% %modeChoice% %celChoice%
cd ..\..
REM 2. NPCs
echo Compiling NPCs...
echo Angel
cd "%~dp0\2. NPCs\Angel"
call compile.bat %consoleChoice% %celChoice%
cd ..\..
REM 3. General Data Files
echo Compiling general data files...
echo herostat
cd "%~dp0\3. General Data Files\herostat"
call compile.bat %consoleChoice% %modPackChoice%
cd ..\..
echo permanent
cd "%~dp0\3. General Data Files\permanent"
call compile.bat %consoleChoice%
cd ..\..
echo permanent fightstyles
cd "%~dp0\3. General Data Files\permanent fightstyles"
call compile.bat %consoleChoice%
cd ..\..
REM 4. Menus
echo Compiling menus...
echo Character select screen
cd "%~dp0\4. Menus\Character Select Screen"
call compile.bat %consoleChoice% %skinPackChoice%
cd ..\..
echo Comic Covers
cd "%~dp0\4. Menus\Comic Covers"
call compile.bat %consoleChoice%
cd ..\..
echo Loading Screens
cd "%~dp0\4. Menus\Loading Screens"
call compile.bat %consoleChoice%
cd ..\..
echo Main Menu
cd "%~dp0\4. Menus\Main Menu"
call compile.bat %consoleChoice%
cd ..\..
REM 7. Sounds
echo Compiling sounds...
cd "%~dp0\7. Sounds"
call compile.bat %consoleChoice%
cd ..