Whenever I attempt to package or cook my game from within the editor (shipping VS compilation works fine) I get the following output:
UATHelper: Cooking (Windows): Running AutomationTool...
UATHelper: Cooking (Windows): Automation.ParseCommandLine: Parsing command line: BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="D:/UnrealEngine4/Projects/Amhran 4.13/Amhran.uproject" -cook -ue4exe=UE4Editor-Cmd.exe -targetplatform=Win64
UATHelper: Cooking (Windows): Automation.Process: Setting up command environment.
UATHelper: Cooking (Windows): BuildCookRun.SetupParams: Setting up ProjectParams for D:\UnrealEngine4\Projects\Amhran 4.13\Amhran.uproject
UATHelper: Cooking (Windows): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Editor target not found!
UATHelper: Cooking (Windows): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset)
UATHelper: Cooking (Windows): at AutomationTool.ProjectParams..ctor(FileReference RawPr
UATHelper: Cooking (Windows): ojectPath, CommandUtils Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList`1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List`1 ClientConfigsToBuild, List`1 ServerConfigsToBuild, ParamList`1 MapsToCook, Param
List`1 DirectoriesToCook, String InternationalizationPreset, ParamList`1 CulturesToCook, ParamList`1 ClientCookedTargets, ParamList`1 EditorTargets, ParamList`1 ServerCookedTargets, List`1 ClientTargetPlatforms, Dictionary`2 ClientDependentPlatformMap, List`1 ServerTargetPlatforms, Dictionary`2 ServerDependentPlatformMap, Nullable`1 Build, Nullable`1 Cook, N
ullable`1 Run, Nullable`1 SkipServer, Nullable`1 Clean, Nullable`1 Compressed, Nullable`1 UseDebugParamForEditorExe, Nullable`1 IterativeCooking, Nullable`1 CookAll, Nullable`1 CookMapsOnly, Nullable`1 CookOnTheFly, Nullable`1 CookOnTheFlyStreaming, Nullable`1 UnversionedCookedContent, Nullable`1 EncryptIniFiles, Nullable`1 SkipCookingEditorContent, Nullable
`1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable`1 GeneratePatch, String DLCName, String DiffCookedContentPath, Nullable`1 DLCIncludeEngineContent, Nullable`1 NewCook, Nullable`1 OldCook, Nullable`1 CrashReporter
, Nullable`1 DedicatedServer, Nullable`1 Client, Nullable`1 Deploy, Nullable`1 FileServer, Nullable`1 Foreign, Nullable`1 ForeignCode, Nullable`1 LogWindow, Nullable`1 NoCleanStage, Nullable`1 NoClient, Nullable`1 NoDebugInfo, Nullable`1 NoXGE, Nullable`1 Package, Nullable`1 Pak, Nullable`1 Prereqs, String AppLocalDirectory, Nullable`1 NoBootstrapExe, Nullab
le`1 SignedPak, Nullable`1 NullRHI, Nullable`1 FakeClient, Nullable`1 EditorTest, Nullable`1 RunAutomationTests, String RunAutomationTest, Nullable`1 CrashIndex, Nullable`1 SkipCook, Nullable`1 SkipCookOnTheFly, Nullable`1 SkipPak, Nullable`1 SkipStage, Nullable`1 Stage, Nullable`1 Manifests, Nullable`1 CreateChunkInstall, Nullable`1 Unattended, Nullable`1 N
umClients, Nullable`1 Archive, String ArchiveDirectoryParam, Nullable`1 ArchiveMetaData, Nullable`1 CreateAppBundle, ParamList`1 ProgramTargets, Nullable`1 Distribution, Nullable`1 Prebuilt, Nullable`1 RunTimeoutSeconds, String SpecifiedArchitecture, Nullable`1 IterativeDeploy, Nullable`1 FastCook, Nullable`1 IgnoreCookErrors, Nullable`1 RunAssetNativization
, Nullable`1 CodeSign, Nullable`1 TreatNonShippingBinariesAsDebugFiles, Nullable`1 UploadSymbols, String Provision, String Certificate, ParamList`1 InMapsToRebuildLightMaps, ParamList`1 TitleID)
UATHelper: Cooking (Windows): at BuildCookRun.SetupParams()
UATHelper: Cooking (Windows): at BuildCookRun.ExecuteBuild()
UATHelper: Cooking (Windows): at AutomationTool.BuildCommand.Execute()
UATHelper: Cooking (Windows): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Cooking (Windows): at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Cooking (Windows): at AutomationTool.Program.MainProc(Object Param)
UATHelper: Cooking (Windows): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Cooking (Windows): at AutomationTool.Program.Main()
UATHelper: Cooking (Windows): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Cooking (Windows): BUILD FAILED
And obviously the build fails. Let me draw your attention to the line:
UATHelper: Cooking (Windows): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Editor target not found!
Does anyone know what can cause this error?