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

mage200, posted Sun Jul 05, 2020 7:51 pm (57455)


anyway to decompile uplugin

please help me its importent.
  • Replies 2.3k
  • Views 579
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

Pepita, posted Sun Jul 05, 2020 10:03 pm (57456)


Can someone check out "Port Royal 4"

Would be nice, if I can import files as well.

It is "FUK" as ending, but it uses a Win64-Shipping.dll so it uses some kind of Unreal Engine for sure?

Uploaded example here:
https://mega.nz/file/PQxl0KyC#byEj7w8we ... R1R5X1Qv5Y
  • Author
  • Localization

spiritovod, posted Sun Jul 05, 2020 11:09 pm (57457)


@Pepita: https://blog.kalypsomedia.com/en/port-royale-4-faq/ -> "What engine does Port Royale 4 use?". You can take a look at this topic, maybe format is still the same.
EOS SDK dll is Epic Online Services library, used by EGS in games from the store (like steam_api.dll in steam games).


@mage200: You can't just open uproject in Unreal Editor, because all assets in pak archive are "cooked" (serialized) and editor doesn't understand them. If you need only models, use umodel.
And what do you mean by decompiling uplugin? This file is plain text config for UE4 plugin, used by the game (like ini file). You can change some options in it, but most of them will be ignored, since plugin's code is being compiled into main game executable (except some third-party libraries) and most of their parameters are hardcoded in the process. At least, I never saw someone using this stuff for mods or anything.
  • Author
  • Localization

mage200, posted Mon Jul 06, 2020 6:00 am (57459)


hmm becuse i am using that script and its created a uproject file
so i when i run and disable the plugins , and unreal engine show empty folders
maybe its becuse of the plugins that what i think maybe you know why is that?

well after review the executable i see its unreal engine 4.17.2
however i guess its from the source himself becuse i see this line maybe becuse of that the asset refust to show ?
check the photo please
  • Author
  • Localization

spiritovod, posted Mon Jul 06, 2020 10:00 am (57462)


@mage200: You're trying to do impossible. Please understand that
spiritovod wrote:
You can't just open uproject in Unreal Editor, because all assets in pak archive are "cooked" (serialized) and editor doesn't understand them. If you need only models, use umodel.
  • Author
  • Localization

Bafteam, posted Fri Jul 10, 2020 11:20 am (57538)


I used this instruction to pack back to the .pak archive

https://gbatemp.net/threads/how-to-unpa ... es.531784/

But I do not understand these actions:

4.2. For Find what: paste
Code:
" offset: (.*)$
Replace with:
Code:
"
Click Replace All

When all my lines look like this:

cove_sequencer.uasset" offset: 0, size: 13248 bytes, sha1: 45D1F87013C099A1B33CADDE00B0D5DD6DA0A889.

I need to replace strings like this

" offset: 0, size: 13248 bytes, sha1: 45D1F87013C099A1B33CADDE00B0D5DD6DA0A889.

on this

"
?
  • Author
  • Localization

spiritovod, posted Fri Jul 10, 2020 11:59 am (57539)


@Bafteam: If you need to use unrealpak, I suggest more simple solution - like this one. And also read this post, it may help you as well.
  • Author
  • Localization

Bafteam, posted Fri Jul 10, 2020 3:59 pm (57540)


spiritovod wrote:
@Bafteam: If you need to use unrealpak, I suggest more simple solution - like this one. And also read this post, it may help you as well.

Thank you, but I figured out the link that I threw off. The problem is different, the game has an archive check, the game gives an archive check error at startup, if you just repack the .pak file back to the obb. You do not know what to rely on in the .so library when searching for verification?
  • Author
  • Localization

GabrielProudmore, posted Fri Jul 10, 2020 5:36 pm (57541)


Question: Is there a way for unpack Movie or CG when they are in the the .pak? I am trying to unpack the Samurai Showdown Intros, because they are movie, not textures as I open and search every archive using the UE Viewer and hadn't not see anything like what the movies in-game look like.
  • Author
  • Localization

spiritovod, posted Fri Jul 10, 2020 8:26 pm (57544)


@GabrielProudmore: umodel doesn't support some assets, usually present in game archives (maps, movies, scripts, localization files and others), that's why you can't see them. Simply extract all assets from paks with quickbms and latest UE4 bms script and you'll find movies around SamuraiShodown\Content\Movies - but only if they're pre-rendered.

@Bafteam: So you're 100% sure that you packed it back correctly, right? Well, it's not an easy question even for pc games. I was planning to dig into that after I'm done with aes keys on android, but here are some thoughts (valid for ue4 games on pc):
1) For almost all games you can't repack base pak, only add modded one, usually with archive version less than used by the game (probably because checksum is being integrated in main binary during compilation). And you should also pay attention, if original game archive has standard format or not.
2) There is such thing as signing. I don't have an idea how it's implemented on android, but on pc it's possible to re-use existing signature, because UE4 only validates signature itself, not the related pak integrity (unless specific check is added manually). Though I can't remember if I even saw signed pak on android.
3) It's worth to check UE4 source code for responsible parts (IPlatformFilePak and SignedArchiveReader) to find out is that error belongs to UE4 core or it's due to additional changes by devs - btw, you can find out where this error is occurring by searching for the string in libUE4.so via IDA or something. If it's from core part, there is high possibility that you've messed up with the pak, since those checks are mostly to prevent a game using incompatible/broken archives.
4) If the error is not from UE4 core, it may belong to side checks (especially on android, since UE4 is present as library there). In that case this check can be anywhere - in main classes, other libraries, etc.

Actually, basic check for this kind of stuff would be simple repacking original assets without modifications. But even before that I would try to create mods instead of repacking the whole archive and check it out.
  • Author
  • Localization

Bafteam, posted Fri Jul 10, 2020 9:01 pm (57545)


spiritovod wrote:
@GabrielProudmore: umodel doesn't support some assets, usually present in game archives (maps, movies, scripts, localization files and others), that's why you can't see them. Simply extract all assets from paks with quickbms and latest UE4 bms script and you'll find movies around SamuraiShodown\Content\Movies - but only if they're pre-rendered.

@Bafteam: So you're 100% sure that you packed it back correctly, right?

I repackaged the original .pak file without any changes, took it from the obb and threw it back and the game says that it cannot find the files to download.
  • Author
  • Localization

spiritovod, posted Mon Jul 13, 2020 11:46 pm (57575)


AES keys finder for mobile UE4 games added to the base post: viewtopic.php?f=9&t=1005&p=56251#p56251

Please note that this is just POC (proof of concept) and due to its brute-forcing nature it works much longer than usual finder for pc games (up to 40 minutes). I know that there are more proper and optimized ways to do the same thing out there, but it's out of my league. At least, this solution is user friendly and doesn't involve debugging or third-party software, except JRE.
I'm not going to work on it in near future, except fixing possible critical bugs and adding support for custom paks. Feel free to leave your feedback on rin forums though.
  • Author
  • Localization

spiritovod, posted Wed Jul 22, 2020 10:55 pm (57734)


Specific scripts bundle updated with Dragon Quest XI script (thanks to infogram) and also with the fix for some additionally xored normals from the game (more about the issue in this topic).
You can find the bundle in the base post: viewtopic.php?f=9&t=1005&p=56251#p56251
  • Author
  • Localization

spiritovod, posted Mon Jul 27, 2020 8:53 am (57783)


@runa_g7: You can find it in the list now.
  • Author
  • Localization

runa_g7, posted Mon Jul 27, 2020 2:32 pm (57784)


@spiritovod Thanks!
  • Author
  • Localization

zeaofsuos, posted Fri Jul 31, 2020 4:42 am (57822)


ADMIN, DELETE.
  • Author
  • Localization

spiritovod, posted Fri Jul 31, 2020 1:27 pm (57826)


@zeaofsuos: Game archives are not encrypted. If you're looking for passcode, the default one is fine (xiB6LnPxcxIDl2CrCJC7eBnZ1wQXvjNm), though it works only on the base game and some early patches.
  • Author
  • Localization

zeaofsuos, posted Fri Jul 31, 2020 7:14 pm (57834)


ADMIN, DELETE.
  • Author
  • Localization

spiritovod, posted Fri Jul 31, 2020 7:26 pm (57835)


@zeaofsuos: That's strange. Last time I've checked the game all was fine by default. Try latest UE4 bms script from my signature, if it will not work, use filecutter script on any pak and upload resulting files here.
  • Author
  • Localization

zeaofsuos, posted Fri Jul 31, 2020 8:10 pm (57837)


ADMIN, DELETE.
  • Author
  • Localization

spiritovod, posted Fri Jul 31, 2020 11:51 pm (57838)


@zeaofsuos: Thanks, Days Gone script added to specific scripts bundle (see my signature). Also, current umodel version is supporting it by default with corresponding override option.
  • Author
  • Localization

zeaofsuos, posted Sat Aug 01, 2020 3:17 am (57843)


ADMIN, DELETE.
  • Author
  • Localization

Shawolf, posted Sat Aug 01, 2020 11:51 am (57849)


[deleted, my bad]
  • Author
  • Localization

spiritovod, posted Sat Aug 01, 2020 12:55 pm (57850)


@Shawolf: Please return back when you'll understand what you're actually doing. This topic is for actual problems, for the rest you have google. Spamming all related topics here and other resources (like gildor's forums) will not help you either.
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.