Failure to package for Win x64

I am trying to package my game for Win x64. The game runs fine in-editor and standalone.

The error logs I am getting are a mess. It seems like I’m getting the same bizarre K2Node.generated.h problems that this question is getting here. However, I didn’t mess with a K2Node of any kind. Similarly, EdGraphNodeUtils.h is having issues with UEdGraphNode, two other files I didn’t touch, extend, or anything of the sort.

I’ve tried blowing away my visual studio files and all of the UE4 generated folders to no avail. I’ve run out of realistic ideas on what else to do at this point. I saw that my uproject file had picked up dependencies on “UnrealEd”, “UMG” and added those to build.cs as well just in case that was relevant.

Github repo here.

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=E:/Programming/Unreal/SeattleGameJam2017/SeattleGameJam2017.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=E:/Programming/Unreal/SeattleGameJam2017/SeattleGameJam2017.uproject -cook -stage -archive -archivedirectory=E:/P
rogramming/Unreal/SeattleGameJam2017 -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -utf8output
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe SeattleGameJam2017 Win64 Development -Project=E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject -NoUBTMakefiles -remoteini=“E:\Programming\Un
real\SeattleGameJam2017” -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.9220528s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe SeattleGameJam2017 Win64 Development -Project=E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject -NoUBTMakefiles -remoteini=“E:\Programming\Un
real\SeattleGameJam2017” -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Parsing headers for SeattleGameJam2017
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Running UnrealHeaderTool “E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject” “E:\Programming\Unreal\SeattleGameJam2017\Intermediate\Build\Win64\SeattleGameJam2017\Development\SeattleGameJam2017.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended
-WarningsAsErrors -installed
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Reflection code generated for SeattleGameJam2017 in 8.0421175 seconds
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 14 actions (4 in parallel)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: SharedPCH.UnrealEd.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(31): error C2039: ‘GetGraph’: is not a member of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Classes\EdGraph/EdGraphNode.h(153): note: see declaration of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(31): error C2039: ‘GetSchema’: is not a member of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Classes\EdGraph/EdGraphNode.h(153): note: see declaration of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(31): error C2227: left of ‘->IsCacheVisualizationOutOfDate’ must point to class/struct/union/generic type
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(54): error C2039: ‘GetGraph’: is not a member of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Classes\EdGraph/EdGraphNode.h(153): note: see declaration of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(57): error C2039: ‘GetSchema’: is not a member of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Classes\EdGraph/EdGraphNode.h(153): note: see declaration of ‘UEdGraphNode’
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Runtime\Engine\Public\EdGraph/EdGraphNodeUtils.h(57): error C2227: left of ‘->GetCurrentVisualizationCacheID’ must point to class/struct/union/generic type
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\UE_4.16\Engine\Source\Editor\BlueprintGraph\Classes\K2Node.h(10): fatal error C1083: Cannot open include file: ‘K2Node.generated.h’: No such file or directory
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: E:\Programming\Unreal\SeattleGameJam2017\Binaries\Win64\SeattleGameJam2017.exe
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 25.36 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 25.5914638s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe SeattleGameJam2017 Win64 Development -Project=E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproje
ct E:\Programming\Unreal\SeattleGameJam2017\SeattleGameJam2017.uproject -NoUBTMakefiles -remoteini=“E:\Programming\Unreal\SeattleGameJam2017” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.08.10-21.51.51.txt’
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictio
nary2 InTargetToManifest) UATHelper: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

For reference, every inherited class I’ve used is:
UDataAsset
APawn
UActorComponent
UFactory
APlayerController
APlayerState
UUserWidget
AGameModeBase

running into the same issue. Did you ever find a solutions?

Not one you’re going to like hearing. I eventually gave up and started a new project from scratch, adding files in small clumps, checking to make sure it packaged, rinse/repeat until everything was present. I really don’t understand what the problem could have been.