Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

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

Featured Replies

  • Author
  • Localization

spiritovod, posted Thu Aug 13, 2020 2:51 am (58047)


@fileGates71: You should extract paks from the pkg first. If you don't know how to do that, read corresponding section from this topic.
  • Replies 2.3k
  • Views 568
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

fileGates71, posted Thu Aug 13, 2020 3:04 am (58048)


My bad - I did. It is the .pak files I am trying to extract the files from.
  • Author
  • Localization

spiritovod, posted Thu Aug 13, 2020 11:35 am (58055)


@fileGates71: I believe that you have broken pak then. Use the instruction, linked in my previous post, to extract paks from pkg and try to unpack them. If the problem will occur again, use filecutter script on any pak and upload the results here.
  • Author
  • Localization

fileGates71, posted Thu Aug 13, 2020 12:47 pm (58056)


Broken .pak?! I hope not. I got it right off my physical disc.

In any case, here are the results. There are two .pak files on the disc and used the script on both.
  • Author
  • Localization

spiritovod, posted Thu Aug 13, 2020 1:47 pm (58057)


@fileGates71: Like I thought, those paks are broken. And by that I mean that they were not extracted properly from pkg, due to extraction tool fault or something. That's why I've suggested to use my instruction with PkgEditor in particular.
  • Author
  • Localization

sinnerclown380, posted Thu Aug 13, 2020 4:36 pm (58059)


pls Fast & Furious - Crossroads Aes key
  • Author
  • Localization

spiritovod, posted Thu Aug 13, 2020 8:27 pm (58064)


@sinnerclown380: It's not UE4 game.
  • Author
  • Localization

fileGates71, posted Fri Aug 14, 2020 12:18 am (58066)


@spiritovod: How essential is the downloading from PSN, finding the "reference_package_url", and downloading the PSFDN plugin? Because they seem necessary only if you are using a legit digital copy of the game.

What I did was put the physical Spyro disc into my laptop, booted up PkgEditor (which I used in the first place. I used the default passcode to decode it and never had to again on subsequent tries) and went to town on the app.pkg file. There's just the one, no parts. From it, I got the .pak files and used quickbms and the most recent unreal_tournament.bms scripts - still nothing.

Is it me? Sorry if the post seems ridiculous and condescending, but I just want to make sure I am not missing a step, however useless it may seem.
  • Author
  • Localization

spiritovod, posted Fri Aug 14, 2020 11:55 am (58072)


@fileGates71: You can't dump a PS4 disk from PC properly, it's only possible through jailbroken console. Alternatively, you can download scene release for the game, it's already decrypted.
  • Author
  • Localization

fileGates71, posted Mon Aug 17, 2020 12:30 pm (58115)


Are you sure? I tried using pkgEditor to extract one of the .mp4 files and it worked fine. It could be a pkgEditor issue. When trying to extract the .paks from a .pkg that I downloaded (as an alternate tactic from using my own disc), it said "This application is in break mode" which it didn't do for the .mp4 file.

By "scene release", do you mean the Steam release? If so, then, sorry. I am bound and determined to extract from the PS4 version. There is an early version of the main theme which isn't included in other music rips.

In any case, if a pkgEditor problem is too off-topic for this thread, I will look elsewhere.
  • Author
  • Localization

spiritovod, posted Mon Aug 17, 2020 3:15 pm (58117)


@fileGates71: If you want to know why it works like that (why you can't dump PS4 disk like that or why you can extract a file like that), please read some PS4 technical-oriented sites, it's not the right topic to discuss those questions. It's not PkgEditor fault either - latest build works fine with all valid pkgs (at least, I didn't hear about any non-working valid pkg yet). And by scene release I mean scene release (aka pirated copy).

Not sure what else I can add to the discussion, but you can easily check if your resulted pak is valid or not - open it in any hex editor and scroll to the very end. The end should contain some data (it's actually pak's table of contents). In case if it's broken, it will be all zeroes (common issue for PS4 files over 4GB due to wrong extraction, still not a PkgEditor issue per se).
  • Author
  • Localization

Killnus, posted Tue Aug 18, 2020 7:10 am (58151)


how to edit sword art online texts? i open .pak but all files uasset
  • Author
  • Localization

TNT, posted Thu Aug 20, 2020 8:43 pm (58220)


I'm using the AES key and it appears to be working, but extracted is only coming out around 2 GB where the PAK is over 8 GB.

Also tried with UnrealPak.exe and it's getting more files, but the extras are all empty 0kb.

I tried to search, but I'm new to this. I am on Windows 10.
  • Author
  • Localization

spiritovod, posted Fri Aug 21, 2020 12:38 pm (58243)


@TNT: Not sure how you've managed to extract 2GB, since base script fails at first megabyte and umodel can extract almost 8GB of graphics out of it. Anyway, use corresponding specific script from this post to extract all assets from the pak.
  • Author
  • Localization

TNT, posted Fri Aug 21, 2020 8:58 pm (58261)


I had already downloaded your script and was having problems, but I guess I've figured it out now. Did the pak need to be in the original location or something? That's about the only thing I've changed and it seems to be working fine now and had extracted over 11 GB before I ran out of space and had to move drives to try again.
  • Author
  • Localization

spiritovod, posted Fri Aug 21, 2020 9:31 pm (58262)


@TNT: If you mean that list of keys, embedded in the scripts, it's more like legacy of original script and more or less obsolete now, all differences are in the main part of scripts. Any UE4 script will ask you for a key anyway, if the pak you're trying to extract is encrypted. So in most cases you should just copy-paste required key upon request - unless you need some automatization, like in case with Sea of Thieves with a lot of paks. But I didn't test limitations and possible issues of the base script (like if you can input umodel formatted key as binary variable, etc), so can't say anything about that.

Back to THPS, I don't have any issues with the specific script and latest quickbms, it extracts the single game pak perfectly (~16GB totally). And I can't reproduce the issue either, maybe it's somehow related to the mentioned in the previous paragraph stuff. You can try what is considered as "normal" routine for UE4 scripts - point to specific script (don't modify it), point to pak, copy-paste key upon request (in 0x1111... format), wait until extraction is complete.

TNT wrote:
Did the pak need to be in the original location or something?

Not really, it's only applied to Overhit and Gears of War 4 games, for the rest you should be able to extract paks from anywhere. But I'll check that, maybe it's a bug in the script.
  • Author
  • Localization

pipoman, posted Fri Aug 21, 2020 9:58 pm (58263)


Trying to deal with the "Pinball Wicked" encrypted .pak files. I found the AES key 0x6A974B57A0C650C359E4AC4DA952A49B244F7EF1C0A0C2919AAAA15E6CAC0FA3 but using the latest unreal_tournament_4_0.4.25 I get an error
Quote:
Error: the requested amount of bytes to allocate is negative (0xfd95ef7f)
Last script line before the error or that produced the error: 246 clog NAME OFFSET ZSIZE SIZE 0 XSIZE

Is there something special with this game or I am doing something wrong?

=== EDIT

Seems like I missed two last instructions ror byte ptr ss:[esp 24],3 and ror byte ptr ss:[esp 11],4
and the AES key is 0x6A974B57A06C50C359E4AC4DA952A49B244F7EF1C0A0C29153AAA15E6CAC0FA3 instead

But still not working now the error is the following
Quote:
KEY: j-KW?lPAYa?McR?>$O~nA?A'S??^l??

Error: incomplete input file -10:
Can't read 5 bytes from offset 0003c3e0.
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% 246752 246752 . offset 0003c3e0

Last script line before the error or that produced the error:
147 get CHUNK_END_OFFSET longlong TOC_FILE
  • Author
  • Localization

huckleberrypie, posted Sat Aug 22, 2020 7:52 am (58275)


Anyone how to unpack the pak file off Samurai Jack: Battle Through Time? I tried umodel and it's asking me for an AES key.
  • Author
  • Localization

spiritovod, posted Sat Aug 22, 2020 8:58 pm (58284)


@pipoman: Basically this error means that index (TOC) was not decrypted properly, due to wrong key or additionally obfuscated index. But in this particular case I believe that game has non-standard encryption, so the key is useless as is. I've added more info in rin topic, but please reply either here or there, not in both topics simultaneously. It's very confusing.

@huckleberrypie: You can find the key in the list from my signature.

Update:
@TNT: I checked, but could not reproduce the issue you've talked about. Pak extraction doesn't depend on paths to the pak / script in this case. The only possible explanation is that you've encountered system path limit somehow (full path to a file can't be more than 248 characters by default).
  • Author
  • Localization

sinnerclown380, posted Sun Aug 23, 2020 3:12 pm (58297)


Griefhelm AES key pls.
  • Author
  • Localization

spiritovod, posted Sun Aug 23, 2020 4:00 pm (58301)


@sinnerclown380: It's not encrypted, just use latest bms script from my signature.
  • Author
  • Localization

sinnerclown380, posted Sun Aug 23, 2020 5:00 pm (58304)


spiritovod wrote:
@sinnerclown380: It's not encrypted, just use latest bms script from my signature.

Thanks bro.
  • Author
  • Localization

yusuf2020, posted Wed Aug 26, 2020 9:53 am (58359)


huckleberrypie wrote:
Anyone how to unpack the pak file off Samurai Jack: Battle Through Time? I tried umodel and it's asking me for an AES key.

i can unpack it and repack it AES KEY IS 0x8E0A631576F6CBE340BF039C7C5BB8632E6FDC1082E019B646B44B2846C96855 you can already repack it without encrypting
  • Author
  • Localization

RegaFox, posted Mon Aug 31, 2020 4:31 pm (58461)


hello. i'm having little luck with the file LostEmber-WindowsNoEditor.pak

it gives me 15 options and none of them are valid.

Code:
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)
  • Author
  • Localization

spiritovod, posted Mon Aug 31, 2020 7:26 pm (58464)


@RegaFox: You can find the key in the list from my signature.

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

Conan Exiles specific script added to the scripts bundle. Required key is added to the list as well (only DLCs are encrypted though).
Update: After quick test it appeared that the script works fine will all game paks.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.