Error Packaging Project

Whenever I try to package my project I get this error:


MainFrameActions: Packaging (Windows (64-bit)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Exception in AutomationTool: Failed to create directory ‘C:\Program Files\RunGame\WindowsNoEditor’
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace: vid AutomationTool.CommandUtils.CreateDirectory(String[] Directories)
MainFrameActions: Packaging (Windows (64-bit)): vid DeploymentContext…ctor(String RawProjectPathOrName, String InLocalRoot, String BaseStageDirectory, String BaseArchiveDirectory, String CookFlavor, Platform InSourcePlatform, Platform InTargetPlatform, List1 InTargetConfigurations, IEnumerable1 InStageTargetReceipts, List1 InStageExecutables, Boolean InServer, Boolean InCooked, Boolean InStageCrashReporter, Boolean InStage, Boolean InCookOnTheFly, Boolean InArchive, Boolean InProgram, Boolean bHasDedicatedServerAndClient) MainFrameActions: Packaging (Windows (64-bit)): vid Project.CreateDeploymentContext(ProjectParams Params, Boolean InDe MainFrameActions: Packaging (Windows (64-bit)): dicatedServer, Boolean DoCleanStage) MainFrameActions: Packaging (Windows (64-bit)): vid Project.CopyBuildToStagingDirectory(ProjectParams Params) MainFrameActions: Packaging (Windows (64-bit)): vid BuildCookRun.DoBuildCookRun(ProjectParams Params) MainFrameActions: Packaging (Windows (64-bit)): vid BuildCommand.Execute() MainFrameActions: Packaging (Windows (64-bit)): vid AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Windows (64-bit)): vid AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)): vid AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)): vid AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)): vid AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Failed to create directory ‘C:\Program Files\RunGame\WindowsNoEditor’
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files…
MainFrameActions: Packaging (Windows (64-bit)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED


What does it mean?

It sounds like you ran out of HDD room, your packaging settings arnt setup right, or your ran out of memory, or my best guess: you have a file exceeding 255 characters (windows problem). Try cooking to C:\a\ and make sure you dont have anything in your content browser thats like \game\animations\blueprints\characters\animationblueprints\humanside\blueteam\humans\standardstate\human001\humanteam_blueteam_human001_animbp.uasset which under ‘C:\Program Files\RunGame\WindowsNoEditor’ starts to get very very long.