Hi Everyone,
I’m running into a problem when trying to package our game for distribution. I’ve produced non-distribution builds for a while and everything seems to work fine until I check the ‘Create a release version of the game for distribution’ checkbox, it fails and tells me that my .pak file already exists.
Here are my full build settings:
Build Configuration: Shipping
Cook: By The Book
Release / DLC / Patching Settings
Create a release version of the Game for distribution
Advanced Settings
Compress Content
Store all content in a single file (UnrealPak)
Cooker Configuration: Shipping
Package: Package and store locally
Deploy: Do not deply
Here is the error that I get:
UnrealPak: LogPakFile:Display: Added
7896 files, 2401379890 bytes total,
time 554.72s. CommandUtils.Run: Run:
Took 561.5646086s to run
UnrealPak.exe, ExitCode=0
Project.CreatePak: UnrealPak Done
******* BuildCommand.Execute: ERROR: BUILD FAILED Program.Main: ERROR:
AutomationTool terminated with
exception: Program.Main: ERROR:
Exception in mscorlib: The file
‘C:\dev\UE4.8\GAME\Releases\GAME\WindowsNoEditor\GAME-WindowsNoEditor.pak’
already exists.
The command that runs for UnrealPak is this:
CommandUtils.Run: Run: C:\dev\UE4.8\Engine\Binaries\Win64\UnrealPak.exe C:\dev\UE4.8\GAME\Saved\StagedBuilds\WindowsNoEditor\GAME\Content\Paks\GAME-WindowsNoEditor.pak -create=C:\dev\UE4.8\Engine\Programs\AutomationTool\Saved\Logs\PakList_GAME-WindowsNoEditor.txt -order=C:\dev\UE4.8\GAME\Build\WindowsNoEditor\FileOpenOrder\EditorOpenOrder.log
As UnrealPak is running, I can see it creating the .pak file in windows explorer and the file size getting larger as it runs. Then at the end, when it looks like it’s finished, it seems like it tries to copy the file over itself or something.
Has anyone any idea whats going on?
Thanks,
Matt