Download

Unable to package

I am all of a sudden having an issue packaging the current game I am working on. I was able to a couple of weeks ago but I am getting an unknown error when I try when I try to package for win64, win32, or android. The only thing I have changed since the last time it worked is some textures and some c++ code changes for some math functions. I can build a solution in VS and it plays in the editor and I can package other projects except this one. Here is the output log.



MainFrameActions: Packaging (Android (ETC1)): Running AutomationTool...
MainFrameActions: Packaging (Android (ETC1)): Program.Main: CWD=C:\Unreal\Epic Games\4.10\Engine\Binaries\DotNET
MainFrameActions: Packaging (Android (ETC1)): Automation.ParseCommandLine: Parsing command line: BuildCookRun -rocket -nocompile -nocompileeditor -installed -nop4 -project=C:/Users/username/Documents/Unreal Projects/ClickerV1 5-1-16/ClickerV1.uproject -cook -stage -archive -archivedirectory=C:/Unreal/testbuild -package -clientconfig=DebugGame -ue4exe=UE4Editor-Cmd.exe -clean -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ETC1 -build -CrashReporter -utf8output
MainFrameActions: Packaging (Android (ETC1)): Automation.Process: IsBuildMachine=False
MainFrameActions: Packaging (Android (ETC1)): Automation.Process: ShouldKillProcesses=True
MainFrameActions: Packaging (Android (ETC1)): Automation.Process: Setting up command environment.
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.SetEnvVar: SetEnvVar uebp_EngineSavedFolder=C:/Unreal/Epic Games/4.10/Engine/Programs/AutomationTool/Saved
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.DeleteDirectoryContents: DeleteDirectoryContents(C:/Users/username/AppData/Roaming/Unreal Engine/AutomationTool/Logs/C+Unreal+Epic+Games+4.10)
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: Setting .Net Framework environment variables.
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: Supports64bitExecutables=True
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: WindowsPlatform.CompilerVisualStudio2015
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: WindowsSDKDir=C:\Program Files (x86)\Windows Kits\8.1\
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: BaseVSToolPath=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: Setting VS environment variables via C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat.
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.SetEnvVar: SetEnvVar FrameworkDir=C:\Windows\Microsoft.NET\Framework\
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.SetEnvVar: SetEnvVar FrameworkVersion=v4.0.30319
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: FrameworkDir=C:\Windows\Microsoft.NET\Framework\
MainFrameActions: Packaging (Android (ETC1)): WindowsHostPlatform.SetFrameworkVars: FrameworkVersion=v4.0.30319
MainFrameActions: Packaging (Android (ETC1)): ProjectUtils.CleanupFolders: Cleaning up project rules folder
MainFrameActions: Packaging (Android (ETC1)): CommandUtils.DeleteDirectoryContents: DeleteDirectoryContents(C:\Users\username\AppData\Local\Temp\UAT\C+Unreal+Epic+Games+4.10\Rules)
MainFrameActions: Packaging (Android (ETC1)): Automation.Process: Compiling scripts.
MainFrameActions: Packaging (Android (ETC1)): ScriptCompiler.LoadPreCompiledScriptAssemblies: Loading precompiled script DLLs
MainFrameActions: Packaging (Android (ETC1)): ScriptCompiler.LoadPreCompiledScriptAssemblies: Found 9 script DLL(s).
MainFrameActions: Packaging (Android (ETC1)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\username\Documents\Unreal Projects\ClickerV1 5-1-16\ClickerV1.uproject
MainFrameActions: Packaging (Android (ETC1)): ProjectUtils.CompileAndLoadTargetsAssembly: Compiling targets DLL: C:\Users\DesotoAdmin\AppData\Local\Temp\UAT\C+Unreal+Epic+Games+4.10\Rules\UATRules1231790230.dll
MainFrameActions: Packaging (Android (ETC1)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: Exception in AutomationUtils.Automation: Game target not found. Game target is required with -cook or -cookonthefly
MainFrameActions: Packaging (Android (ETC1)): Stacktrace:    at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.ProjectParams..ctor(String RawProjectPath, CommandUtils Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList`1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, Nullable`1 StageNonMonolithic, String UE4Exe, String SignPak, List`1 ClientConfigsToBuild, List`1 ServerConfigsToBuild, ParamList`1 MapsToCook, ParamList`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, String CookFlavor, Nullable`1 
MainFrameActions: Packaging (Android (ETC1)): 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 SkipCookingEditorContent, Nullable`1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, Nullable`1 GeneratePatch, String DLCName, 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, Nullable`1 NoBootstrapExe, Nullable`1 SignedPak, Nullable`1 NullRHI, Nullable`1 FakeClient, Nullable`1 EditorTest, Nullable`1 RunAutomationTests, String RunAutomationTest, Nullable`1 CrashIndex, Nullable`1 Rocket, 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 NumClients, 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 CodeSign, String Provision, String Certificate)
MainFrameActions: Packaging (Android (ETC1)):    at BuildCookRun.SetupParams()
MainFrameActions: Packaging (Android (ETC1)):    at BuildCookRun.ExecuteBuild()
MainFrameActions: Packaging (Android (ETC1)):    at BuildCommand.Execute()
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (ETC1)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ETC1)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
MainFrameActions: Packaging (Android (ETC1)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ETC1)): copying UAT log files...
MainFrameActions: Packaging (Android (ETC1)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
PackagingResults:Error: Error Unknown Error



Sounds like your VS files went awry at some point, maybe after doing some reckless renaming. :wink:

Open your solution in VS and open your Source folder. Is there a ClickerV1.Target.cs file in there?

Yes, the Clickerv1.Target.cs file was there and it was set to Target.Editor instead of Target.Game, which “solved” this issue but just created a ton more. I backup my projects every few days and rolled back to two weeks ago and it compiles fine but I have lost some important work if I can’t get it figured out. I even tried copying and replacing two .h and .cpp files from the most current backup into the backup that will compile and I get a ton of differnt errors. The only thing in the .cpp files are a few custom nodes and shouldn’t have any impact on the rest of the package… #opens a new bottle of asprin