1. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    If I understand correctly your key is wrong. It doesn't pass size check.

    It checks if your key has the same size as defined AES key size. it doesn't, so it fails and exits with error.

    — Posts automatically merged - Please don't double post! —

    Code:
    if (EncryptionKeyBase64.Len() > 0)
    {
        TArray<uint8> Key;
        FBase64::Decode(EncryptionKeyBase64, Key);
    
        check(Key.Num() == sizeof(FAES::FAESKey::Key)); //This is where it fails
    
        FNamedAESKey NewKey;
        NewKey.Name = TEXT("Default");
        NewKey.Guid = FGuid();
        FMemory::Memcpy(NewKey.Key.Key, &Key[0], sizeof(FAES::FAESKey::Key));
        OutCryptoSettings.EncryptionKeys.Add(NewKey.Guid, NewKey);
    }
     
    Last edited by masagrator, Oct 7, 2020
  2. Johnboii

    Johnboii Newbie
    Newcomer

    Joined:
    Oct 7, 2020
    Messages:
    3
    Country:
    Germany
    thanks, ive done some research with the key i got. the key is a AES key. which like said works if i open the pak file via Unrealengine Viewer (gildor). So i assumed thats the correct key?

    also the pak file is 42 GB i hope thats not the issue
     
  3. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    Have you converted it to Base64 as I stated in tutorial? If you have pasted raw hex key, it won't work.
    If you think you have done everything correctly, DM me on Discord. Tagname is available in profile page.
     
  4. Johnboii

    Johnboii Newbie
    Newcomer

    Joined:
    Oct 7, 2020
    Messages:
    3
    Country:
    Germany
    ye i tried with base64 tool from a website and put that key in, same error.

    i sent u a pm on discord
     
  5. DoyenCZE

    DoyenCZE Newbie
    Newcomer

    Joined:
    Oct 16, 2020
    Messages:
    1
    Country:
    Austria
    file 1. check.cmd nothing write abou version, where is problem?
     
  6. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    You either don't have Python installed or don't follow tutorial correctly. Send screenshot of what it shows.
     
  7. Mythical

    Mythical GBAtemp Addict
    Member

    Joined:
    May 11, 2017
    Messages:
    2,016
    Country:
    United States
    lovely tutorial, I'm not using it on switch games, but it's still very helpful none the less
     
  8. destiny123

    destiny123 Newbie
    Newcomer

    Joined:
    Nov 16, 2020
    Messages:
    8
    Country:
    United States
    Modified and packaged the pak file, but how to convert it to obb format?
    I use rar to compress it, but it does not work
     
  9. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    This is tutorial for Nintendo Switch. You won't get help here with Android stuff
     
  10. destiny123

    destiny123 Newbie
    Newcomer

    Joined:
    Nov 16, 2020
    Messages:
    8
    Country:
    United States
    LogPakFile: Display: Loading response file C:\Users\ly\Downloads\UnrealPakSwitchv6\UnrealPakSwitch\lista.txt
    LogPakFile: Display: Added 15835 entries to add to pak file.
    LogPakFile: Display: Collecting files to add to pak file...
    LogPakFile: Display: Collected 31761 files in 2.38s.
    LogPakFile: Display: Creating pak ../../../newpak.pak.
    LogPakFile: Warning: Missing file "../../../LogPakFile: Display: Mount point ../../../UnrealPakSwitch/Engine/Programs/UnrealPak/Saved/Logs/UnrealPak.log" will not be added to PAK file.
    LogPakFile: Warning: Missing file "../../../LogPakFile: Display: Using command line for crypto configuration" will not be added to PAK file.
    LogPakFile: Warning: Missing file "../../../LogPaths: Warning: No paths for game localization data were specifed in the game configuration." will not be added to PAK file.
    LogPakFile: Display: DISABLING pak file index freezing (all must be true: HasPlatformInfo? false - TargetIs64Bit? unknown - NoRuntimeUnloading? true - Unencrypted? true, '' != 'Windows')
    LogPakFile: Display: Added 31758 files, 2647071938 bytes total, time 292.77s.
    LogPakFile: Display: Compression summary: 40.41% of original size. Compressed Size 1951116192 bytes, Original Size 4827807021 bytes.
    LogPakFile: Display: Used compression formats (in priority order) 'Zlib, '
    LogPakFile: Display: Encryption - DISABLED
    LogPakFile: Display: Unreal pak executed in 296.011590 seconds


    This is the prompt when I try to pack, I am not sure if it is abnormal...
     
  11. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    Read tutorial again. This log shows exactly what you have done wrong.
     
  12. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    932
    Country:
    Colombia
    I have tried to unpack FUSER with your decryption key, but it gives a lot of errors. Could you help me find the encryption key for FUSE? I already tried your method with IDA and ghidra, but I don't have ARM and Arch64 architecture and in Windows 10 it tells me that it is incompatible.
     
  13. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    ?
    I understand in IDA, but in ghidra is included by default. And it's compatible with W10, even SciresM is using it on Windows. Have you installed ghidra switch loader? Last release was compiled for Ghidra 9.1, 9.1.1 and 9.1.2

    I won't be explaining how ghidra and ida works. Already mentioned in tutorial you need to understand those tools beforehand. And I won't help with extracting keys except if it's using different UE4 version than 4.24.x (because I'm lacking info if there is any difference in other versions)

    And key provided by me was Faked. One key works only for one game, there is 0% chance it will work in other game. So it's obvious you will get errors.
     
    Last edited by masagrator, Nov 20, 2020
  14. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    932
    Country:
    Colombia
    Well, you say it needs an ARM64 / AArch64 architecture to decipher the key (I guess because it is the Switch architecture where it was compiled). I tried other languages like x86, x64 and I don't get any results looking for the HEX you provided in the tutorial.


    FUSER uses version 8.23, so the UE version is 4.24.X.
     
  15. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    why-but-why.gif

    Of course. There is no other way.

    I'm asking again

     
  16. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    932
    Country:
    Colombia
    Sorry, I had not read your message completely. I haven't, I'll try it right away.
     
  17. RanDart

    RanDart Member
    Newcomer

    Joined:
    Jan 7, 2016
    Messages:
    37
    Country:
    Italy
    I have problems while repacking. I did everything correctly. Why does it show this? How do i Fix it?

    LogWindows: Error: Fatal error: [File:C:/Users/spark/Desktop/UnrealEngine/Engine/Source/Developer/DerivedDataCache/Private/DerivedDataBackends.cpp] [Line: 89] LogWindows: Error: Unable to create backend graph using the default graph settings (DerivedDataBackendGraph) ini=../../../Engine/Programs/UnrealPak/Saved/Config/Windows/Engine.ini.

    Please Help me. Thank you in advance!
     
    Last edited by RanDart, Nov 23, 2020
  18. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    932
    Country:
    Colombia
    So I followed everything to the letter with the ghidra switch loader extension. It takes a long time to analyze Exefs main. Looking in Memory I didn't get something related to what it should have shown, just maybe 16 byte of the key. I can't find the other one or I don't know which one it is.

    Captura de pantalla (3).png
     
  19. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    932
    Country:
    Colombia
    Heck, I didn't expect it to work, but it did. Take the two 16 bytes of adrp (0x7106339000) and ldr (PTR_DAT_7106339158). I unite them, remove the spaces, convert them to Base64 (HEX to Base64), interset it in the crypto.json file, drag one of the pak files (the largest one) and wow !, it is extracting without errors.
    upload_2020-11-23_10-45-59.png

    upload_2020-11-23_10-46-23.png

    Thanks for this tool and your petty help! :bow:
     
    masagrator likes this.
  20. masagrator

    OP masagrator The patches guy
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,678
    Country:
    Poland
    Yeah, time depends on how fast your CPU is. UE4 games have one of biggest mains from all Nintendo Switch games, so for other UE4 games this is a norm.

    Hopefully "petty" wasn't used here in pejorative way. :ph34r:
     
Draft saved Draft deleted
Loading...

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