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
TopHat
Posts: 5
Joined: Wed Mar 10, 2021 1:44 am

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

Post by TopHat »

What do I do once I've extracted the paks to get uassets?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@TopHat: Could you be more specific? uassets are native UE assets and it's what you're getting after extracting paks, among other files. If you're trying to find some particular files, which are not supported in umodel/Fmodel directly, it's most likely not uassets you need.
TopHat
Posts: 5
Joined: Wed Mar 10, 2021 1:44 am

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

Post by TopHat »

@spiritovod I'm trying to get the sound files from Sea of Thieves and when using the sot specific script it extracts uassets.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@TopHat: As far as I know, in Sea of Thieves most audio is stored in wem files. I don't know where exactly though, so you probably need to extract all paks and search for those files with the help of some file manager. They can be played and converted with vgmstream directly or foobar with vgmstream plugin.

To simplify extraction (as the game has 1000+ paks), you can embed the key in the script, just edit the script like this:
[set AES_KEY binary ""] -> [set AES_KEY binary "\xAA\xBB\xCC"] where 0xAABBCC is the actual key
[math AES_KEY_IS_SET = 0] -> [math AES_KEY_IS_SET = 1]
and then use it with batch file like this:
quickbms_4gb_files.exe -F "{}.pak" you_script.bms "input folder with paks" "output folder"
Last edited by spiritovod on Thu Jan 27, 2022 7:02 pm, edited 1 time in total.
TopHat
Posts: 5
Joined: Wed Mar 10, 2021 1:44 am

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

Post by TopHat »

@spiritovod When I extracted the paks I did indeed get a folder full of numerical wem files in the "Streams" folder and the other folders had specifically named uassets.
https://imgur.com/a/crEnYaq

I'll use that tool with the wem files. My question is are those wem files in the Streams folder just the same as the uassets in the other folders just without proper names?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@TopHat: If these uassets are relatively small, they are most likely contain info about wem files and control schemes, as UE can't read such wwise format directly. If you have more questions about already extracted audio, feel free to create separate topic at Audio format section of the forum, since this topic is for general issues with UE packages, including encryption and extraction.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@DJ Normality: I've added the key to the list (available via my signature), but the package has custom format and current scripts are not compatible with it. I'll take a look at it later, the issue looks similar to Scavengers (though that script also doesn't work properly here).

------------------------------------------------------

Bloodhunt script added to specific scripts bundle. Though one file seems bugged and it will not be extracted.
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

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

Post by DJ Normality »

Thank you working good!! I did make a account for that site your on. Very cool. You have helped me do many titles. Also I organized the keys differently they do seem easier to read. The new ones in [update] I found randomly I think some are there but others are not. So them just need organized. Anyway. Thanks again for all you do and I really appreciate this one. Any news on Tony Hawk 1&2 HD ? I found 34 keys in that game but I cant seem to dump the assets with any of them. When you got time of course.
I started doing BloodHunt and noticed Umodel fails so the only way to get anything is by batching the files and im still not seeing any meshes. Maybe I just havent reached them yet.
Image
**update**
Image
I did find meshes so im happy :lol: :D
Last edited by DJ Normality on Sat Jul 03, 2021 8:57 pm, edited 1 time in total.
Lx22
Posts: 6
Joined: Thu Oct 11, 2018 3:27 pm

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

Post by Lx22 »

DJ Normality wrote:Thank you working good!! I did make a account for that site your on. Very cool. You have helped me do many titles. Also I organized the keys differently they do seem easier to read. The new ones in [update] I found randomly I think some are there but others are not. So them just need organized. Anyway. Thanks again for all you do and I really appreciate this one. Any news on Tony Hawk 1&2 HD ? I found 34 keys in that game but I cant seem to dump the assets with any of them. When you got time of course.
Image
I started doing BloodHunt and noticed Umodel fails so the only way to get anything is by batching the files and im still not seeing any meshes. Maybe I just havent reached them yet.
Image
**update**
Image
I did find meshes so im happy :lol: :D


what did you use to view the meshes?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@DJ Normality: I understand your concern about list format, but due to forum's format limitations and automatic line breaks in case of high scale settings or viewing in portrait mode suggested representation will be much harder to read, compared to the current one.
If you mean latest THPS 1 + 2 game (HD are remakes from 2012 & 2016), you can read about it in this topic and this post.
And next time please don't directly insert screenshots like this, you can attach them to your posts or provide links for them at image hosting.

@Lx22: Bloodhunt is supported by umodel (after extraction), since it's a UE4 game, there is a topic for it here. If you have other questions about particular assets (like models), feel free to ask in respective forum sections, since this topic is for general issues with UE packages, including encryption and extraction.
anas43950
Posts: 1
Joined: Sun Jul 04, 2021 6:13 am

Re: Unreal Engine 4 pak-file Unpacker

Post by anas43950 »

aluigi wrote:The files inside the pak archives aren't encrypted.
Have you tried to just press RETURN when quickbms tells you to select the encryption key?

Bro plz help me in repacking the .dat files into a pak file
The reimport command is not working
I am trying it for pubgm india pak file
I have successfully unpacked and editted it
Many youtubers are providing editted paks but I want to make one for myself with specific features
I know there is a way to repack it, I just can't figure it out
Plz help
Kein
Posts: 32
Joined: Wed Jan 08, 2020 11:22 pm

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

Post by Kein »

Nvm, found the answer
lokakam
Posts: 10
Joined: Mon Jun 21, 2021 2:53 am

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

Post by lokakam »

Hello, can someone help me to find AES key. (Police Simulator: Patrol Officers)
https://www100.zippyshare.com/v/LXimST8M/file.html
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@lokakam: The game is not encrypted - just use 4.26 script from the post in my signature, it should work.
ninokuni
Posts: 2
Joined: Tue Jul 20, 2021 7:43 am

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

Post by ninokuni »

:x
Last edited by ninokuni on Tue Jul 20, 2021 9:00 am, edited 1 time in total.
ninokuni
Posts: 2
Joined: Tue Jul 20, 2021 7:43 am

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

Post by ninokuni »

@spritovod

It was in your post!
thanks so much.
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

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

Post by DJ Normality »

New World Keys ? I tried myself but no luck. Please n thanks.
https://mega.nz/file/rqYRkIyD#go0XUgO0o ... KPFA8I3gAg
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

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

Post by spiritovod »

@DJ Normality: It's not an UE game. Also, there is a topic for it already.

------------------------------------------------------

I've updated 4.26 script, it now handles more default flags. It should fix an issue with Orcs Must Die 3 and other games like this.
ardvent
Posts: 10
Joined: Wed Oct 25, 2017 3:22 pm

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

Post by ardvent »

I'm stuck on Back4Blood's new PAK format.
Neither the official Unreal 4 BMS script or spiritvoid's script works.
The PAK files are packchunk#-WindowsNoEditor.pak and contain .sig signature files.
The Engine version is 4.25

I uploaded pakchunk0-WindowsNoEditor.pak for testing: https://www.filemail.com/d/qrdnjwjslmnblnu

File in a hex editor:
Image

quickbms -l output:

Code: Select all

quickbms.exe -l unreal_tournament_4_0.4.25b.bms 'F:\SteamLibrary\steamapps\common\Back4BloodBeta\Gobi\Content\Paks\pakchunk0-WindowsNoEditor.pak'

QuickBMS generic files extractor and reimporter 0.11.0

- open input file F:\SteamLibrary\steamapps\common\Back4BloodBeta\Gobi\Content\Paks\pakchunk0-WindowsNoEditor.pak
- open script unreal_tournament_4_0.4.25b.bms

  offset   filesize   filename
--------------------------------------

- 0 files found in 0 seconds
  coverage file 0     0%   64         67286771   . offset 00000008


Using the official unreal_tournament_4.bms runs into a memory error