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 »

@Durandil67: pak files with 4.26+ format can be created only with native unrealpak tool - you can read more about it at the very bottom of my base post. ucas/utoc files can be created only via Unreal Editor at the moment, but it's useless by design (for modding purposes), so you should stick with paks.

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

Base post was reworked: "latest" script package is renamed to 0.4.25, since it's not the latest for quite some time; two 0.4.26 scripts are now merged into single 0.4.27 script, which supports paks from 4.26/4.27/UE5 games (there is already UE5 demo game in steam); related references are modified to reflect those changes.
Durandil67
Posts: 4
Joined: Mon Oct 04, 2021 12:08 pm

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

Post by Durandil67 »

Thank you for your answer,

However I have tried all the custom_UE4_scripts bundle and none none succeeded, I got the following errors:

Code: Select all

Error: incomplete input file -10:
       Can't read 2 bytes from offset 00010f30.

Code: Select all

163 get CHUNK_OFFSET longlong TOC_FILE
  coverage file 0     0%   69477      66171768   . offset bf450000
  coverage file -5    0%   0          126        . offset 0000007e
  coverage file -10 100%   69424      69424      . offset 00010f30


Maybe because this is a recent game (efootball 2022) that I try to mod, the script needs to be adapted specifically to this game?
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 »

@Durandil67: Please read my previous post again, for now it seems you don't quite understand what you're doing. Neither any of UE4 scripts works for reimport, nor custom scripts are compatible with 4.26+ games. Also, I'm not sure about modding possibilities for this particular game, since it's using custom global context name and Fox Engine resources along native UE4 assets (though you should be able to add mods for resources stored in paks).
Last edited by spiritovod on Thu Oct 07, 2021 2:21 pm, edited 2 times in total.
Durandil67
Posts: 4
Joined: Mon Oct 04, 2021 12:08 pm

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

Post by Durandil67 »

Yes sorry I'm still just a newbie about all this Unreal stuff. If I understand correctly it's currently impossible to export/reimport assets & data for this game right?

You're right there are fox engine resources in this game too, I will surely do my modding research on this side that I know better for the moment. Thanks for your time and your answers!
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 »

@Durandil67: Um, no, like it was already said above, almost everything can be extracted with Fmodel/umodel as-is (specific umodel build can export 3d-modeling stuff as well) for native assets, cpk related assets can be modded with respective tools for previous eFootball games (I believe so) and UE4 assets can be partially modded (applied to pak contents, but not ucas). I don't know about modding ucas contents though, it's very dependent on game.

Note that this topic is about extraction of resources from UE4 packages in general and not suitable for discussing modding stuff, so it's better to ask such things at some game/series/modding related communities. A few posts and topics, which may be helpful, are linked at the end of my base post under "How to repack assets back in form of mods" section, but that's about all you can get from this topic, modding-wise.
TheJJMan
Posts: 19
Joined: Sun Sep 05, 2021 10:11 am

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

Post by TheJJMan »

Am currently trying to unpack the Legacy version of The Isle's .pak files but the key I'm using (from this website: https://cs.rin.ru/forum/viewtopic.php?t=100672) is giving me this (I have no idea what it's saying as I'm completely new to coding):

- please insert the content for the variable KEY:
0xA9F5BF918A059B41BBED653BB240F65CFBB4ECDCABF4784FE24DEFE7DF560464
KEY:

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

Last script line before the error or that produced the error:
160 get CHUNK_END_OFFSET longlong TOC_FILE
coverage file 0 0% 4803269 21331232197 . offset 0000000000000000
coverage file -10 100% 4802960 4802960 . offset 0000000000494990
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 »

@TheJJMan: You're probably using wrong script or wrong key, or both. I'm not familiar with the game, but apparently it's divided into two branches and Evrima branch (latest) is built with 4.26 engine, while you've used 4.25 script. Also, I've updated key for Evrima branch in that list, but not sure it's compatible with the latest game version - if it will not work too with proper script, you can request an update at rin forums (don't forget to provide required file for it, which is explained in the first post there).
ikyAhmad
Posts: 33
Joined: Mon Sep 13, 2021 12:44 am

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

Post by ikyAhmad »

how do i find this Script Script ?? The file I gave is just an example, I found it on Google.
guitutilo
Posts: 11
Joined: Fri Apr 16, 2021 7:56 pm

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

Post by guitutilo »

I want to translate the game "3 out of 10" and I verified that the PAK file is version 8.
I was able to open the PAK file and view the files using this tool: https://github.com/allcoolthingsatonepl ... ealPakTool
Then I tried to recompile with the same tool to see if it would work but it gave me an error.

I wonder if the method you have in this topic of opening the PAK and recompiling would work for version 8?
TheJJMan
Posts: 19
Joined: Sun Sep 05, 2021 10:11 am

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

Post by TheJJMan »

spiritovod wrote:@TheJJMan: You're probably using wrong script or wrong key, or both. I'm not familiar with the game, but apparently it's divided into two branches and Evrima branch (latest) is built with 4.26 engine, while you've used 4.25 script. Also, I've updated key for Evrima branch in that list, but not sure it's compatible with the latest game version - if it will not work too with proper script, you can request an update at rin forums (don't forget to provide required file for it, which is explained in the first post there).


Hi there! I tried using the 0.4.27 version of the script with the newest Evrima key, to be specific this one: 0xA71B039BE7E29DA6C9A90B386BF1C8808B36610F786591E3B236266157A44077

Yet it's giving me this when I try to unpack it? I feel like I'm making progress though lol:


The archive is encrypted, select the number of the key to use or type yours:
0: press RETURN for no encryption (Lineage 2 Revolution)

- please insert the content for the variable KEY:
0xA71B039BE7E29DA6C9A90B386BF1C8808B36610F786591E3B236266157A44077
KEY:

Error: incomplete input file -5:
Can't read 1121856837 bytes from offset 00000000001e3560.
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 -5 100% 1979744 1979744 . offset 00000000001e3560

Last script line before the error or that produced the error:
269 getdstring BASE_PATH NAMESZ TOC_FILE5
coverage file 0 0% 1979854 18147412082 . offset 0000000000000000
coverage file -5 100% 1979744 1979744 . offset 00000000001e3560
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 »

@ikyAhmad: It's a json parsed from native UE4 asset. You can do something like this with JohnWickParse or similar tools, considering that you have properly paired uasset+uexp. In case of PUBG stuff it's usually done manually, especially for latest versions.

@guitutilo: You can read a bit about repacking specifics at the end of my base post. In some cases games doesn't accept mod packs if they're created with the same package format (and require a legacy format) or named incorrectly.

@TheJJMan: Apparently it's outdated as well, as it was already said above. I don't have latest game version, so can't check it.
ikyAhmad
Posts: 33
Joined: Mon Sep 13, 2021 12:44 am

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

Post by ikyAhmad »

Hay spiritovod for pubg mobile lite version 0.22.0 now Encrypted, can you provide the Key?? I have asked on CS.rin.ru but no answer yet !!
Freeeee
Posts: 8
Joined: Sun Oct 10, 2021 5:01 am

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

Post by Freeeee »

Hello @spiritovod , I scan all the forum but there is nothing specific to it so I need to ask it here Is there any tool to extract fonts from ue4 games . I can see the fonts in uasset & uexp format but saving packages and manual conversation to .ttf don't work. Is there any way to make them working or some special tool that is used to extract fonts.

If anyone else also know how to extract fonts help me pls.
ikyAhmad
Posts: 33
Joined: Mon Sep 13, 2021 12:44 am

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

Post by ikyAhmad »

@Freeeee Try using JhonWickParse, if you succeed let me know!! because I also learned about it.
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 »

@Freeeee: It depends on the game, but if font is stored in uasset/uexp, it's most likely bitmap font (i.e. texture). You need to extract and edit it and then import back. This is very huge topic to discuss, so it's better to search in some UE4 modding communities instead. I saw you've already create respective topic in Localization subforum, that's what I would recommend as well - you just need to provide more info there, like the game name and uasset+uexp files in question.
gladias9
Posts: 14
Joined: Wed May 20, 2020 12:48 am

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

Post by gladias9 »

*holds breath until Back 4 Blood bms script releases*
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 »

@gladias9: Nothing has changed since this post: viewtopic.php?f=9&t=1005&start=1840#p65708 (the bottom part of it), except that some kind people kindly reported that decrypted build and it got blocked. I don't own the full game, nor that I have plans for it, so it's better to wait some third-party solution.
fileaio
Posts: 4
Joined: Thu Oct 14, 2021 1:49 am

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

Post by fileaio »

Hi
Please help me finding the AES-256 decryption keys for Unreal Engine 4 encrypted pak file. I need for translating game. Thank somuch

Game D.r.u.g Dealer Simulator

Image

D.r.u.g DealerSimulator-Win64-Shipping.exe

https://mega.nz/file/KZ8C3aAA#HlrhOzjbYen13O-Z4Yu_EI8CwQFcjLTTg6XVsHCCDOU
TheJJMan
Posts: 19
Joined: Sun Sep 05, 2021 10:11 am

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

Post by TheJJMan »

Could I request a key here? I think Rin's layout is a bit more confusing imo