This repository has been archived by the owner on Sep 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pack_compressed.bat
64 lines (56 loc) · 2.03 KB
/
pack_compressed.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
@echo off
title [1/5] Applying settings...
echo ------------------------------------------------------------
echo(
echo [1/5] Applying settings...
echo(
echo ------------------------------------------------------------
SET "ddp=%~dp0"
SET "ddp=%ddp:~0,-1%"
SET /p editorPath= < Settings\editor_directory.txt
SET /p packageOutput= < Settings\package_output.txt
title [2/5] Building resource pack...
echo ------------------------------------------------------------
echo(
echo [2/5] Building resource pack...
echo(
echo ------------------------------------------------------------
cd Tools
python py\copy_block_textures.py
cd..
title [3/5] Importing assets...
echo ------------------------------------------------------------
echo(
echo [3/5] Importing assets...
echo(
echo ------------------------------------------------------------
python Tools\py\generate_asset_import_settings.py
"%editorPath%\UE4Editor-Cmd.exe" "%ddp%\UE4Project\Dungeons.uproject" -run=ImportAssets -nosourcecontrol "-importsettings=%ddp%\Tools\tmp_import_settings.json"
del /s Tools\tmp_import_settings.json >nul 2>&1
title [4/5] Cooking assets...
echo ------------------------------------------------------------
echo(
echo [4/5]Cooking assets...
echo(
echo ------------------------------------------------------------
del /S Dungeons\*.uasset
del /S Dungeons\*.ubulk
del /S Dungeons\*.uexp
del /S Dungeons\*.umap
del /S Dungeons\*.ufont
"%editorPath%\UE4Editor-Cmd.exe" "%ddp%\UE4Project\Dungeons.uproject" -run=cook -targetplatform=WindowsNoEditor
robocopy /job:Tools\configs\copy_cooked_assets
robocopy /S Precooked Dungeons
title [5/5] Packing...
echo ------------------------------------------------------------
echo(
echo [5/5] Packing...
echo(
echo ------------------------------------------------------------
python Tools\py\u4pak.py pack "1-ComplianceDungeons_beta.pak" Dungeons -z -p
echo ------------------------------------------------------------
echo(
echo Packing is done. You can close this window now.
echo(
echo ------------------------------------------------------------
pause