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
ikyAhmad
Posts: 33
Joined: Mon Sep 13, 2021 12:44 am

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

Post by ikyAhmad »

spiritovod wrote:@ikyAhmad: Certainly not on zenhax forums.

yes, I mean somewhere else!! because here it is forbidden to talk about it :|
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 »

Script for extracting awb audio containers from Sword and Fairy 7 added to sound extraction bundle (it may work for other games with such audio assets as well). Also, included readme was expanded with samples for batch conversion operations - you can use any of them on the whole extracted folders, required files will be detected automatically.
Last edited by spiritovod on Sun Jan 09, 2022 9:59 pm, edited 1 time in total.
BrkoDrakCZE
Posts: 8
Joined: Sat Jan 08, 2022 6:15 pm

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

Post by BrkoDrakCZE »

Hi, i have problem with game *SPAM* Bussines (released Jan 7, 2022)


- error in src\extra\xalloc.c line 258: xdbg_alloc_init()

Error: memory allocation problem


Code: Select all

QuickBMS generic files extractor and reimporter 0.11.0 (64bit test)
by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org
        (Apr  5 2021 - 13:47:43)

                          quickbms.com  Homepage
                            zenhax.com  ZenHAX Forum
                     @zenhax @quickbms  Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files
- open input file C:\Games\*SPAM* Business\*SPAM*\Content\Paks\*SPAM*.pak
- open script C:\Games\*SPAM* Business\*SPAM*\Content\Paks\unreal_tournament_4_0.4.27b_paks_only.bms
- set output folder C:\Games\*SPAM* Business\*SPAM*\Content\Paks

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

- error in src\extra\xalloc.c line 258: xdbg_alloc_init()

Error: memory allocation problem


press ENTER to quit


Size of file 9,7 GB

Aluigi sent me here....
Last edited by BrkoDrakCZE on Sat Jan 08, 2022 8:51 pm, edited 1 time in total.
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 »

@BrkoDrakCZE: Please don't post such long logs as-is - either trim them or attach as text files to your posts. Otherwise it's hard to navigate through pages with such long posts.
I've fixed the issue in the latest version of the script, it should work with such games now. You can find it via my signature.
BrkoDrakCZE
Posts: 8
Joined: Sat Jan 08, 2022 6:15 pm

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

Post by BrkoDrakCZE »

spiritovod wrote:@BrkoDrakCZE: Please don't post such long logs as-is - either trim them or attach as text files to your posts. Otherwise it's hard to navigate through pages with such long posts.
I've fixed the issue in the latest version of the script, it should work with such games now. You can find it via my signature.

i try 4.25 and 4.27B and none work (this post is from 4.27b)
BrkoDrakCZE
Posts: 8
Joined: Sat Jan 08, 2022 6:15 pm

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

Post by BrkoDrakCZE »

Much thanks, 4.27C look as work.
BrkoDrakCZE
Posts: 8
Joined: Sat Jan 08, 2022 6:15 pm

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

Post by BrkoDrakCZE »

One little question (Sorry if this OT)
Is here any locred export and import for 4.27 ? (for 4.25 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 »

@BrkoDrakCZE: Check this topic and also other UE4 related topics in Localization subforum, there should be locres tools compatible with current format. This topic is for general questions about package format and respective scripts, so it's better to ask about extracted assets in appropriate forum sections.
BrkoDrakCZE
Posts: 8
Joined: Sat Jan 08, 2022 6:15 pm

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

Post by BrkoDrakCZE »

spiritovod wrote:@BrkoDrakCZE: Check this topic and also other UE4 related topics in Localization subforum, there should be locres tools compatible with current format. This topic is for general questions about package format and respective scripts, so it's better to ask about extracted assets in appropriate forum sections.

OK thank you and sorry
ikyAhmad
Posts: 33
Joined: Mon Sep 13, 2021 12:44 am

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

Post by ikyAhmad »

Brother Spiritovod why is the Game folder no longer in the Unpacked .pak?? i am looking for files /Game/Blueprints/Weapons/BallisticData and also /Game/Blueprints/Damage_Type. I can't find this asset, only the "ARTS" folder
the tool I use is unreal_tournament_PUBGMobile.
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 »

@ikyAhmad: What about reading my base post, the one from signature, especially the highlighted bold part of it?

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

Script for converting packages from PS4 version of Back 4 Blood is added to custom scripts bundle. It will convert them from customized to vanilla "frozen index" format, which can be extracted with native 4.25 unrealpak tool with oodle support (read included readme for more info).
leonardliao
Posts: 3
Joined: Tue Jan 11, 2022 6:57 am

error with extract some sound effect from PAK(UE4_Game)

Post by leonardliao »

I'm trying to extract game assets from Mir4, I've found the AES_KEY, but there are still some errors when I try to run the quickbms. Though I can get some files like .uasset, UE4 can't read them.

Code: Select all

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      000000000000813e
       input size  0x00000000000002d0 720
       output size 0x000000000000067d 1661
       result      0xffffffffffffffff -1

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

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

- OFFSET       0x000000000000813e
- ZSIZE        0x00000000000002d0
- SIZE         0x000000000000067d
  coverage file 0     1%   34219      2087782    . offset 000000000000840e
 


game files:
1.https://www.dropbox.com/s/5iuc6y16gubuy ... 6.pak?dl=0
2.https://www.dropbox.com/s/08gjf4v0muj1z ... 1.pak?dl=0

unreal_tournament_4.bms
https://www.dropbox.com/s/nac10xmb2zqg6 ... 4.bms?dl=0
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 »

@leonardliao: You're using wrong key in the script (you need the one for PC version in your case, it's available via my signature). Also, the way you embed key in the script may not work as intended in some cases, just letting you know.
leonardliao
Posts: 3
Joined: Tue Jan 11, 2022 6:57 am

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

Post by leonardliao »

spiritovod wrote:@leonardliao: You're using wrong key in the script (you need the one for PC version in your case, it's available via my signature). Also, the way you embed key in the script may not work as intended in some cases, just letting you know.


You're right, I made some mistakes and upload the wrong script file(mobile key).
When I got the *.uasset files, but I can't open them in UE4 or extract the sound with ueviewer, so I doubt maybe there are some mistakes when I extract the files from PAK.
Thank you. I think I should find some ways to open that *.uasset files.
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 »

@leonardliao: Almost all modern UE4 games are using wwise solution for audio, which is not supported by umodel, so it's better to use fmodel for audio extraction. Other umodel related questions belongs to the game topic at Gildor's forum, I believe most of them are already covered in that linked topic, just read it carefully.
leonardliao
Posts: 3
Joined: Tue Jan 11, 2022 6:57 am

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

Post by leonardliao »

@spiritovod
Thanks. The fmodel seems can't extract the sound either.
The topic at Gildor's forum should be helpful, I'm trying on it.
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 »

@leonardliao: I've just checked, fmodel supports sounds from the game properly. There are "cue" and normal assets in Sound subfolder, normal ones are actual sounds and they can be played or exported with fmodel just fine. Though it's out of the scope of this topic as well, so if you have questions about the tool, please ask them at respective community.
soulbrother73
Posts: 3
Joined: Thu Oct 05, 2017 3:16 pm

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

Post by soulbrother73 »

Anyone able to unpack Warhammer Age Of Sigmar Stormground, files are pak plus a sig file.
Sampel file.

https://www.mediafire.com/file/ubcmdvwb ... s.rar/file
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 »

@soulbrother73: There shouldn't be any problems with extracting assets from the game with the script from the first post or 4.25 one from my signature. You can find required key via signature as well.

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

Script for decrypting open beta versions of Back 4 Blood (PC) is added to specific scripts bundle, you need to run quickbms with -o -С options for more convenient usage of the script. No key is required, packages are fully extractable. Encryption in the full version is the same, but I need to run it at least once to obtain required info (while I don't own it).

Update: Read announcement below, it affects Back 4 Blood script as well.

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

Base 4.25 + 4.27 and Back 4 Blood scripts are now fixed (essentially all "c" scripts versions). Previously, encrypted non-chunked assets were not extracted properly due to incorrectly written data (all aligned data was written instead of original size). Please check if you're using latest versions of them to avoid possible issues (they should contain "fixed" inside the script).
SLVRMN
Posts: 1
Joined: Thu Jan 20, 2022 5:04 pm

Undecember unpack

Post by SLVRMN »

Does anybody know how to extract the pak files from Undecember?
I've tried a lot encryptions but none of them worked.