Trying to package my game from within a C# application, which calls the RunUAT.bat file with the following arguments (the '' character has to precede \ characters and the " character within the string itself, so ignore those):
“BuildCookRun -project="C:\p4\bh-05-SSD\localdepot\UE4 Projects\Test\MyTest\MyTest_App.uproject" -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -maps=AllMaps -compile -stage -cook -pak -archive -archivedirectory="C:\Output"”
I have attached part of the output received. The most important part:
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationTool: All branches must have the bla
nk project /Samples/Sandbox/BlankProject
Stacktrace: at AutomationTool.BranchInfo..ctor(List`1 InHostPlatforms) in c:\
Users\UserPC\Desktop\UnrealEngine-4.6.0-release\Engine\Source\Programs\Automatio
nTool\ProjectUtils.cs:line 574
at BuildCookRun.get_ProjectPath() in c:\Users\UserPC\Desktop\UnrealEngine-4.6
.0-release\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation
.cs:line 361
at BuildCookRun.ExecuteBuild() in c:\Users\UserPC\Desktop\UnrealEngine-4.6.0-
release\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs
:line 28
at BuildCommand.Execute() in c:\Users\UserPC\Desktop\UnrealEngine-4.6.0-relea
se\Engine\Source\Programs\AutomationTool\BuildCommand.cs:line 37
at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictio
nary`1 Commands) in c:\Users\UserPC\Desktop\UnrealEngine-4.6.0-release\Engine\So
urce\Programs\AutomationTool\Automation.cs:line 371
at AutomationTool.Automation.Process(String[] CommandLine) in c:\Users\UserPC
\Desktop\UnrealEngine-4.6.0-release\Engine\Source\Programs\AutomationTool\Automa
tion.cs:line 343
at AutomationTool.Program.MainProc(Object Param) in c:\Users\UserPC\Desktop\U
nrealEngine-4.6.0-release\Engine\Source\Programs\AutomationTool\Program.cs:line
167
at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param
) in c:\Users\UserPC\Desktop\UnrealEngine-4.6.0-release\Engine\Source\Programs\A
utomationTool\Utils.cs:line 649
at AutomationTool.Program.Main() in c:\Users\UserPC\Desktop\UnrealEngine-4.6.
0-release\Engine\Source\Programs\AutomationTool\Program.cs:line 114
Program.Main: ERROR: All branches must have the blank project /Samples/Sandbox/B
lankProject
ProcessManager.KillAll: Trying to kill 0 spawned processes.
Program.Main: AutomationTool exiting with ExitCode=1
Domain_ProcessExit
ProcessManager.KillAll: Trying to kill 0 spawned processes.
AutomationToolLauncher exiting with ExitCode=1
copying UAT log files...
RunUAT.bat ERROR: AutomationTool was unable to run successfully.
BUILD FAILED
I’ve made sure that the engine used in question is compiled, and even tried the arguments with ‘-build’ as well, just in case, but to no avail.
Any ideas?
EDIT: I have attached a full output log when building with the following arguments (which I copied from the editor’s output when packaging in-editor… I figured that if anybody got the arguments correct, it was Epic I’m censoring the project name, so don’t worry if it doesn’t match up with anything in the logs).
BuildCookRun -nocompileeditor -nop4 -project=C:/p4/bh-05-SSD/localdepot/UE4 Projects/Test/MyTest/MyTest_App.uproject -cook -allmaps -CrashReporter -stage -archive -archivedirectory=C:/Users/UserPC/Desktop/Output -package -WindowsNoEditor -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -clean -pak -prereqs -targetplatform=Win64 -build -utf8output