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
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 »

@lew2610: All UE scripts are not valid for reimport mode due to their complexity, you need to use other tools like native unrealpak to create packages. There are some useful links about it at the bottom of my base post from signature, but in general modding is out of scope of this topic.
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 assets from Ash Echoes / Fraxinus Decay is added to specific scripts bundle, available via my signature. Despite the game is on UE4, it's using proprietary packages format, which is modified version of format from GuJian series, created by the same devs. You can use the script on any file in the folder with "data" files, it should work.
ferhat78
Posts: 26
Joined: Wed Apr 10, 2019 2:06 pm

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

Post by ferhat78 »

spiritovod wrote:@Uwuton: The only known game with multiple keys is Fortnite, which is not supported by quickbms scripts anyway. And the finder from my signature is producing only one key (if any). Therefore there is no need for such feature.
About Fortnite, i can extract a normal pak file (which use 1 AES key) but when i want to re-import it says file is not same size (but in reality it is), uncompressed size is same but next to uncompressed size there is a different file size, why this is happening ?
Re-import 2 and 3 don't show this error but it change file size.
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 »

@ferhat78: It was explained just two posts above yours.
MuslimCyberGames
Posts: 220
Joined: Sun Nov 06, 2016 3:28 pm

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

Post by MuslimCyberGames »

Just wanna ask, the High On Life game have a AES key or not?
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 »

MuslimCyberGames wrote:Just wanna ask, the High On Life game have a AES key or not?
No.
ferhat78
Posts: 26
Joined: Wed Apr 10, 2019 2:06 pm

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

Post by ferhat78 »

spiritovod wrote:@ferhat78: It was explained just two posts above yours.
Yes i know, i even checked topics about unrealPak, but fortnite detect that file size, compression type is not same, unrealPak use zlib while fortnite mobile Oodle compression. i would appreciate if you can help me to create a pak that fortnite can read.
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 »

@ferhat78: It has nothing to do with compression type, Fortnite has integrity checks preventing straightforward game modifications. Considering this and also that modding is out of scope of the topic, I can only suggest to address those questions to the game related modding communities.
kk27
Posts: 2
Joined: Thu Jan 05, 2023 2:39 am

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

Post by kk27 »

spiritovod wrote:@ferhat78: It has nothing to do with compression type, Fortnite has integrity checks preventing straightforward game modifications. Considering this and also that modding is out of scope of the topic, I can only suggest to address those questions to the game related modding communities.
I'm having trouble extracting Gears Tactics files, yes the Raw extractor works but also gives problems, but you have to have the files with the names
Lord Vaako
Posts: 26
Joined: Tue Oct 17, 2017 7:36 pm

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

Post by Lord Vaako »

Hi, is there any tool to convert uasset/uexp containing DataTables to json/xml/text file? I can use uassetGUI to export individual records but I would like to export everything at once :-)
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 »

@Lord Vaako: You can check fmodel, but depending on the asset format you may end up with raw data chunks in some cases.
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 »

Edit: Sorry, was meaning for Blue Protocol. If someone got the Setup Files, it would be sexy.
@spiritovod found a new Game where your AES Tool don't work. Have to wait for cs.rin. to approve the Post. Hopefully you can find the Key.
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: Not sure if I missed your post in rin topic, but if you still experience issues with finding the key, you can provide required files here.

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

Script for Lightning (which is global version of Light Response) is added to specific scripts bundle. Also script for Century: Age of Ashes from the same bundle is updated to supports latest game versions. It's available via my signature as usual.
Puterboy1
Posts: 382
Joined: Wed Sep 12, 2018 2:22 am

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

Post by Puterboy1 »

For Hi Fi Rush: 0xE34CC6C8E61D501C1720E61590E4AF560820169433D1629FDA753F72F9EC2543
PaperOdin
Posts: 2
Joined: Sun Jan 29, 2023 5:26 am

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

Post by PaperOdin »

Puterboy1 wrote:For Hi Fi Rush: 0xE34CC6C8E61D501C1720E61590E4AF560820169433D1629FDA753F72F9EC2543
Cheers for the code btw :D

Trying to extract the .pak files for Hi-Fi Rush and keep running into this error

Code: Select all

- open input file D:\Games\steamapps\common\Hi-Fi RUSH\Hibiki\Content\Paks\Hibiki-WindowsNoEditor.pak
- open script X:\UE4 Modding\Programs\unreal_tournament_4.bms
- set output folder C:\Users\PaperOdin\Desktop

  offset           filesize   filename
--------------------------------------
The archive is encrypted, select the number of the key to use or type yours:
0: KIWIKIWIKIWIKIWIKIWIKIWIKIWIKIWI
1: _aS4mfZK8M5s5KWC2Lz2VsFnGKI7azgl
2: bR!@nbR0wnc@rychR!$d@nd@v3d3R3kj!mj0$hk3v!nm!ch@3lm!k3s3@nst3v3t!m
3: casd#55@#$%323!$^#b%05sa5W|hhaf4365s52ss51|55m!|{55s^@@36f233|-|0w@%3g8hssDk35/!Nm|_|%ds23%a32d5&23as3%12p|-|y$t3ds562d23fav3c@dyw38#49
4: C8C4847F3B4FA52D4AAD57A52358CDBC
5: k14z0ZLR8a7jNm49uyBzxXYY9LpTHcehLSNiC3jAkzBsffPuy8YsTa72RLD9KWIn
6: E7@[dZfoYCW;+YWR;0JK^{9tt:yU0_T&
7: E1A1F2E4AA066C54BD5090F463EDDF58D01684243672B3CE809FF47FF473B04A
8: I0vV6wr0TFbg3m23QuSIwnYC1sI0AIDq
9: y298qjSb115NqQ3Agad30DWn2QYrTI8CT6aP05l2PBV9Qe92S94PdoVCCy06A38L
10: b9uW0RKNY91be8HN3Lemi68j6Xsi2l7fQJYsp5oR4al4C4c9kY5E0l90411l9P3L
11: 45DD15D6DD2DA50AEB71CE7A5284CF8EA498B2EC3D52B7E336F3EA0071CE44B3
12: MRZpemumg6t2AXExrMQs6TSoZRG+YSABK338oc6F8kTXu4k6QffJgYAzKl65Tk2L
13: 0x9D8C9A4A4FA082F213EED604B6E756237181685EEDA82216437617D7AA5231AF
14: press RETURN for no encryption (Lineage 2 Revolution)

- please insert the content for the variable KEY:

KEY: no key, encryption disabled

Error: incomplete input file -10:
       Can't read 8 bytes from offset 000000000009e410.
       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%   648208     648208     . offset 000000000009e410

Last script line before the error or that produced the error:
  160 get CHUNK_END_OFFSET longlong TOC_FILE
  coverage file 0     0%   648517     5142665903 . offset 0000000000000000
  coverage file -10 100%   648208     648208     . offset 000000000009e410

Press ENTER or close the window to quit
The key provided above doesn't work and neither do any of the ones listed above. Any ideas?
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 »

@Puterboy1: With big releases like this you can save some time by checking list with keys from my signature, sometimes keys are submitted there even before a game is officialy out.

@PaperOdin: If you need to extract only pak files, you can use 4.27 script, available via post in my signature. For io store packages (utoc/ucas files) you can use other compatible tools like umodel of fmodel.