Description

 

Users have trouble overriding the blocksize/patchpaddingalign parameters for UnrealPak from UAT commandlines.

  1. There is no easy way to specify these parameters through a buildcookrun, instead they need to be added to the unrealpak invocation in some way.
  2. When using -AdditionalPakOptions to set -patchpaddingalign that option is passed twice and the non-user provided value will always override the user-provided value
  3. -blocksize (as an alternative for IOStore) gets overridden by the automatically added -patchpaddingalign 
  4. -iostorepatchpaddingalign seems to work but overlaps with the other options and the comments in the source state that this is a temporary parameter.

 

 

We're using stock UE5.1 (from 
the launcher) and the old .pak format. I was hoping we could use the 
commandline option and avoid changing engine code. I tried passing 
-AdditionalPakOptions="-patchpaddingalign=1048576" to RunUAT.bat, but 
unfortunately it doesn't seem to work.I think what's happening is that UAT's UnrealPak commandline ends up as:UnrealPak.exe MyProject.uproject [...] -patchpaddingalign=2048 [...] -patchpaddingalign=1048576The
 first patchpaddingalign is the one from GetPlatformPakCommandLine, the 
second is from my AdditionalPakOptions. It turns out that the 
commandline parser always takes the first value it finds, so there's no 
way to override UAT's platform default patchpaddingalign with 
commandline options.For
 the old .pak format, it looks like we either have to modify the UAT 
code as described above, or run UnrealPak directly instead of through 
UAT.It looks like 
using -iostore will hit the same issue, as -blocksize gets overridden by
 -patchpaddingalign. Luckily there's a workaround; there's a parameter 
called -iostorepatchpaddingalign, which isn't set by UAT and overrides 
all the other alignment and blocksize options. I think that's the way to
 go if you're using -iostore and don't want to edit the engine.

 

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-272843 in the post.

0
Login to Vote

Unresolved
ComponentUE - CoreTech - IoStore
Affects Versions5.15.25.35.4
Target Fix5.7
CreatedApr 14, 2025
UpdatedApr 15, 2025
View Jira Issue