1. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    For v3 and lower you can use u4pak.py from here

    https://github.com/panzi/u4pak
     
    Thekingdom likes this.
  2. Thekingdom

    Thekingdom Newbie
    Newcomer

    Joined:
    Apr 22, 2020
    Messages:
    4
    Country:
    China
    Thank you,masagrator

    Its works with UE4 4.15.3 :wub:
     
  3. MegaSuperab2

    MegaSuperab2 Gamer with a knack for modding
    Member

    Joined:
    May 8, 2016
    Messages:
    424
    Country:
    United States
    I tried using this on the latest version of the Ninjala Exclusive Ninja Club and I got this error. It worked fine when using an older version of the game last month so I don't know what's going on here.
     

    Attached Files:

  4. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    As it says - they probably encrypted pak file.
    You can try quickbms to check if it will ask for decryption key.
     
  5. switchhunter666

    Newcomer

    Joined:
    Mar 2, 2020
    Messages:
    33
    Country:
    United States
    i keep getting this on the outer worlds pak ver 8. Unable to find a module or plugin for compression format lz4
     
    ZeroFX likes this.
  6. IgelRM

    IgelRM Newbie
    Newcomer

    Joined:
    Jun 19, 2020
    Messages:
    1
    Country:
    Germany
    Hi masagrator, I understand you mean to only support Switch UE4 games but your instructions are useful in general.

    Creating correct mounting points seems quite troublesome so your method with the sub-folders is handy. I was able to mod Grounded, but I don't want to derail the thread.
     
  7. Hayro

    Hayro Advanced Member
    Newcomer

    Joined:
    Oct 17, 2016
    Messages:
    83
    Country:
    France
    Has anyone managed to import DBFZ mods from PC to Switch with this tutorial?
    edit : Nevermind, thanks for the tutorial
     
    Last edited by Hayro, Jul 22, 2020
  8. hannan7ahmed

    hannan7ahmed Newbie
    Newcomer

    Joined:
    Aug 15, 2020
    Messages:
    2
    Country:
    India
    H
     
    Last edited by hannan7ahmed, Aug 24, 2020
  9. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    This tutorial is meant only for Nintendo Switch. I don't provide support for any other platform.
     
  10. hannan7ahmed

    hannan7ahmed Newbie
    Newcomer

    Joined:
    Aug 15, 2020
    Messages:
    2
    Country:
    India
    Thanks
     
    Last edited by hannan7ahmed, Aug 24, 2020
  11. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    Example
     
  12. MrVtR

    MrVtR GBAtemp Regular
    Member

    Joined:
    Sep 30, 2017
    Messages:
    229
    Country:
    Brazil
    Hi, I'm trying to use the script to unpack Bravely Default II Demo(From Square Enix),I checked the .pak version and it's the v8.23,I installed UE4 4.21.2 and copied the DLL and .exe files to the correct folder on my Desktop.When I dragged the .pak file to unpack,it show me this error,u know what this is about? I was able to unpack Octopath Traveler here a few minutes ago with "unpack-v8-23.cmd" too

    Print.PNG
     
  13. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    ?

    Next time read tutorial again.
     
  14. MrVtR

    MrVtR GBAtemp Regular
    Member

    Joined:
    Sep 30, 2017
    Messages:
    229
    Country:
    Brazil
    I didn't find 4.24.1 build on Epic Games to download,so that means that I have to install via third party,right?
     
    Last edited by MrVtR, Sep 25, 2020
  15. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    Micro version doesn't matter. When I was writing it newest version was 4.24.1, from what I see on github now it's 4.24.3, so just download that on Epic Launcher.
     
    MrVtR likes this.
  16. MrVtR

    MrVtR GBAtemp Regular
    Member

    Joined:
    Sep 30, 2017
    Messages:
    229
    Country:
    Brazil
    Alright,thx for the reply,I'll download the right one here
     
  17. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    It looks like some UE4 games added encrypted pak (for example Ninjala and Five Nights at Freddy's: Help Wanted).
    I will update tutorial soon how to unpack encrypted files. I will not provide tutorial how to dump keys because I don't know for now how to do that. Atmosphere debugging module that will come maybe in next year will make that possible.

    For now if your game you want to decrypt is also on PC, there is a high chance PC and Switch releases are using the same key (confirmed that Five Nights at Freddy's: Help Wanted is using the same key. quickbms crashes when trying to unpack its pak, but UnrealPak 8.23 works flawlessly)

    Code:
    D:\Pack\UnrealPakSwitch2>v8.23\2\3\UnrealPak.exe D:\Pack\UnrealPakSwitch2\freddys-Switch.pak -test -cryptokeys=D:\Pack\UnrealPakSwitch2\crypto.json
    LogModuleManager: Warning: ModuleManager: Unable to load module 'PlatformCrypto'  - 0 instances of that module name found.
    LogModuleManager: Warning: ModuleManager: Unable to load module 'PlatformCryptoOpenSSL'  - 0 instances of that module name found.
    LogPakFile: Display: Parsing crypto keys from a crypto key cache file
    LogPakFile: Display: Checking pak file "../../../freddys-Switch.pak". This may take a while...
    LogPakFile: Display: Pak file "../../../freddys-Switch.pak" healthy, 37531 files checked.
    LogPakFile: Display: Pak file "../../../freddys-Switch.pak" checked in 122.55s
    LogPakFile: Display: Unreal pak executed in 122.642223 seconds
     
    Last edited by masagrator, Oct 2, 2020
    ShroomKing and MrVtR like this.
  18. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    Ok, found a way how to extract decryption key. So I will make tutorial how to get it in simple terms (you need knowledge of how to extract main from exefs and how to load it to IDA or Ghidra) and update package with bats for unpacking encrypted packages. Here is screen with tested Ninjala pak file from newest version which has encrypted index upload_2020-10-3_19-0-52.png

    Edit: Tutorial about extracting key is here:
    https://gbatemp.net/threads/how-to-extract-decryption-key-for-unreal-engine-4-pak-files.574916/
     
    Last edited by masagrator, Oct 3, 2020
    mattyxarope likes this.
  19. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    4,051
    Country:
    Poland
    Updated package and tutorial to support unpacking paks with encrypted index.
     
    ShroomKing likes this.
  20. Johnboii

    Johnboii Newbie
    Newcomer

    Joined:
    Oct 7, 2020
    Messages:
    3
    Country:
    Germany
    hi im trying to unpack a decrypted .pak file i did the requirements installed all the programs (still have UE installed)
    pak should have version 4.25.3 check didnt work but pak opens with (UE viewer on that certain version)

    ive put the .pak file and (UnrealPak.exe (+ other files)) into UnrealPakSwitch\v9\2\3\
    put the crypto key into the .json file and replaced DUMMY

    now to the problem, when i run unpack-encrypted-v9.cmd, i get the following error (see screenshot)

    i also dont know where this C:/Users/spark/Desktop/UnrealEngine/Engine/Source/Developer/PakFileUtilities/Private/PakFileUtilities.cpp
    path is from

    im real noob on this subjects so im lost looking for help, ty in advance
     

    Attached Files:

Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - unpack, repack, Unreal