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
cornel
Posts: 30
Joined: Sun Feb 25, 2018 4:27 pm

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

Post by cornel »

With QuickBMS I was able to extract all the paks (and patch paks) of Jedi Fallen Order (UE4.21), except for the patch paks of the second pak (pakchunk2)...
I used two scripts, each with a different AES decryption key (attached).
But non worked for the 2nd pak (with wem audio files)...
I got an error message (see below).
Anyone know what that means? Is there perhaps a third AES key that I need to find?
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 »

@cornel: The game has dummy packages without any content, which can't be processed - you can check it by file size, valid packages should be at least 300 bytes or bigger. If you're doing batch extraction, you can temporary move dummy packages somewhere else.
cornel
Posts: 30
Joined: Sun Feb 25, 2018 4:27 pm

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

Post by cornel »

Thanks @spiritovod! As always, sir, you are a provider of useful info!
Don't need to worry about those then.
tr1cky89
Posts: 1
Joined: Mon Apr 18, 2022 12:50 am

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

Post by tr1cky89 »

@spiritovod

And idea what changes TRS did to MapProperty's on Back 4 Blood? I've had confirmation from a dev they made changes to optimize it, but couldn't give any specifics.
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 »

@tr1cky89: I suppose you can check both game SDK and properties of related assets in fmodel for more info. Also, please note that this topic is for general questions about UE4 packages and their extraction, not about particular assets or modding conversations.
ktoplay
Posts: 5
Joined: Thu Feb 10, 2022 8:10 pm

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

Post by ktoplay »

spiritovod wrote:@ktoplay: If I remember correctly, it can be extracted with 4.27 script, available via my signature, without additional steps.

Sorry for late answer. Thx, it helped!
But there is still a problem here. It occurs after an hour of unpacking:

Error: impossible to write 0xc0001859 bytes (total 0xc0001859)
Check your disk space or the script is wrong

Last script line before the error or that produced the error:
192 log NAME OFFSET DIFF 0 XSIZE

- OFFSET 0x835dd835
- SIZE 0xc0001859
coverage file 0 30% 1168969732 3776994229 . offset 835dd835
coverage file -5 25% 878402 3457371 . offset 00255c29
NoobInCoding
Posts: 127
Joined: Sat Aug 07, 2021 9:49 am

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

Post by NoobInCoding »

@ktoplay: maybe you don't have enough space.
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 »

^ This and also there are possible problems with your HDD, since archives around 3GB should be extracted in approximately 10-15 minutes (and much faster on SSD), not a hour.
A9STRACK3D
Posts: 3
Joined: Thu Apr 28, 2022 12:06 am

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

Post by A9STRACK3D »

Can anyone help me find the updated key for Injustice 2 mobile??
I have searched everywhere and cant find any code to break into it that still works, error every time
Here is a link below with my current .Pak file
https://www.mediafire.com/file/0g4sqgtm ... 2.pak/file

Any help would be extremely appreciated Ive been on this for about 5 hours trying to break into this game and start extracting models and animations. I am able to get into MK Mobile no problem, but Injustice has alot more animations and some character models i would like to use, anyone that can help me i will be forever indebted.

Also if it helps this is my error message when i use the last code that worked (0x7A5E5EAB097E849F2326FBA10C89ED94E3D3E77FBF5D0B20CD8CFF20AC615418)

Error: incomplete input file -10:
Can't read 8 bytes from offset 00aa2b80.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file -10 100% 11152256 11152256 . offset 00aa2b80

Last script line before the error or that produced the error:
108 get CHUNK_END_OFFSET longlong TOC_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 »

@A9STRACK3D: I have no idea which script you're using, since both vanilla UE4 script (linked in the first post) and modern version of that script for games below 4.25 (available via my signature) works fine with the provided package. Also, if you need only models related assets from packages, you don't have to extract them, because both umodel and fmodel can work directly with packages.
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 »

can anyone explain?? i unpacked my *.pak file via termux, initially the process was fine !! but it's having problems on unpacking complete, they're not in my output folder!!
I use this script to unpack it unreal_tournament_4_0.4.23.1a_pubg_mobile_v2.bms
A9STRACK3D
Posts: 3
Joined: Thu Apr 28, 2022 12:06 am

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

Post by A9STRACK3D »

spiritovod wrote:@A9STRACK3D: I have no idea which script you're using, since both vanilla UE4 script (linked in the first post) and modern version of that script for games below 4.25 (available via my signature) works fine with the provided package. Also, if you need only models related assets from packages, you don't have to extract them, because both umodel and fmodel can work directly with packages.



I don't know why but the vanilla script didn't work for me, I had to have done something wrong, however when I used 4.25 worked like a charm, I am using the models to animate and make characters for Mugen/Mortal Kombat Project and UModel wouldn't let me access anything in Injustice because of the encryption, right after reading your response I downloaded the script, ran it and bam everything opened up, thank you so much, tbh I have no idea what I'm doing and I am trying to learn a whole lot real fast (literally before yesterday I knew not one thing about game files or even how to access them) this site has been extremely resourceful, just wanna say thank you for the help. It is extremely appreciated, wish I asked her first instead of spending 6 hours attempting to do it myself.
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: I don't think this problem is related to script itself, more like to general usage of quickbms. Most likely on different platforms output folder should be explicitly declared in launch parameters (as explained in documentation, see "usage"), or quickbms doesn't have enough rights to write to output folder, or something else.

@A9STRACK3D: I've just re-checked vanilla UE4 script with packages from latest Injustice 2 mobile (5.3.1) and it works fine here. If you're willing to solve this issue, provide error message you got when extracting files with vanilla script. Please use script without any modifications (like embedded key), which you can get from this link.
As for umodel, it supports encrypted packages and it's asking for key when you're trying to open them (in the same format 0x1122...), so there shouldn't be issues with it as well. If you have other umodel related questions, please ask them at gildor's forums.
dankew1
Posts: 2
Joined: Sat Apr 30, 2022 3:22 pm

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

Post by dankew1 »

Hello, can I request a bms script for Aliens Fireteam Elite please ?
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 »

@dankew1: 4.25 script, available via my signature, with key from separate topic, also available via signature, should work with that game.
Freeeee
Posts: 8
Joined: Sun Oct 10, 2021 5:01 am

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

Post by Freeeee »

ikyAhmad wrote:can anyone explain?? i unpacked my *.pak file via termux, initially the process was fine !! but it's having problems on unpacking complete, they're not in my output folder!!
I use this script to unpack it unreal_tournament_4_0.4.23.1a_pubg_mobile_v2.bms




Are you unpacking or repacking the 2.0 version ?
dankew1
Posts: 2
Joined: Sat Apr 30, 2022 3:22 pm

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

Post by dankew1 »

spiritovod wrote:@dankew1: 4.25 script, available via my signature, with key from separate topic, also available via signature, should work with that game.

Yeah thank you it works
ktoplay
Posts: 5
Joined: Thu Feb 10, 2022 8:10 pm

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

Post by ktoplay »

@NoobInCoding I have 120GB free on my computer.

@spiritovod HDD new. The archive itself is quite large, I'm surprised that it (not)unpacked in an hour at all.
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 »

@ktoplay: I couldn't reproduce this issue on my backup copy of the game, package was extracted without errors. Make sure you're using quickbms_4gb_files version and that path for output folder is not too long, as there is path length limit in windows. Also, you can try to temporary disable antivirus (if you have any), because it usually tries to check every new file and there are a lot of them upon extraction.
Alternatively you can use other tools, like fmodel / unrealpakviewer / native unrealpak, but this topic is about related quickbms scripts, so third-party tools and their usage are not covered here.
TheJJMan
Posts: 19
Joined: Sun Sep 05, 2021 10:11 am

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

Post by TheJJMan »

Are there any tools currently available for Unreal Engine 5 yet? Umodel hasn't said anything about it yet