Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by Haoose »

*edit by aluigi*

Currently this topic is "officially" dedicated to ALL the games built with Unreal Engine 4 (UE4).

Post here your requests for the AES keys (usually you need to upload the big exe) and for unsupported archives.

The current tools for opening the UE4 pak archives are:

Latest information and alternative scripts:

Where to find the latest keys for the games?

How to create the PAK archives?

Other resources and guides:

ANY NEW POST/TOPIC ABOUT PUBG WILL BE DELETED

*end of edit by aluigi*


Unreal Engine 4 pak-file Unpacker by Haoose
Image

Code: Select all

https://mega.nz/file/tdETRI6B#_BieqC7eBAX70yDsgKQwLmrkzIHfZn67xAGSyKmmsmc
http://sendfile.su/1583086
https://megaup.net/2fETY/UE4PakUnpacker.exe


ChangeLog:
0.5
Fix for unicode-filenames (Game: Red Goddess Inner World)

0.4
At the end of unpacking open folder with unpacked files
Added export list of files in pak-file in text format (see command-line options)
Added support for command-line options (Ex: UE4PakUnpacker.exe c:\games\KHOLAT\Kholat\Content\Paks\Kholat-WindowsNoEditor_P.pak - Unpacking pak-file and close; UE4PakUnpacker.exe -filelist c:\games\KHOLAT\Kholat\Content\Paks\Kholat-WindowsNoEditor_P.pak - Export filelist and close)
Added support for big pak-files (>4 Gb)

0.3
Added auto-detect directory for unpacking. You no longer need to specify folder for unpacking. (As a result, it became possible to extract files of game Dreadnought and possibly other games with more than one pack-files)
At the end of unpacking source file is automatically renamed. (ex. WindowsNoEditor-SP.pak → WindowsNoEditor-SP.pak_unpacked.bak)

0.2
Added support for compressed files (as Kholat)

0.1
Initial release for Hatred


Tested on:
Hatred
Kholat
Dreadnought
Red Goddess Inner World


P.S. Games work with unpacked files. Unpack and remove pak-files.

Version 0.3:

Code: Select all

http://rghost.ru/6y6vFl2Y5 https://cloud.mail.ru/public/Erh4/7vPehFpbA http://www53.zippyshare.com/v/UFJiZOuv/file.html

Version 0.4:

Code: Select all

http://rghost.ru/8HJHW52mc https://cloud.mail.ru/public/AhHQ/dEFZndkDV http://www48.zippyshare.com/v/xL0F4XZQ/file.html


ChangeLog по русски:
0.5
Фикс для имен файлов на юникоде (Игра: Red Goddess Inner World)

0.4
В конце распаковки открывается папка с распакованными файлами.
Добавил экспорт списка файлов внутри pak-файла в текстовом формате (см. опции командной строки ниже). Т.е. при использовании этой опции создается текстовый файл *_filelist.txt, в котором содержится информация об именах файлах, смещении и размерах файлов внутри исходного pak-файла.
Добавил поддержку опций командной строки (Напр.: UE4PakUnpacker.exe c:\games\KHOLAT\Kholat\Content\Paks\Kholat-WindowsNoEditor_P.pak - распаковать pak-файл и закрыть программу; UE4PakUnpacker.exe -filelist c:\games\KHOLAT\Kholat\Content\Paks\Kholat-WindowsNoEditor_P.pak - экспортировать список файлов и закрыть программу) Т.е. для распаковки нескольких pak-файлов достаточно составить bat-файл следующего вида:
UE4PakUnpacker.exe <Путь к файлу 1>
UE4PakUnpacker.exe <Путь к файлу 2>
и т.д.
Программа автоматически их последовательно извлечет и переименует.
Для экспорта списка файлов перед путем к файлу (необходимо указывать полный путь, если есть пробелы в пути - то в кавычках) надо добавить опцию -filelist
Добавил поддержку для больших pak-файлов (>4 Gb)

0.3
Добавил автоматическое определение папки для распаковки. Вам больше не нужно самим устанавливать папку для распаковки. (В результате стало возможным распаковать файлы игры Dreadnought и вероятно другие игры, в которых много pak-файлов)
В конце распаковки исходный файл автоматически переименовывается. (Напр. WindowsNoEditor-SP.pak → WindowsNoEditor-SP.pak_unpacked.bak) Это нужно чтобы скрыть от игры исходный файл и заставить ее использовать распакованные файлы.

0.2
Добавил поддержку сжатых файлов (используются в игре Kholat)

0.1
Первая версия программы для игры Hatred
Last edited by Haoose on Sat Nov 07, 2020 1:52 pm, edited 9 times in total.
ZenZZ
Posts: 1
Joined: Tue Jun 02, 2015 7:06 am

Re: Hatred pak-unpacker

Post by ZenZZ »

Nice, thank you very much. Is there a way to pack everything back?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hatred pak-unpacker

Post by aluigi »

If it's the same PAK format of Unreal Tournament 4 you can try this script:
http://aluigi.org/bms/unreal_tournament_4.bms
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Hatred pak-unpacker

Post by Haoose »

ZenZZ wrote:Nice, thank you very much. Is there a way to pack everything back?

Game works with unpacked files.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Hatred pak-unpacker

Post by sigroon365 »

After unpack *.pak files, copy Engine and Hatred folder and paste it to C:\Program Files (x86)\Hatred then it works with unpacked files.
brendan19
Posts: 144
Joined: Fri Aug 08, 2014 11:25 am

Re: Hatred pak-unpacker

Post by brendan19 »

Thanks Haoose :)
lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

Re: Hatred pak-unpacker

Post by lllccc »

the question can it be repacked?
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Hatred pak-unpacker

Post by michalss »

is it same as UT4 or not ? Haoose can you please post struct ?
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Hatred pak-unpacker

Post by Haoose »

lllccc wrote:the question can it be repacked?

It's no need repacked
michalss wrote:is it same as UT4 or not ?

May be
HaxZen
Posts: 22
Joined: Wed Apr 08, 2015 6:42 pm

Re: Hatred pak-unpacker

Post by HaxZen »

Do not be Repacked ?
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Hatred pak-unpacker

Post by sigroon365 »

michalss wrote:is it same as UT4 or not ? Haoose can you please post struct ?

Same. Bms script works. And the game reads unpacked files. Actually, files are not zipped.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Hatred pak-unpacker

Post by sigroon365 »

HaxZen wrote:Do not be Repacked ?

Yes. I already said that after unpack *.pak files, copy Engine and Hatred folder and paste it to C:\Program Files (x86)\Hatred then the game reads unpacked files.
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Hatred pak-unpacker

Post by michalss »

Haoose wrote:
lllccc wrote:the question can it be repacked?

It's no need repacked
michalss wrote:is it same as UT4 or not ?

May be



Ok can you please post sruct of pak file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hatred pak-unpacker

Post by aluigi »

@michalss
sigroon365 said that my script works so use it to know the struct.
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Hatred pak-unpacker

Post by Haoose »

Coming soon...
Kholat pak-unpacker (compressed pak-file) ;)
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by Haoose »

Now it universal unpacker for ue4-pak-files =)
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by Haoose »

Updated to version 0.3
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by Haoose »

Updated to version 0.4
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

I have updated my script to version 0.2 for supporting the compressed chunked archives of Kholat.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

Thanks for all of this! :D