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
Game Ripper
Posts: 123
Joined: Sat Sep 02, 2017 12:56 pm

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

Post by Game Ripper »

Hmm, apparently that key suggested by MrMe here should still work with EXE from v1.07: I've just found the same text string in it.
So I'm wondering where's the root of my trouble... any suggestions? Actually I'm trying to decompress / unpack / decrypt a FMOD bank, should such files be processed differently than UE4 PAK archives?
Later!
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

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

Post by ChrisX930 »

Hey Guys,

I just decrypted the Nintendo Switch Game "Fortnite" and wanted to extract and probably rebuild the pak I just extracted from the Game.

I've tried the unreal_tournament_4.bms to extract the pak-file ( http://zenhax.com/viewtopic.php?f=9&t=1005 ) without luck.

I'm getting this error:
select the BMS script to use. type ? for using the clipboard
- select the input archives/files to extract, type * or "" for whole folder and subfolders
- select the output folder where extracting the files
- open input file I:\Nintendo Switch\Fortnite Update\romfs\FortniteGame\Content\Paks\FortniteGame-Switch.pak
- open script I:\Nintendo Switch\Fortnite Update\romfs\FortniteGame\Content\Paks\unreal_tournament_4 (1).bms
- set output folder I:\Nintendo Switch\Fortnite Update\romfs\FortniteGame\Content\Paks

offset filesize filename
--------------------------------------
0000000000000000 0 FortniteGame/FortniteGame.uproject
+ 0000000000000049 7404 FortniteGame/FortniteGame.uproject
Info: algorithm 250
offset 0000000000000049
input size 0x0000000000000586 1414
output size 0x0000000000001cec 7404
result 0xffffffffffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (7404)

Last script line before the error or that produced the error:
194 clog NAME CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE


Using u4pak.py gives me this:
u4pak.py info "I:\Nintendo Switch\Fortnite Update\romfs\FortniteGame\Content\Paks\FortniteGame-Switch.pak"
unsupported version: 6


So it seems the file is somehow compressed and uses UE4 PAK version 6?

Could you help me out with that?

I want to extract the files and, if possible, rebuild it / replace files.


EDIT:
Here's the file:
https://drive.google.com/open?id=1s8fKs24vjnt-w63PQh04LPcnvkhOqku9
Last edited by ChrisX930 on Wed Jun 20, 2018 11:35 am, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

Are you using script 0.4.20?

I remember some user posted something about version 6 and it was fixed in 0.4.20.
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

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

Post by ChrisX930 »

aluigi wrote:Are you using script 0.4.20?

I remember some user posted something about version 6 and it was fixed in 0.4.20.


My Script ist the 0.4.20 version (Unreal Engine 4 - Unreal Tournament 4 (*WindowsNoEditor.pak) (script 0.4.20))
But with this script, it doesn't seems to work :S
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

Try the new script 0.4.20a in which I force oodle if VERSION is 6, maybe now it works.
It's the same link.
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

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

Post by ChrisX930 »

it worked, it seems.
Thanks . !
Zikmont
Posts: 13
Joined: Wed Jul 20, 2016 7:01 am

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

Post by Zikmont »

Hey! Is there anyone who can find an AES key in this file? Pls, help me...I dunno what to do
https://drive.google.com/open?id=1obIf2 ... oy2NONn41y
Zikmont
Posts: 13
Joined: Wed Jul 20, 2016 7:01 am

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

Post by Zikmont »

Can . helps me or someone else? I dunno how to find the AES key in exe file. I know that it's in there, but i dunno how to find it. May be someone will teach me what to do or where I have to look at? I've tried to use this script https://github.com/mmozeiko/aes-finder but it doesn't work to me. So what I'm gonna do?
Johnny212
Posts: 1
Joined: Thu Jun 28, 2018 5:00 am

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

Post by Johnny212 »

Is there any script to rebuild the extracted folders from .pak? My game will ignore the unpacked files, so I need to rebuild it to make it works.
Zikmont
Posts: 13
Joined: Wed Jul 20, 2016 7:01 am

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

Post by Zikmont »

Johnny212 wrote:Is there any script to rebuild the extracted folders from .pak? My game will ignore the unpacked files, so I need to rebuild it to make it works.


I never seen a game that could ignore unpacked files. Always when I'm unpacking .pak files, the game using only unpacked files.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

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

Post by GHOST DEAD »

Rename .pak to .snf and paste extracted files in a folder with your Game name (near by Engine Folder)
Unreal Engine 4 can read file from outside (External files).
mike23k
Posts: 5
Joined: Sat Jun 30, 2018 5:48 pm

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

Post by mike23k »

Hi, can you help me?
The game itself https://store.steampowered.com/app/7070 ... ve_Online/
None of the keys work.
http://prntscr.com/k17yj6
There is one large .pak file of 24 Gb
Aztec2012
Posts: 1
Joined: Mon Jul 02, 2018 7:06 pm

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

Post by Aztec2012 »

This unpacker will works on Conan Exiles?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

Yes, Conan Exiles is supported by my script:
viewtopic.php?p=34698#p34698
mike23k
Posts: 5
Joined: Sat Jun 30, 2018 5:48 pm

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

Post by mike23k »

mike23k wrote:Hi, can you help me?
The game itself https://store.steampowered.com/app/7070 ... ve_Online/
None of the keys work.
http://prntscr.com/k17yj6
There is one large .pak file of 24 Gb


Unfortunately, there is very little information about it, so the question is still relevant. What can I do?
Zikmont
Posts: 13
Joined: Wed Jul 20, 2016 7:01 am

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

Post by Zikmont »

Hi everyone! Think I asked wrong way. I want to encrypt the game files. Can someone help me with this?

I'm talking about Deathgarden: https://store.steampowered.com/app/555440/DEATHGARDEN/
The keys in qbms doesn't work.

2 files that i got with filecutter.bms
https://drive.google.com/file/d/1Q65lDJEuaDV8Qbf5vSQC6DB6wpJZfOkx/view?usp=sharing
https://drive.google.com/file/d/1q9D5IfZnOHCM2n7iLoZDxW4j9VmrIoht/view?usp=sharing

Pak file:
https://yadi.sk/d/4g0sEYLd3Yj3yN

When I'm trying to use quickbms 9.0 and unreal_tournament.bms 0.4.20a i'm getting this error https://imgur.com/a/KXtpwok

Exe file:
https://drive.google.com/file/d/1obIf2jduiD4lMwHNNwqUv8oy2NONn41y/view

Help me pls. Anything doesn't work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

@Zikmont
Please stop asking the same thing again and again.
If nobody published the key it probably means it's generated at runtime or similar and can't be quickly found without the game and working on it.
And no, that's not an error, if the archive is encrypted quickbms asks you to insert the correct key.
A request for input and and an error are two completely different things...

@mike23k
The procedure is simple, upload the big game executable and if you are lucky someone will publish the key.
Zikmont
Posts: 13
Joined: Wed Jul 20, 2016 7:01 am

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

Post by Zikmont »

.
Sry. BTW i know that's it's not an error, I just didn't correct my text before publishing.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

Don't worry, many users call the request for key an "error" :)