UE 4.24 Patch generation problem in encrypted project

Hi everyone! :slight_smile:

I have the encrypted game project (In Project Settings the flag “Encrypt Pak ini files” is checked)
When I try to make a patch - I have the error:
*BUILD FAILED

LogWindows: Error: === Critical error: ===
LogWindows: Error:
LogWindows: Error: Assertion failed: Key [File:D:/Build/++UE4/Sync/Engine/Source/Developer/PakFileUtilities/Private/PakFileUtilities.cpp] [Line: 1424]
LogWindows: Error:
LogWindows: Error:
LogWindows: Error:
LogWindows: Error:
UnrealPak terminated with exit code 3
ERROR: UnrealPak failed
(see C:\Users\avar\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Unreal+UE_4.24\Log.txt for full exception trace)
AutomationTool exiting with ExitCode=1 (Error_Unknown)*

If the flag “Encrypt Pak ini files” is unchecked - the patch is generated without any problems.

I will be glad for any help or advise.

Thanks!

I’ve got the same issue.

Without using .pak files, the patch is generated. With .pak files being used, I get the same error.

My project is on UE 4.23, and the base release is packaging just fine, it’s just the patch that hangs.

Little bump because we run into the same issue, after upgrading from 4.22 to 4.24. We haven’t found a solution yet.

Just checked, this happens in a clean project.
I created a new project (4.24), c++, shootertemplate and it raises the exact same assertion.

Will check with 4.25, and if it it still throws the error, to the bugsection we go.

I fixed it, just need to add an option -PatchCryptoKeys=“your Crypto.json”.
obviously this is a bug :slight_smile:

Yup it is. See (and vote)

PS: where did you add it? Is it enough to add it to the cmd when running UAT from the commandline?

EDIT: Issue found, and pullrequest created. https://github.com/EpicGames/UnrealEngine/pull/6925