-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeMod.bat
72 lines (57 loc) · 1.92 KB
/
makeMod.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
@echo off
if not exist ..\..\zonetool.exe goto ERROR_ZONETOOL_EXE_NOT_FOUND
set moddir=%cd%
if exist ..\..\zone_source goto SKIP_ZONE_SOURCE_FOLDER
:MAKE_ZONE_SOURCE_FOLDER
mkdir ..\..\zone_source
:SKIP_ZONE_SOURCE_FOLDER
copy /Y mod.csv ..\..\zone_source
if exist ..\..\zonetool goto SKIP_ZONETOOL_FOLDER
:MAKE_ZONETEOOL_FOLDER
mkdir ..\..\zonetool
:SKIP_ZONETOOL_FOLDER
if exist ..\..\zonetool\mod goto SKIP_MOD_FOLDER
:MAKE_MOD_FOLDER
mkdir ..\..\zonetool\mod
:SKIP_MOD_FOLDER
xcopy braxi ..\..\zonetool\mod\braxi\ /EY
xcopy fx ..\..\zonetool\mod\fx\ /EY
xcopy images ..\..\zonetool\mod\images\ /EY
xcopy loaded_sound ..\..\zonetool\mod\loaded_sound\ /EY
xcopy localizedstrings ..\..\zonetool\mod\localizedstrings\ /EY
xcopy map_scripts ..\..\zonetool\mod\map_scripts\ /EY
xcopy maps ..\..\zonetool\mod\maps\ /EY
xcopy materials ..\..\zonetool\mod\materials\ /EY
xcopy mp ..\..\zonetool\mod\mp\ /EY
xcopy sounds ..\..\zonetool\mod\sounds\ /EY
if not exist ..\..\zonetool\mod\techsets\ goto DO_TECHSETS
choice /c YN /t 3 /d N /m "Has your techsets folder changed"
if %errorlevel% equ 2 goto SKIP_TECHSETS
:DO_TECHSETS
if exist ..\..\zonetool\mod\techsets\ del ..\..\zonetool\mod\techsets\ /Q
xcopy techsets ..\..\zonetool\mod\techsets\ /EY
:SKIP_TECHSETS
xcopy ui ..\..\zonetool\mod\ui\ /EY
xcopy ui_mp ..\..\zonetool\mod\ui_mp\ /EY
xcopy weapons ..\..\zonetool\mod\weapons\ /EY
xcopy vision ..\..\zonetool\mod\vision\ /EY
xcopy xanim ..\..\zonetool\mod\xanim\ /EY
xcopy xmodel ..\..\zonetool\mod\xmodel\ /EY
xcopy xsurface ..\..\zonetool\mod\xsurface\ /EY
if exist ..\..\zonetool\mod\plugins goto SKIP_PLUGINS
:DO_PLUGINS
mkdir ..\..\zonetool\mod\plugins
echo main(){}> ..\..\zonetool\mod\plugins\_plugins.gsc
:SKIP_PLUGINS
cd ..\..\
zonetool.exe -buildzone mod -quit
cd %moddir%
copy /Y ..\..\zone\english\mod.ff
del ..\..\zone\english\mod.ff
appdataMod.bat
pause
exit 0
:ERROR_ZONETOOL_EXE_NOT_FOUND
echo ERROR: Zonetool.exe not found!
pause
exit 2