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
Warthog1336
Posts: 140
Joined: Mon Feb 05, 2018 5:45 pm

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

Post by Warthog1336 »

resources
mouserat11
Posts: 2
Joined: Fri Nov 06, 2020 2:38 am

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

Post by mouserat11 »

spiritovod wrote:@mouserat11: Usually this error means that the index has custom format, but looking at the offset value it's probably something different - for example, if you are using outdated UE4 script with some modern game (check latest UE4 script via my signature). Provide more info about the game or at least sample pak. Also, take a look at games with specific scripts from my base post, maybe it's one of them.

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

custom_extract script from custom_UE4_scripts bundle updated. It now properly works with all possible filters (before it actually worked only with extensions as filters, which I didn't notice), including unicode strings - for example, you can now find something like "Intérior" in filenames, considering that you're editing bms script in a unicode compatible editor.


Awesome the new script worked!! Thank you very much :D
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 »

@TGGAMING: There is raw_extract script for PUBGM in custom_UE4_scripts bundle for a while, which works on all game versions, available at the moment. And while the proper way would be RE decryption scheme of the game to get normal index and filenames, I'm more interested in the naming pattern of UE4 assets in general. Generally speaking, you should deserialize all assets to "guess" their names correctly, but there is workaround, related to the way how assets are stored in paks. Though quickbms was not designed for such complex tasks, and I don't feel like creating standalone tool for that, because it will be tied to particular game(s).
For now my priority is to release generic raw_extract script for 4.25- games. It's more for research purposes though, since I doubt someone will actually use it.
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

oceanhorn 2 (nintendo switch)

Post by g3stapo »

maybe someone knows that oceanhorn 2 came out on nintendo switch.. written in unreal engine
Who knows how hard it is to unpack it? Maybe someone could take up this case
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 »

@g3stapo: Took a look at the game, you can find results in this topic. If you don't know how to extract UE archives from switch games, you can find it here -> "How to extract paks from Switch games".
anhsamac
Posts: 11
Joined: Sun Jun 21, 2020 7:26 am

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

Post by anhsamac »

@spiritovod: I know it sounds stupid, but can i use your script to reimport after Translate games?
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 »

@anhsamac: No, UE4 scripts are not compatible with reimport modes, but you can find required info in my base post -> "How to repack assets back" part. It will not work for the games extracted with specific scripts though.
mrtest
Posts: 3
Joined: Sat Nov 14, 2020 8:10 am

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

Post by mrtest »

Help extract files from the game. SK2
https://yadi.sk/d/YPGV4zWLpZE_2A
Last edited by mrtest on Thu Nov 19, 2020 2:33 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 »

@mrtest: You can find the key in the list via my signature. Aside from that the game has standard pak format, which is compatible with base UE4 bms script.
mrtest
Posts: 3
Joined: Sat Nov 14, 2020 8:10 am

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

Post by mrtest »

spiritovod wrote:@mrtest: You can find the key in the list via my signature. Aside from that the game has standard pak format, which is compatible with base UE4 bms script.

It works. thanks.
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

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

Post by g3stapo »

spiritovod wrote:@g3stapo: Took a look at the game, you can find results in this topic. If you don't know how to extract UE archives from switch games, you can find it here -> "How to extract paks from Switch games".

can you load the open archive and keys?
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 »

@g3stapo: No, because nintendo is very sensitive to such things and forum can be easily DMCAed for posting that stuff directly. I've already provided link to the instruction - it's quite simple, except the link to prod keys is obfuscated to avoid their fast removal from hosting. Still, you shouldn't guess anything, all required info is written there.
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

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

Post by g3stapo »

spiritovod wrote:@g3stapo: No, because nintendo is very sensitive to such things and forum can be easily DMCAed for posting that stuff directly. I've already provided link to the instruction - it's quite simple, except the link to prod keys is obfuscated to avoid their fast removal from hosting. Still, you shouldn't guess anything, all required info is written there.

ok, you can just give the keys then?
you write in the instructions using yuzu, but you have the wrong key in prod.keys.. so it doesn't work
which are needed in keys.ini and aes and I hope that's 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 »

@g3stapo: prod.keys file is correct and up-to-date, because I've checked the game files exactly with the same file. I don't know what you're doing, but definitely not according the instruction, because yuzu doesn't use keys.ini or something. And game archive is not encrypted, so you don't need any aes key for it either.
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

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

Post by g3stapo »

spiritovod wrote:@g3stapo: prod.keys file is correct and up-to-date, because I've checked the game files exactly with the same file. I don't know what you're doing, but definitely not according the instruction, because yuzu doesn't use keys.ini or something. And game archive is not encrypted, so you don't need any aes key for it either.

i add game to yuzu
then add file prod.keys to folder ....\Roaming\yuzu\keys
turn on "Scan Subfolders" and the game is not detected
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 »

@g3stapo: yuzu can detect roms even without keys file present. If it can't detect rom (nsp / xci), you're doing something wrong. Also, some combined roms (with included patches or DLCs) can't be extracted properly, but they will be detected properly anyway.
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

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

Post by g3stapo »

spiritovod wrote:@g3stapo: yuzu can detect roms even without keys file present. If it can't detect rom (nsp / xci), you're doing something wrong. Also, some combined roms (with included patches or DLCs) can't be extracted properly, but they will be detected properly anyway.

I opened
why almost nothing opens? not one model does not open..
gives an error message

Code: Select all

appMalloc: size=673709016 (total=4 Mbytes) <- FArray::Empty: 1101813033 x 24 <- TArray::Serialize: 0/0 <- FStaticMeshLODModel4<< <- TArray::Serialize: 1/6 <- UStaticMesh4::Serialize <- LoadObject: StaticMesh4'Corbin-Weapon-Club.Corbin-Weapon-Club', pos=331E, ver=518/0 (unversioned), game=ue4.25 <- UObject::EndLoad <- LoadWholePackage: /OH2/Content/Objects/Meshes/Corbin-Weapon-Club.uasset <- CUmodelApp::ShowPackageUI <- Main: umodel_build=1380


and is not exported..

I saw that you wrote a non-standard format
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 »

@g3stapo: Too many questions. Try to read already present info and learn things before asking something. I'll stop responding from now on, because it's not umodel support forum, nor yuzu/switch support forum.
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

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

Post by Ogoshi »

Anyone have the key for Godfall?

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 »

@Ogoshi: Game files are not encrypted, just use latest UE4 script from my signature.