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
parttimegamer15
Posts: 28
Joined: Thu Jul 21, 2016 12:17 am

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

Post by parttimegamer15 »

Not really a request for key but was wondering if anyone has successfully extracted (Windows Store version) of Sea of Thieves?
I can see from the list that there is a key for:
Sea of Thieves (old ver.) 0x37A0BC3DC2E01D9EB4923CA266A5701F56A4802347F07927FC3FC25C93B31B50
Vaziayu
Posts: 3
Joined: Fri Feb 28, 2020 11:38 pm

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

Post by Vaziayu »

..
Last edited by Vaziayu on Sat Jan 21, 2023 9:19 pm, edited 1 time in total.
Kovace
Posts: 9
Joined: Tue Feb 05, 2019 11:36 am

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

Post by Kovace »

Darko wrote:
toystory2wasok wrote:Does anyone know if the PC release of Daemon X Machina has an AES key?


Same here.

Yes. have aes key. But i dont have idea how to find
ultima71
Posts: 11
Joined: Tue Aug 22, 2017 7:47 am

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

Post by ultima71 »

Any chance anyone could dig up the AES key for Gym Simulator ? I've included the .exe here...

https://mega.nz/#!l4BjXS6L!IU5YbI1v0koj ... CBrZt1a-pQ

Thanks :)
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

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

Post by Jacob Darka »

Hello, what's the key for "Weakless" game?
the game has one pak (2.6GB) file only
Pepita
Posts: 36
Joined: Sun Sep 30, 2018 1:58 pm

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

Post by Pepita »

Can anyone give me a tip about repacking Ashes of Creation?

It seems if you repack modified Files you get:

Assertion failed: [File:Unknown] [Line: 3510] Pak Decompression failed. PakFile:../../../APOC/Content/Paks/pakchunk1-WindowsClient.pak, EntryOffset:616404992, EntrySize:976, Method:Zlib, ProcessedSize:2220, RawSize:971, Crc32:391020499, BlockIndex:0, Encrypt:1, Delete:0, Output:000002CCC7090080, Raw:000002CCB745E860, Processed:0000000000000000, Bytes:[78DA9D567D685B5514BF89EBA7E9B2D97454C90499B255DBBEA4C36DB4A24993...]


It seems It can't load the files propperly, once you repacked 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 »

@ultima71, @Jacob Darka: Gym Simulator and Weakless keys were added to the list.

@Pepita: You can't repack UE4 archive with quickbms properly. Use u4pack (preferred) or unrealpak to create additional archives (mods). UE4 will read any proper archive placed in Content\Paks directory and replace original assets from base paks with edited from additional paks (in case they have the same name and they are placed in the same directory inside modified archive). Also, in case if original pak has signature (sig file), don't forget to create a copy of it with the same name as modified pak.
Pepita
Posts: 36
Joined: Sun Sep 30, 2018 1:58 pm

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

Post by Pepita »

spiritovod wrote:@ultima71, @Jacob Darka: Gym Simulator and Weakless keys were added to the list.

@Pepita: You can't repack UE4 archive with quickbms properly. Use u4pack (preferred) or unrealpak to create additional archives (mods). UE4 will read any proper archive placed in Content\Paks directory and replace original assets from base paks with edited from additional paks (in case they have the same name and they are placed in the same directory inside modified archive). Also, in case if original pak has signature (sig file), don't forget to create a copy of it with the same name as modified pak.


I tried to do what you told, but the game just instantly crash. I also tried to encrypt the File with "Encrypto" but I guess the Algorythm is different?

So the Files are:

pakchunk1-6
pakchunk10
pakchunk100

What I did so you can follow and find the mistake:

extracted "pakchunk1"
modified File I want to modify
repacked "pakchunk1" with u4pak

Renamed "pakchunk1" to "pakchunk11"
copied "pakchunk1.sig" and renamed it to "pakchunk11.sig"

The Game instantly crash, means he prob. try to load it but cannot. If I encrypt it with Encrypto and using the Original Key as Password:

"0xFD90EE3A5AF0E97AD0E092DFB0E8BB3848D980809F5EFFDEBF19DEF3FF919F82"

It not crash anymore, but I think he simply skip the File, since he don't know it is a PAK File anymore. Also QuickBMS cannot handle the FIle anymore.

Error: [myfseek] offset 0xa7e0aa99563dd215 in file 0 can't be reached

Last script line before the error or that produced the error:
94 log MEMORY_FILE10 OFFSET SIZE


So I asume I stuck on re-encrypt the PAK File right now.


Edit:

So after messing arround a lot with UnrealPack.exe I was able to repack the PAK File and replace it with the Original, it seems he can load the File, since it not error anymore, also it stops error that he cannot load Level XYZ (the Login Menu)

But for some Reason, it stays black, so it seems he checks if something is encrypted or so? Maybe you have an Idea? I Mean, technically, repacking the Stuff worked, but the Screen stays black then.
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 »

@Pepita: You don't need to encrypt modified paks and it definitely can't be done with decryption key. And, like I've said, if original files are signed, you can re-use the same signature with modified paks. Also, you can't simply replace original pak with modified one, especially base one (pakchunk1 in your case, though I'm not sure where pakchunk0 has gone) - you should include only modified assets in the modified pak. And name it like packchunk1_p.pak, if modified assets are from packchunk1.pak.
So basically you were doing it right, but maybe:
1) Modified asset(s) is broken (not compatible with the game) - it's most likely the problem.
2) You're packing the wrong root directory (that's why I've recommended u4pack first, it will pack archive as is, while UnrealPak is more complicated with paths). You can check it easily - just extract modified pak, it should create the same folder structure as original pak, at least for included assets.
3) The game has integrity checks - it's unlikely, but still possible.
Pepita
Posts: 36
Joined: Sun Sep 30, 2018 1:58 pm

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

Post by Pepita »

spiritovod wrote:@Pepita: You don't need to encrypt modified paks and it definitely can't be done with decryption key. And, like I've said, if original files are signed, you can re-use the same signature with modified paks. Also, you can't simply replace original pak with modified one, especially base one (pakchunk1 in your case, though I'm not sure where pakchunk0 has gone) - you should include only modified assets in the modified pak. And name it like packchunk1_p.pak, if modified assets are from packchunk1.pak.
So basically you were doing it right, but maybe:
1) Modified asset(s) is broken (not compatible with the game) - it's most likely the problem.
2) You're packing the wrong root directory (that's why I've recommended u4pack first, it will pack archive as is, while UnrealPak is more complicated with paths). You can check it easily - just extract modified pak, it should create the same folder structure as original pak, at least for included assets.
3) The game has integrity checks - it's unlikely, but still possible.



It actually worked with UnrealPak, I guess they have litterarely no check.

UnrealPak created a dummy Sig File (0 KB) and just repacked packchkunk1.pak and the game actually accepted the file, after I packed it with UnrealPak. Very odd, since a lot of methods didnt worked. Sadly what I wanted to achieve didn't worked, but at least I knew now, how to replace stuff. Since there seems no check 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 »

Granblue Fantasy Versus key added to the list.
ISKA
Posts: 223
Joined: Mon Apr 09, 2018 11:09 pm

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

Post by ISKA »

spiritovod wrote:Granblue Fantasy Versus key added to the list.

Script not working on State of Decay 2 (Steam version). Can you update to script?
Last edited by ISKA on Sat Mar 14, 2020 7:27 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 »

@ISKA: Not sure why you've quoted my post, but I know little about actual pak structure. Maybe they've changed compression algorithm, maybe something else (e.g. offsets).

Update: Try this script, it should work.
Update 2: The script is now available within specific scripts bundle: viewtopic.php?f=9&t=1005&p=56251#p56251
Last edited by spiritovod on Fri Jul 24, 2020 11:23 am, edited 2 times in total.
bigbang20061
Posts: 2
Joined: Wed Oct 30, 2019 1:44 am

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

Post by bigbang20061 »

spiritovod wrote:@ISKA: Not sure why you've quoted my post, but I know little about actual pak structure. Maybe they've changed compression algorithm, maybe something else (e.g. offsets).

Update: Try this script, it should work.

Thanks !!!!
stevenking10
Posts: 13
Joined: Fri Mar 18, 2016 3:32 pm

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

Post by stevenking10 »

Hello, what's the key for "Draugen" game?

Edit: found it :)
xiaohuang
Posts: 13
Joined: Tue Mar 01, 2016 11:30 am

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

Post by xiaohuang »

Have State of Decay 2 (Steam version) UE4_.locres Text tool (my English is not good)
Devilu
Posts: 2
Joined: Thu Mar 19, 2020 6:17 am

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

Post by Devilu »

Hey
I've been messing with FighterZ mods in the past, but now I can't seem to work with Granblue Fantasy Versus. I know everything about ~mods folders and unpacking, but can't unpack Granblue archives with old FighterZ tools. Someone care to tell me what files/packs (bms and so on) download and what use to unpacked it?
I have Granblue key for unpacking, but I'm really not up to date with this all. Thanks.
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 »

@Devilu
In short: Extract pak with the latest bms script from my signature or Umodel, edit assets and pak them back with the help of this post.
At length: Read this.
Devilu
Posts: 2
Joined: Thu Mar 19, 2020 6:17 am

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

Post by Devilu »

@spiritovod

Thank you! It worked after downloading bms script from your signature, that was the case. I can handle with the rest, thanks!
Breyon0
Posts: 1
Joined: Mon Mar 23, 2020 7:39 pm

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

Post by Breyon0 »

spiritovod wrote:@ISKA: Not sure why you've quoted my post, but I know little about actual pak structure. Maybe they've changed compression algorithm, maybe something else (e.g. offsets).

Update: Try this script, it should work.

It worked, thank you very much.

I've been spending a lot of today trying to figure out how to actually edit the files I unpacked. It didn't work with the UE4 Engine either, the .uasset files don't get detected.

So once I unpack a .pak and have all the .uasset files, how do I actually change some numbers? :| Any help would be very appreciated.