Packaging SteamVR Game

Hi, i´m working on a SteamVR proyect for learning pourposes. I can´t package my game for win 64bits. I get the following error (The rest of my projects can be packaged just fine) :

Thanks for the help!

LOG ERROR:

    Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/Levels/Level_1" FILE="../../../../../../Unreal Projects/VR_PUZZLE/Saved/Autosaves/Game/Levels/UEDPCLevel_1.umap" SILENT=true AUTOSAVING=true KEEPDIRTY=true
    LogSavePackage: Save=71.45ms
    LogSavePackage: Moving '../../../../../../Unreal Projects/VR_PUZZLE/Saved/UEDPCLevel_12D742FD345C8565BA9C4B7A896C83538.tmp' to '../../../../../../Unreal Projects/VR_PUZZLE/Saved/Autosaves/Game/Levels/UEDPCLevel_1.umap'
    LogSavePackage:Display: Finished SavePackage ../../../../../../Unreal Projects/VR_PUZZLE/Saved/Autosaves/Game/Levels/UEDPCLevel_1.umap
    LogEditorTransaction: Undo Spawn Play From Here Start
    UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
    UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="E:/Unreal Projects/VR_PUZZLE/VR_PUZZLE.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="E:/Unreal Projects/VR_PUZZLE/VR_PUZZLE.uproject" -cook -stage -archi
    UATHelper: Packaging (Windows (64-bit)): ve -archivedirectory="E:/Unreal Projects/Builds" -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
    UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
    UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject
    UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
    UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR_PUZZLE Win64 Development -Project="E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  "E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  -remoteini="
    UATHelper: Packaging (Windows (64-bit)): E:\Unreal Projects\VR_PUZZLE" -noxge -generatemanifest -NoHotReload
    UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0,80107s to run UnrealBuildTool.exe, ExitCode=0
    UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR_PUZZLE Win64 Development -Project="E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  "E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  -remoteini="E:\Unreal Projects\VR_PUZZLE" -noxge -NoHotReload -ignorejunk
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for VR_PUZZLE (no existing makefile)
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Parsing headers for VR_PUZZLE
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:   Running UnrealHeaderTool "E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject" "E:\Unreal Projects\VR_PUZZLE\Intermediate\Build\Win64\VR_PUZZLE\Development\VR_PUZZLE.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error"
    UATHelper: Packaging (Windows (64-bit)):  -Unattended -WarningsAsErrors -installed
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:/Program Files (x86)/Epic Games/4.13/Engine/Source/Runtime/HeadMountedDisplay/Public/IMotionController.h(22) : Class 'IModularFeature' not found.
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Error: Failed to generate code for VR_PUZZLE - error code: OtherCompilationError (5)
    UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: UnrealHeaderTool failed for target 'VR_PUZZLE' (platform: Win64, module info: E:\Unreal Projects\VR_PUZZLE\Intermediate\Build\Win64\VR_PUZZLE\Development\VR_PUZZLE.uhtmanifest).
    UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 5,589458s 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:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR_PUZZLE Win64 Development -Pro
    UATHelper: Packaging (Windows (64-bit)): ject="E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  "E:\Unreal Projects\VR_PUZZLE\VR_PUZZLE.uproject"  -remoteini="E:\Unreal Projects\VR_PUZZLE" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.10.04-13.40.44.txt' 
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 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, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 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, Dictionary`2 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, Dictionary`2 EnvVars)
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictio
    nary`2 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 AutomationTool.BuildCommand.Execute()
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] Arguments)
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object )
    UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object )
    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

Hello Magicson,

Could you provide your full log so that I could take a closer look?

Hi Rudy! I think that was the full log message. I copied the whole Output Log made by the packaging tool. If im missing something please let me know and i will provide it.
Thanks!

PD: I attach the log as an .txt just in case you need it.link text

Requested log link text
Thanks for your time Rudy!

Could you try navigating to your saved folder and provide me with the log from the logs folder? I have provided the default path below.

C:\Users\YouUserName\Documents\Unreal Projects\YourProjectName\Saved\Logs

I have some additional questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Does this packaging error occur in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. If not, is it possible for you to provide a zipped down copy of the project that is having this issue so that I could take a closer look?

Hi Rudy, sorry for the late response. I’ve found the solution but a new question arises.
The main problem was that i had a class named ‘MotionController’ and that prevented the packaging to succed. After fixing that issue I found another problem that didnt allow me to package.
I have a class that uses PostEditChangeProperty on the editor, if i comment that part of the script, i can package the game. Any ideas why this is happening?

Here is the code mentioned:

.h:

private:

virtual void PostEditChangeProperty(struct FPropertyChangedEvent& e) override;

.cpp:

#if WITH_EDITOR
void ASplineStaticMesh::PostEditChangeProperty(struct FPropertyChangedEvent& e)
{
	Super::PostEditChangeProperty(e);

	FName PropertyName = (e.Property != NULL) ? e.Property->GetFName() : NAME_None;

	if (PropertyName == GET_MEMBER_NAME_CHECKED(ASplineStaticMesh, bConstruct)) 
	{
		if (bConstruct)
		{
			ConstructSplineMesh();
			CustomizeRollSplineMesh();
		}
		else
		{
			DestroySplineMesh();
		}
	}
}
#endif

Again thanks for your time, and sorry for my english!

Hello Magicson,

I am happy to hear that you were able to find a solution to your issue. I will be marking your last comment as an answer for this thread. As far as your final question. I do not have enough information to provide a clear answer as to why the issue was happening.