How to unpack and repack Unreal Engine 4 files

Discussion in 'Switch - Tutorials' started by masagrator, Feb 19, 2019.

  1. ecl0674

    ecl0674 Newbie

    Newcomer
    2
    Feb 7, 2019
    Russia
    Problem with Dragon Quest XI Demo. v4 pak and says "This compression type not supported". I found this script for quickbms https://pastebin.com/RePzSkST but also doesnt work =(
     
  2. masagrator
    OP

    masagrator File digger

    Member
    9
    Oct 14, 2018
    Poland
    They modified zlib compression for smaller files. Probably as some type of encryption.
    https://zenhax.com/viewtopic.php?f=9&t=12413

    It still can unpack bigger zlib files and smaller not compressed files.
     
  3. gbouzab

    gbouzab Newbie

    Newcomer
    1
    Aug 23, 2019
    United States
    Trying to unpack a .pak "pakchunk0-WindowsNoEditor.pak" file with v7 gives me the following Error:

    LogPaths: Warning: No paths for game localization data were specifed in the game configuration.
    LogInit: Warning: No paths for engine localization data were specifed in the engine configuration.
    LogPakFile: Display: Using command line for crypto configuration
    LogWindows: Error: === Critical error: ===
    LogWindows: Error:
    LogWindows: Error: Assertion failed: Key.IsValid() [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\PakFile\Private\IPlatformFilePak.cpp] [Line: 195]

    Any clues why is it not working?
     
  4. masagrator
    OP

    masagrator File digger

    Member
    9
    Oct 14, 2018
    Poland
    Probably because it's encrypted (most Windows UE4 games are encrypted).

    For unpacking encrypted files better to use QuickBMS. Here is topic where you share exe of your game and someone maybe will extract encryption key (first better to search this topic because maybe it's already shared).
    https://zenhax.com/viewtopic.php?f=9&t=1005&start=1080


    You can use my tutorial to pack files or make patches, because there is no need for all pak files to be encrypted.
     
    Last edited by masagrator, Aug 23, 2019
  5. Luke94

    Luke94 Member

    Newcomer
    1
    Sep 2, 2016
    Poland
    Is it possible to make at least unofficially open source/freeware character mods for Fortnite Battle Royale? If that's so how to downgrade from season 10 into season 1? Are Lawbreakers and Radical Heights modable too, but abandoned just like unreal tournament 2016? Wasn't QuickBMS also used for extracting Sonic Generations PC files usually for game modding purposes.
     
    Last edited by Luke94, Aug 24, 2019
  6. yyoossk

    yyoossk Advanced Member

    Newcomer
    5
    Oct 18, 2017
    Japan
    LogPakFile: Warning: Missing file
     
  7. masagrator
    OP

    masagrator File digger

    Member
    9
    Oct 14, 2018
    Poland
    OK.
     
  8. Luke94

    Luke94 Member

    Newcomer
    1
    Sep 2, 2016
    Poland
    Is it possible to downgrade from season 10 into season 1? Anyway it seems I downloaded Fortnite Battle Royale from The Pirate Bay,but I can't run the game I was trying to open it even "as administrator"on my pc. Can you tell me how to extract and pack character models in Fortnite? You know as at least unofficial,open source,freeware character modding. I also heard some kid got lawsuit for showing on youtube some Fortnite modding tools,but I heard video was deleted. So it sounds very risky.
     
  9. Haku0011

    Haku0011 Newbie

    Newcomer
    1
    Sep 10, 2019
    Vietnam
    So what should i do with sig file? Patcher doesn't works if file don't have sig file.
     
    Last edited by Haku0011, Sep 10, 2019
  10. masagrator
    OP

    masagrator File digger

    Member
    9
    Oct 14, 2018
    Poland
    I didn't find any Switch game using sig file. If you are talking about PC, you are on your own.
     
  11. Yanda

    Yanda GBAtemp Regular

    Member
    3
    Aug 26, 2015
    I tried to unpack the DXM (demo) .pak file using this god tool.
    The extract seems to be successful, but the files are only .uasset and .uexp files.
    I wanted to read text data and parameters, but it is undecipherable.
    help...
    dxm1. dxm2. dxm3.
     
  12. masagrator
    OP

    masagrator File digger

    Member
    9
    Oct 14, 2018
    Poland
    Welcome to modding games. You won't get clean text files for everything.
    This is how they look like.
    Decide what you want exactly, because different things require different approach.

    For extracting parameters you can use JohnWickParse.
    For extracting text data - if it's .uasset & .uexp, then you won't find any tool because this means text files are custom. Standard for UE4 is .locres
     
    Last edited by masagrator, Sep 10, 2019
  13. Yanda

    Yanda GBAtemp Regular

    Member
    3
    Aug 26, 2015
    Thank you for good guidance. I almost achieved my goal.
     
Loading...