Home Batch Files
Post
Cancel

Batch Files

Batch Files 5.3

These UnrealPak bat files are placed in your engine folder, next to UnrealPak.exe
You can create file shortcuts for easier access. ...\UE_5.3\Engine\Binaries\Win64\

Pak Dragged Folder

Download: Pak.bat

Example folder contents: ...\pakchunk99-Mod_ExampleMod_P\Content\...

1
2
3
4
5
6
7
8
9
10
11
@setlocal ENABLEDELAYEDEXPANSION
@if "%~1"=="" goto skip
@setlocal enableextensions
@pushd %~1
(for /R %%f in (*) do @set "filePath=%%f" & set "relativePath=!filePath:%~1=!" & @echo "%%f" "../../../ReadyOrNot!relativePath!")>"%~dp0/filelist.txt"
@pushd %~dp0
::-compresslevel=4 for Normal, -compresslevel=-4 for uncompressed hyperfast paking
.\UnrealPak.exe "%~1.pak" -create=filelist.txt -compress -compressionformats=Oodle -compressmethod=Kraken -compresslevel=4
@popd
@pause
:skip

Do not include any symbols besides - _ in your full folder paths.
Broken Folder Structure Example: C:\Mods, Bats & Stuff\pakchunk99-Mod_ExampleMod_P\

You can change ../../../ReadyOrNot to ../../..
This allows you to include engine assets for a level’s master material dependencies for example, but you need to then add a top \ReadyOrNot\ folder before paking.
For example: ...\pakchunk99-Mod_ExampleLevel\ReadyOrNot\Content\...

Extract to the Pak’s containing folder with folders intact

Download: Unpak.bat

1
2
3
4
5
6
7
8
9
@if "%~1"=="" goto skip
@setlocal enableextensions
@pushd %~dp0
md "%~dpn1\"
.\UnrealPak.exe %1 -extract "%~dpn1\\"  -extracttomountpoint
@popd
@pause
:skip

Batch Files 4.27

Extract to Win64

1
2
3
4
5
6
7
8
9
@if "%~1"=="" goto skip

@setlocal enableextensions
@pushd %~dp0
.\UnrealPak.exe %1 -extract "%~n1"
@popd
@pause

:skip

Extract to Custom Directory

1
2
3
4
5
6
7
8
9
10
11
12
@if "%~1"=="" goto skip

::REPLACE WITH YOUR DIRECTORY TO EXTRACT TO
@set output_location=C:\Program Files (x86)\Steam\steamapps\common\Ready Or Not\ReadyOrNot\Content\Paks
@setlocal enableextensions
@pushd %~dp0
@echo %output_location%/%~n1
.\UnrealPak.exe %1 -extract "%output_location%\%~n1"
@popd
@pause

:skip

The following create Pak batch files may need to be updated for the Ready Or Not UE5.3/Home Invasion update

Pak to Same Directory

1
2
3
4
5
6
7
8
9
10
@if "%~1"=="" goto skip

@setlocal enableextensions
@pushd %~dp0
@echo "%~1\*.*" "../../../ReadyOrNot/" >filelist.txt
.\UnrealPak.exe "%~1.pak" -create=filelist.txt -compress
@popd
@pause

:skip

Pak to Custom Directory

1
2
3
4
5
6
7
8
9
10
11
12
13
@if "%~1"=="" goto skip

::REPLACE WITH YOUR DIRECTORY
@set output_location=C:\Program Files (x86)\Steam\steamapps\common\Ready Or Not\ReadyOrNot\Content\Paks
@setlocal enableextensions
@pushd %~dp0
@echo %output_location%%~n1.pak
@echo "%~1\*.*" "../../../ReadyOrNot/" >filelist.txt
.\UnrealPak.exe "%output_location%\%~n1.pak" -create=filelist.txt -compress
@popd
@pause

:skip
This post is licensed under CC BY 4.0 by the author.