forked from TheSonic/DayZ-Private-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
70 lines (60 loc) · 2.3 KB
/
build.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
@echo off
setlocal enabledelayedexpansion
echo ----------------------------------------------------
echo Starting up build ...
echo ----------------------------------------------------
echo.
if exist build (rmdir /s /q build)
if not exist build\@dayzcc\addons (mkdir build\@dayzcc\addons)
if not exist build\MPMissions (mkdir build\MPMissions)
echo.
echo ----------------------------------------------------
echo Building server addon ...
echo ----------------------------------------------------
echo.
util\cpbo.exe -y -p server\dayz_server build\@dayzcc\addons\dayz_server.pbo
echo.
echo ----------------------------------------------------
echo Building mission files ...
echo ----------------------------------------------------
echo.
echo Instance 1:
echo ^> Skipping ...
for /l %%i in (2,1,6) do (
echo Instance %%i:
for %%f in (chernarus fallujah lingor mbg_celle2 namalsk panthera2 takistan tavi thirsk utes zargabad oring isladuala) do (
echo ^> Building mission for "%%f"
mkdir temp > nul
xcopy mission\dayz.%%f temp /S /E /Q /C /R /Y > nul
cscript /nologo util\instance.vbs mission\dayz.%%f\init.sqf %%i > temp\init.sqf
util\cpbo.exe -y -p temp build\MPMissions\dayz_%%i.%%f.pbo > nul
rmdir /s /q temp > nul
)
)
for /l %%i in (1,1,6) do (
echo Instance %%i ^(rMod^):
for %%f in (chernarus fallujah lingor mbg_celle2 namalsk panthera2 takistan tavi thirsk utes zargabad oring isladuala) do (
echo ^> Building mission for "%%f"
mkdir temp > nul
xcopy mission\dayz.%%f temp /S /E /Q /C /R /Y > nul
cscript /nologo util\instance.vbs mission\dayz.%%f\init.sqf %%i > temp\init.sqf
cscript /nologo util\rmod.vbs mission\dayz.%%f\mission.sqm %%i > temp\mission.sqm
util\cpbo.exe -y -p temp build\MPMissions\rmod_%%i.%%f.pbo > nul
rmdir /s /q temp > nul
)
)
echo.
echo ----------------------------------------------------
echo Copying additional files ...
echo ----------------------------------------------------
echo.
xcopy mission build\MPMissions /S /E /Q /C /R /Y > nul
cscript /nologo util\rename.vbs > nul
copy server\dayz_server_config.hpp build\@dayzcc\addons\dayz_server_config.hpp > nul
copy server\HiveExt.dll build\@dayzcc\HiveExt.dll > nul
echo Done ...
echo.
echo ----------------------------------------------------
echo Finished! Press any key to exit ...
echo ----------------------------------------------------
pause>nul