forked from ShrineFox/Persona-4-Golden-Mod-Menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
37 lines (32 loc) · 2.07 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
set PAKPACK="path to PAKPack.exe"
set COMPILER="path to AtlusScriptCompiler.exe"
set BUILD_PATH=.\build
set INPUT_PATH=%BUILD_PATH%\input
set OUTPUT_PATH=%BUILD_PATH%\output
if exist "%OUTPUT_PATH%" rmdir /s /q "%OUTPUT_PATH%"
if exist "%OUTPUT_PATH%\tblpatches" rmdir /s /q "%OUTPUT_PATH%\tblpatches"
if not exist %BUILD_PATH% mkdir %BUILD_PATH%
if not exist %INPUT_PATH% mkdir %INPUT_PATH%
if not exist "%OUTPUT_PATH%" mkdir "%OUTPUT_PATH%"
if not exist "%OUTPUT_PATH%" mkdir "%OUTPUT_PATH%"
if not exist "%OUTPUT_PATH%\init_free" mkdir "%OUTPUT_PATH%\init_free"
if not exist "%OUTPUT_PATH%\init_free\field" mkdir "%OUTPUT_PATH%\init_free\field"
if not exist "%OUTPUT_PATH%\init_free\field\script" mkdir "%OUTPUT_PATH%\init_free\field\script"
if not exist "%OUTPUT_PATH%\field" mkdir "%OUTPUT_PATH%\field"
if not exist "%OUTPUT_PATH%\field\pack" mkdir "%OUTPUT_PATH%\field\pack"
if not exist "%OUTPUT_PATH%\field\script" mkdir "%OUTPUT_PATH%\field\script"
if not exist "%OUTPUT_PATH%\scheduler" mkdir "%OUTPUT_PATH%\scheduler"
if not exist "%OUTPUT_PATH%\tblpatches" mkdir "%OUTPUT_PATH%\tblpatches"
%PAKPACK% unpack "%INPUT_PATH%\init_free.bin"
%COMPILER% .\init_free\field.bf.flow -Compile -OutFormat V1 -Library P4G -Encoding P4 -Out "%OUTPUT_PATH%\init_free\field\script\field.bf" -Hook
%COMPILER% .\OtherMods\ConsistentReaper.flow -Compile -OutFormat V1 -Library P4G -Encoding P4 -Out "%OUTPUT_PATH%\field\script\dungeon.bf" -Hook
Xcopy /E /I /Y .\field "%OUTPUT_PATH%\field"
Xcopy /E /I /Y .\scheduler "%OUTPUT_PATH%\scheduler"
copy .\OtherMods\IntroSkip.flow "%OUTPUT_PATH%\field\pack\fd020_001\IntroSkip.bf.flow"
copy .\OtherMods\SaveEveryday.flow "%OUTPUT_PATH%\scheduler\SaveEveryday.bf.flow"
copy .\OtherMods\RemoveLunchtimeInvites.flow "%OUTPUT_PATH%\scheduler\RemoveLunchtimeInvites.bf.flow"
copy .\Setup\FirstTimeSetup.flow "%OUTPUT_PATH%\scheduler\FirstTimeSetup.bf.flow"
copy .\Setup\FirstTimeSetup.msg "%OUTPUT_PATH%\scheduler\FirstTimeSetup.msg"
del /s /q "%INPUT_PATH%\init_free\*"
rmdir /s /q "%INPUT_PATH%\init_free"
copy .\tblpatches\MSG_Patches.tbp "%OUTPUT_PATH%\tblpatches\MSG_Patches.tbp"