Modder Base
Packing PAK files with compression support (using UnrealPak.exe) - Printable Version

+- Modder Base (http://modderbase.com)
+-- Forum: Street Fighter V (http://modderbase.com/forumdisplay.php?fid=1)
+--- Forum: Tools, Tutorials & Resources (http://modderbase.com/forumdisplay.php?fid=5)
+--- Thread: Packing PAK files with compression support (using UnrealPak.exe) (/showthread.php?tid=834)



Packing PAK files with compression support (using UnrealPak.exe) - FluffyQuack - 06-23-2019

Download: https://mega.nz/#!VVlwwCLL!TDBl3WBB2uEHKFhiXpLdynRZ6irUiLW82HmltmoTW8M

UnrealPak.exe is an official tool created by Epic as part of Unreal Engine 4. It was discontinued a couple of years ago, but it still creates PAK files which are compatible with seemingly any UE4 game (of the ones I've tested, anyway). And unlike other PAK creation tools I've found, this one can create compressed PAK files, which results in much smaller filesizes and, according to official UE4 documentation, faster loading.

Usage:
- Create a folder with mod contents (folder should be the name of the mod, and inside that should be the base folder for the game).
- Drag'n'drop the folder onto one of the batch files to create a PAK file.

There's also a batch file for unpacking unencrypted PAK files, but note that UnrealPak.exe ignores the base path for a PAK file during extraction, so chances are high you won't get the full path this way. It's recommended you use another tool for PAK unpacking.

Edit: I noticed the tool will sometimes create a bunch of INI files at "..\..\Engine" and unfortuantely I couldn't find a way to modify that behaviour. I think these are created because the tool is hardcoded to be used from a UE4 project folder, but you can safely delete the INI files if they're created.

I also realized the tool isn't discontinued (I thought that was the case as I couldn't find it in the latest UE4 source code), but you get it if you download the latest UE4 development kit. I couldn't figure out all the dependencies for the newest version for it to function anyway, and I also don't know if the latest version would create PAK files compatible with older games.


RE: Packing PAK files with compression support (using UnrealPak.exe) - FluffyQuack - 06-26-2019

Updated the download link with a fix to the packing batch files. If you never had any issues, then you don't need the new version, but if you ever run into an issue where it says "Unable to create pak file" then you should download the new version.


RE: Packing PAK files with compression support (using UnrealPak.exe) - robhal - 07-02-2019

Come up with an idea of combining all Capcom's title update pak files into one big pak file, and thanks to the UnrealPak (which is discovered by @FluffyQuack, you're awesome bro) that can create compressed pak file which is a big saving compared to the normal uncompressed pak file (in my case here, 660 MB vs 2 GB), I try to make the AIO version of Capcom's title update from v4.021 to v4.060. I test the newly created pak file in game and all seems working just fine.

Here is the download link for that pak file if you guys want to try it
https://mega.nz/#!9EIGSK4L!2Jb0FOCS40KehTiuCdyGsdAhfJdwW4VG6ONgO2prWjM

EDIT: I also make the new thread for this "AIO version of Capcom's title update from v4.021 to v4.060" so it (and also this thread) has more exposures.


RE: Packing PAK files with compression support (using UnrealPak.exe) - AndiRatze - 11-20-2019

Hey Fluffyquack

How did you mod Terminator Resistance? Can you tell me that please, i want moddimg this game but i cant unpack and repack the pak files. Please help me :-)


RE: Packing PAK files with compression support (using UnrealPak.exe) - FluffyQuack - 11-20-2019

(11-20-2019, 02:36 AM)AndiRatze Wrote: Hey Fluffyquack

How did you mod Terminator Resistance? Can you tell me that please, i want moddimg this game but i cant unpack and repack the pak files. Please help me :-)

Is the game using UE4? If so, the PAK files are probably encrypted. You'll have to wait for someone to figure its encryption key.


RE: Packing PAK files with compression support (using UnrealPak.exe) - wyruzzah - 11-24-2019

(11-20-2019, 06:34 PM)FluffyQuack Wrote:
(11-20-2019, 02:36 AM)AndiRatze Wrote: Hey Fluffyquack

How did you mod Terminator Resistance? Can you tell me that please, i want moddimg this game but i cant unpack and repack the pak files. Please help me :-)

Is the game using UE4? If so, the PAK files are probably encrypted. You'll have to wait for someone to figure its encryption key.


Game is not encrypted. Sorry he probably asking you, because i gave credit for your utility.. here https://www.nexusmods.com/terminatorresistance/mods/1

(11-20-2019, 02:36 AM)AndiRatze Wrote: Hey Fluffyquack

How did you mod Terminator Resistance? Can you tell me that please, i want moddimg this game but i cant unpack and repack the pak files. Please help me :-)

You will need this tools:

https://aluigi.altervista.org/papers/quickbms.zip : For unpacking .pak files
https://zenhax.com/download/file.php?id=7513 : Script for quickbms above

https://www.gildor.org/down/45/umodel/umodel_win32.zip : For viewing .pak files.. use unreal engine 4.22 override
http://modderbase.com/showthread.php?tid=834 : For packing your edited files to .pak file (use this instead what is in tutorial video below)

https://docs.unrealengine.com/en-US/GettingStarted/Installation/index.html : For creating your edited files in right format (.uasset, .ubulk, .uexp), but for this game is needed UE4 4.22.3.. different version gives error in game.

Here is tutorial https://www.youtube.com/watch?v=keCO3hH5uzI : Its for different game, but also works for T:Resistance and probably all UE4 games (Star Wars: Fallen Order etc.)