The rules by which chunks are created are ambiguous and currently do not ensure that both PakFileRules and PrimaryAssetLabel settings are reflected. In this sample, depending on the PrimaryAssetLabel setting, the PakFileRules setting is not reflected in some cases and is reflected in some chunks.
In this sample example, we are trying to override chunks 1-8 in PakFileRules, and in the PrimaryAssetLabel, only chunk ID=0 is specified. In this case, the only chunk created by packaging is 0.
On the other hand, if you change chunk ID=5 in the PrimaryAssetLabel, chunks 0-3 and 5 will be created. There appears to be no consistency here.
The following workaround code can be added to ensure that the PakFileRules settings are reflected.
Workaround:
//UE4/Release-4.27/Engine/Source/Programs/AutomationTool/Scripts/CopyBuildToStagingDirectory.Automation.cs
private static void CreatePaksUsingChunkManifests(ProjectParams Params, DeploymentContext SC) { // ... // Now run through the pak rules which may override things ApplyPakFileRules(PakRulesList, StagingFile, PakList, ChunkNameToDefinition, out bExcludeFromPaks); #if true foreach (var chunk in ChunkNameToDefinition) { bool isExist = ChunkDefinitions.Exists(cd => { return cd.ChunkName == chunk.Key; }); if (!isExist) { ChunkDefinitions.Add(chunk.Value); } } #endif if (bExcludeFromPaks) { return; }
1. Open the attached project in editor
2. Packaging project
Then, pakchunk0.pak is created
3. Open PrimaryAssetLabel asset (PAL_50) and set ChunkID=5
4. Packaging project
Then, pakchunk0.pak, pakchunk1.pak, pakchunk2.pak, pakchunk3.pak, pakchunk5.pak are created
Result:
Inconsistent chunks created. It appears that all settings in both PakFileRules and PrimaryAssetLabel are reflected and no chunk file(.pak) is created.
Expected:
The created chunks are consistent. It is desirable that a chunk file(.pak) is created that reflects all the chunk settings defined in PakFileRules and the chunk settings set in PrimaryAssetLabel. Or, chunks should be created reflecting only the settings of PrimaryAssetLabel.
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
I can't open my map from the editor.
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Teleporter in the Creative Hub is Locked and cannot be accessed
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-192370 in the post.
4 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.27, 5.2 |
Target Fix | 5.6 |
Created | Aug 8, 2023 |
---|---|
Updated | Oct 18, 2024 |