# Packaging contents with UnrealPak for UE 5.1 game

**URL:** <https://forums.unrealengine.com/t/packaging-contents-with-unrealpak-for-ue-5-1-game/1777630>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine\
**Created:** [March 29, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/packaging-contents-with-unrealpak-for-ue-5-1-game/1777630 "2024-03-29T14:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abotburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abotburger](https://forums.unrealengine.com/u/abotburger)\
**Post date:** [March 29, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/packaging-contents-with-unrealpak-for-ue-5-1-game/1777630/1 "2024-03-29T14:52:04Z")

</div>

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

 ![Capturem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/f/6bf4af19c806fcfd4eb69c40fedb11ee6db437ca.png)  
 ![aCapture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/0/300f23ea945f232bafe8e3be9deab647a6fdbc8a.png)  
 ![Captureee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/4/8246de96ac75bc9fbc6fd1c9ff7aa4d3db12b711.png)

---

<div class="post-metadata">

**Author:** ![cryplus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cryplus](https://forums.unrealengine.com/u/cryplus)\
**Post date:** [April 3, 2024, 10:33am UTC](https://forums.unrealengine.com/t/packaging-contents-with-unrealpak-for-ue-5-1-game/1777630/2 "2024-04-03T10:33:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![naomiferguson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@naomiferguson](https://forums.unrealengine.com/u/naomiferguson)\
**Post date:** [July 11, 2024, 1:01am UTC](https://forums.unrealengine.com/t/packaging-contents-with-unrealpak-for-ue-5-1-game/1777630/3 "2024-07-11T01:01:49Z")

</div>

> [@abotburger](#):
>
> 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

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

```auto
"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

```auto
"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.
