Packaging contents with UnrealPak for UE 5.1 game

So I’ve been trying to package a few game folders into a .pak file using UnrealPak from UE 5.1 and keep encountering the same error, the game was made using UE 5.1 so It’s definitely the correct version. I’m using a text file pointing to the folders I want to pack also, if anyone has an idea on how to fix this it would be appreciated, I’ll leave the error message as well as the command I used.

COMMAND:

“Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealPak.exe” C:\Users\User\Downloads\Export\DoubleClutch-WindowsNoEditor.pak -Create=C:\Users\User\Desktop\3s\dataToPack.txt

ERROR MESSAGE:

LogWindows: Error: appError called: Assertion failed: Pair.Info.IsDeleteRecord() || Pair.Info.IndexDataEquals(EncodedEntry) [File:D:\build++UE5\Sync\Engine\Source\Developer\PakFileUtilities\Private\PakFileUtilities.cpp] [Line: 1996]

LogWindows: Error: === Critical error: ===
LogWindows: Error:
LogWindows: Error: Assertion failed: Pair.Info.IsDeleteRecord() || Pair.Info.IndexDataEquals(EncodedEntry) [File:D:\build++UE5\Sync\Engine\Source\Developer\PakFileUtilities\Private\PakFileUtilities.cpp] [Line: 1996]
LogWindows: Error:
LogWindows: Error: [Callstack] 0x00007ffbe0eb70f4 UnrealPak-PakFileUtilities.dll!VerifyIndexesMatch()
LogWindows: Error: [Callstack] 0x00007ffbe0eb776a UnrealPak-PakFileUtilities.dll!WritePakFooter()
LogWindows: Error: [Callstack] 0x00007ffbe0e9a875 UnrealPak-PakFileUtilities.dll!FPakWriterContext::Flush()
LogWindows: Error: [Callstack] 0x00007ffbe0e9747d UnrealPak-PakFileUtilities.dll!ExecuteUnrealPak()
LogWindows: Error: [Callstack] 0x00007ff68d91be27 UnrealPak.exe!wmain()
LogWindows: Error: [Callstack] 0x00007ff68d91ce2c UnrealPak.exe!__scrt_common_main_seh()
LogWindows: Error: [Callstack] 0x00007ffc256b7344 KERNEL32.DLL!UnknownFunction
LogWindows: Error: [Callstack] 0x00007ffc25e026b1 ntdll.dll!UnknownFunction


aCapture

Same problem! You should keep all files under the “PAK FOLDER” have unique name.

The error you’re encountering during the packaging process with UnrealPak appears to be related to an assertion failure in the PakFileUtilities.cpp file, specifically in the VerifyIndexesMatch function. This type of error often indicates an issue with the integrity of the file indexes during the packing process. Here are a few steps you can follow to troubleshoot and resolve this issue:

  1. Check the File Paths: Ensure that all file paths specified in your dataToPack.txt are correct and accessible. Any missing or incorrect paths can cause issues during the packaging process.

  2. Verify the Text File Format: Make sure your dataToPack.txt is formatted correctly. Each line should specify a file or directory to include, and it should be in the correct format expected by UnrealPak. For example:
    “…/…/…/…/Game/Content/FolderToInclude” “…/…/…/…/Content/FolderToInclude”

  3. Validate File Permissions: Ensure that UnrealPak has the necessary permissions to read the files and directories listed in dataToPack.txt.

  4. Update Unreal Engine: Ensure that you have the latest updates for Unreal Engine 5.1. Sometimes, bugs are fixed in newer patches.

  5. Check for Corrupted Files: Verify that none of the files you are trying to package are corrupted. You can try repackaging a subset of files to see if the error persists.

  6. Simplify the Data File: Test with a minimal dataToPack.txt that includes only a few files or directories to isolate if a specific file or path is causing the issue.

  7. Run UnrealPak with Logging: Use additional logging options with UnrealPak to get more detailed output, which might provide more insights into what is going wrong. For example:

bash

Copy code

"Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealPak.exe" C:\Users\User\Downloads\Export\DoubleClutch-WindowsNoEditor.pak -Create=C:\Users\User\Desktop\3s\dataToPack.txt -verbose
  1. Check for Special Characters: Ensure that there are no special characters in the file paths or filenames that might be causing issues.
  2. Consult Documentation and Forums: Check the Unreal Engine documentation and forums for any similar issues reported by other users. Sometimes, specific solutions or patches are discussed in community forums.

Here’s a revised version of your command with added verbosity for better logging:

bash

Copy code

"C:\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealPak.exe" C:\Users\User\Downloads\Export\DoubleClutch-WindowsNoEditor.pak -Create=C:\Users\User\Desktop\3s\dataToPack.txt -verbose

If these steps do not resolve the issue, please share more details about the contents of dataToPack.txt and any specific file paths or configurations you are using. This will help in providing a more targeted solution.