Packaging Failed on AutomationTool (Creating EXE)

Earlier I posted a problem I was having with linking the Steam Library to my Unreal Project in the packaging process. I was able to fix that one problem, and the library is found and included, but now my project is crashing in the last step (creating the EXE, it was actually crashing right here before, even with the Steam problem).

I am not terribly familiar with Unreal’s build process, but I have the call stack. Can anyone shed some light on what I should do to fix this problem?

MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: [207/208] Link TAKEN_BP-CharacterAI-Static.lib
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: -------- End Detailed Actions Stats -----------------------------------------------------------
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\David\Documents\Unreal Projects\TAKEN_BP 4.7 - 2 4.7 - 2\Binaries\Win64\TAKEN_BP.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Cumulative action seconds (12 processors): 0.00 building projects, 2727.54 compiling, 0.00 creating app bundles, 0.00 generating debug info, 3.24 linking, 0.00 other
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: UBT execution time: 521.89 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 522.1694478s to run UnrealBuildTool.exe, ExitCode=2
MainFrameActions: Packaging (Windows (64-bit)): ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:2): C:\Users\David\Documents\GitHub\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe TAKEN_BP Win64 Development  "C:\Users\David\Documents\Unreal Projects\TAKEN_BP 4.7 - 2 4.7 
MainFrameActions: Packaging (Windows (64-bit)): - 2\TAKEN_BP.uproject"  -noxge -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt' 
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: Command failed (Result:2): C:\Users\David\Documents\GitHub\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe TAKEN_BP Win64 Development  "C:\Users\David\Documents\Unreal Projects\TAKEN_BP 4.7 - 2 4.7 
MainFrameActions: Packaging (Windows (64-bit)): - 2\TAKEN_BP.uproject"  -noxge -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt' 
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\ProcessUtils.cs:line 795
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\UBTUtils.cs:line 35
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\UE4Build.cs:line 344
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity, Dictionary`2 PlatformEnvVars) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\UE4Build.cs:line 1327
MainFrameActions: Packaging (Windows (64-bit)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 114
MainFrameActions: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 251
MainFrameActions: Packaging (Windows (64-bit)):    at BuildCommand.Execute() in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\BuildCommand.cs:line 37
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Automation.cs:line 380
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] CommandLine) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Automation.cs:line 352
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:line 168
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param) in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Utils.cs:line 705
MainFrameActions: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main() in c:\Users\David\Documents\GitHub\UnrealEngine\Engine\Source\Programs\AutomationTool\Program.cs:line 115
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Command failed (Result:2): C:\Users\David\Documents\GitHub\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe TAKEN_BP Win64 Development  "C:\Users\David\Documents\Unreal Projects\TAKEN_BP 4.7 - 2 4.7 - 2\TAKEN_BP.uproject"  -noxge -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt' 
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=2
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)): AutomationToolLauncher exiting with ExitCode=2
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

I have packaged this project successfully in the past, but not since I integrated steam.


##Additional Info.

  • Steam API 1.30
  • Unreal Engine 4.7.6 from Source (Github)

Hi, i was investigating steam linking and here’s what i got:

  1. seems we can’t link steam lib in project files, because they compiled into dll and not real .exe
  2. steam lib already linked into engine

so if you really want do everything on your own, then you have to grab engine source and do it here, but i prefer investigate what’s wrong or not complete and tell epic so they’ll fix and add needed things, because these guys make 4-th engine, guess they know better how make basic things, also engine really complex and i guess if you try do steam on your own you’ll only get deeper into problems

after 4.8.0 release i found fix for steam internet sessions (tested with epic’s example project “multiplayer shotout”), now they work, but still miss nat punch

p.s. did you tryed steam nat punch? steam have it but for some reason it seems doesn’t work in UE4 suggestions for multiplayer shootout example improvments - Feedback & Requests - Epic Developer Community Forums

Hey,
The spaces in your project directory are likely what is causing this issue. Try renaming this folder “TAKEN_BP 4.7 - 2 4.7 - 2”

/T

That seems to have done the trick. I replaced the spaces with underscores and the project built all the way through. Thanks!