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
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

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

Post by cyberspeed »

Ah, damn, that sucks, the game cant even be ran on a emulator, even devs admitted that, I'm assuming there's no other way to get this thing extracted/decrypted properly, only hope is a Android phone since on iOS that's truly impossible.
If I'd know how to dump what you need as i would have, unfortunately don't know anything about this.
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 »

@cyberspeed: Actually, any dump will be fine to check if the game is storing key in standard form. Otherwise proper dump would be required for proper analysis. I just don't have any device, compatible with the game, so I can't do anything, even if I want to.

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

All "get_hashes" scripts from custom scripts bundle updated to avoid known bug in latest version of quickbms (which is now 0.11).

unreal_tournament_4_0.4.26_paks_only script is also updated. It can now skips assets which are being addressed outside current package. Not sure if it's related to new respective feature from 4.26 or not.
If you'll have more than 0 skipped files with the updated script, please let me know - it will be written after the end of extraction process (except Tower of Fantasy, I'm already aware of it). Thanks in advance.
brookeantoinette72
Posts: 1
Joined: Fri Apr 30, 2021 3:51 pm

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

Post by brookeantoinette72 »

Hey! do you have keys for Hello Life is Strange 1? / 2?
Mysticus
Posts: 182
Joined: Sat Mar 02, 2019 3:24 pm

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

Post by Mysticus »

Any key for R-Type Final 2 (PC) full version?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

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

Post by Ekey »

R-Type Final 2 0xFB97EBE9991B3E771C89F195B40F64DF001344971D7504D05B4EEF734B37B4CE
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 »

@brookeantoinette72: As far as I know, all LIS games are not encrypted and not obfuscated. Provide more details about problems with them.

@Ekey: If you want to help, please redirect people to the list at rin forums instead of posting keys directly. I'm ignoring such requests here on purpose, so people could learn where to find them and keep this topic for actually relevant questions about pak format and bms scripts.
Lord Vaako
Posts: 26
Joined: Tue Oct 17, 2017 7:36 pm

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

Post by Lord Vaako »

I made a new topic regarding Scavengers (Early Access) instead of posting here, my bad, sorry. - https://zenhax.com/viewtopic.php?f=9&t=15214
pipindor666
Posts: 9
Joined: Mon Apr 06, 2020 6:15 am

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

Post by pipindor666 »

Ekey wrote:R-Type Final 2 0xFB97EBE9991B3E771C89F195B40F64DF001344971D7504D05B4EEF734B37B4CE


Image
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 »

@Lord Vaako: The game is using unusual pattern for control bytes at index. I'll try to resolve it in a proper way for possible usage in umodel, but it will take some time, since I'm not good with bit shifts and such. For now you can grab temporary workaround from specific scripts bundle.

@pipindor666: You should use 4.26 script for 4.26 games, it's available via my signature. The key itself is correct.

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

unreal_tournament_4_0.4.26_paks_only script updated to include auto-detection of compression types feature, which was already available in 4.25 script.
GarryOlsen
Posts: 11
Joined: Sun May 02, 2021 5:45 am

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

Post by GarryOlsen »

I'm attempting to unpack the .pak files in the UE4 title "Chernobylite" using QuickBMS, however, using Luigi's UE4 unpacking scripts (UE4.25, UE4.25b & UE4.26) to unpack "pakchunk0-WindowsNoEditor.pak" results in a failure, regardless of whether or not quickbms.exe or quickbms_4gb_files.exe are used.

I believe this error may be due to the fact that pak0 is the only pak file whose size is between 2 GB (maximum of 32-bit signed integer) and 4gb (32-bit unsigned integer), this theory is further supported by the error message notifying the user that QuickBMS is attempting to allocate a negative number of bytes.

My issue however is that I'm not skilled with actually implementing solutions and lack the high-level skills of an individuals here, if anyone could offer any advice as to how to possibly resolve this issue I'd be extremely grateful.
pipindor666
Posts: 9
Joined: Mon Apr 06, 2020 6:15 am

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

Post by pipindor666 »

spiritovod wrote:@Lord Vaako: The game is using unusual pattern for control bytes at index. I'll try to resolve it in a proper way for possible usage in umodel, but it will take some time, since I'm not good with bit shifts and such. For now you can grab temporary workaround from specific scripts bundle.

@pipindor666: You should use 4.26 script for 4.26 games, it's available via my signature. The key itself is correct.

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

unreal_tournament_4_0.4.26_paks_only script updated to include auto-detection of compression types feature, which was already available in 4.25 script.


I try use 4.26 script ( unreal_tournament_4_0.4.26b_scavengers.bms ), files started unpacking, but not completely, unpacking just stops in the middle.

Code: Select all

# Unreal Engine 4 - Unreal Tournament 4 (*WindowsNoEditor.pak) (script 0.4.26b)
# script for QuickBMS http://quickbms.aluigi.org

*edited by aluigi*


Image
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 »

@GarryOlsen: Provide the pak you have the problem with. If it's one of the biggest (more than 10GB), just upload any small one and error from the biggest.

@pipindor666: You're using wrong script. Specific scripts are for particular games, while you need generic one, which is also available via my signature. Though I don't understand why you've used specific script instead of generic one, it's quite illogical. And please stop posting the whole scripts like that - it looks troublesome and make the page almost unreadable. You can simply mention it (if it's already present in the topic) or attach it as bms or zip files.

Update: Thanks, aluigi, it's much more convenient now.
GarryOlsen
Posts: 11
Joined: Sun May 02, 2021 5:45 am

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

Post by GarryOlsen »

spiritovod wrote:@GarryOlsen: Provide the pak you have the problem with. If it's one of the biggest (more than 10GB), just upload any small one and error from the biggest.

@pipindor666: You're using wrong script. Specific scripts are for particular games, while you need generic one, which is also available via my signature. Though I don't understand why you've used specific script instead of generic one, it's quite illogical. And please stop posting the whole scripts like that - it looks troublesome and make the page almost unreadable. You can simply mention it (if it's already present in the topic) or attach it as bms or zip files.

Update: Thanks, aluigi, it's much more convenient now.


The pak file I'm having issues with is linked here, every pak file in the title is able to be successfully extracted, bar this one.
Lord Vaako
Posts: 26
Joined: Tue Oct 17, 2017 7:36 pm

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

Post by Lord Vaako »

spiritovod wrote:@Lord Vaako: The game is using unusual pattern for control bytes at index. I'll try to resolve it in a proper way for possible usage in umodel, but it will take some time, since I'm not good with bit shifts and such. For now you can grab temporary workaround from specific scripts bundle.


Thank you @spiritovod. It's enough for me :-)

Btw. do you know a tool to convert DT uassets to any type of "text" file? I tried https://github.com/antoshre/uasset-dt-to-json but it is not working.
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 »

@GarryOlsen: I've fixed the issue in the updated 4.26 script, please re-download it.

@Lord Vaako: You can try Fmodel, it can parse some json type assets. But it's not universal solution, since such assets can be significantly customized. In that case the only solution would be creating your own parser.
GarryOlsen
Posts: 11
Joined: Sun May 02, 2021 5:45 am

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

Post by GarryOlsen »

spiritovod wrote:@Vaziayu: You either have more than one exe besides AES_finder in the same folder (it can't handle more than one game exe at a time) or you forgot to remove steam protection from the exe. Just tested my finder and it works just fine. Next time please read included readme carefully.

@TGGAMING: It has been already explained before that it's not an easy task, and there is no complete guide about how to it as well. And I'm not going to write such guide too.


Thank you so much mate, you're honestly my favourite person of the month so far, been sitting on this for weeks, god bless ya bother!
Manoa
Posts: 15
Joined: Sun Sep 09, 2018 1:16 pm

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

Post by Manoa »

anyone could give another shot to decrypt killing floor 2 ? http://manoa.dream.org.il/Data/KFGame.7z
thanks :) file is updated
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 »

@Manoa: It's an UE3 game, while this topic is for UE4 games only. Also, as far as I know, Killing Floor 2 is not encrypted and there is even official editor in steam.
parkhyeon
Posts: 1
Joined: Tue May 11, 2021 1:32 pm

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

Post by parkhyeon »

@spiritovod So I'm using the raw pubg pak extractor script. It extracted fine. When I repack, it works fine.
But then, when I want to re-extract to make more modifications, it gives me this error:

Code: Select all

Info:  algorithm   478
       offset      0000000000e2d96d
       input size  0x000000000000216c 8556
       output size 0x0000000000010000 65536
       result      0xffffffffffffffb8 -72

Error: uncompressed data (-72) bigger than allocated buffer (65536)
       It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
  141 clog NAME CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE 0 CHUNK_XSIZE


Any ideas?
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 »

@parkhyeon: All of UE4 scripts are not supposed to work in reimport mode. If something is working occasionally, results will be incorrect most of times, compared to original format. Also, quickbms doesn't support compression for legacy zstd, while I'm not sure which one is used in the PUBG.

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

Experimental script for extracting assets from b2container (Gears 5 & Gears Tactics format) added to custom scripts bundle. Please note that it's a work-in-progress script and for now it's extracting files without proper filenames. More info here: viewtopic.php?f=9&t=12573&p=64001#p64001

Update: b2container script updated in the custom scripts bundle. For more info read the topic, linked above.