question

gouravk24 avatar image
gouravk24 asked

Error with playfab.h header file while packaging unreal project

Hello!! I am getting error when I am trying to do packaging in the unreal. Here is the error: The first include statement in source file 'D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\Plugins\PlayFab\Source\PlayFab\Private\UE4ClientGameModeBase.cpp' is trying to include 'PlayFab.h' as the precompiled header, but that file could not be located in any of the module's include search paths.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

That sounds like the SDK isn't properly installed in the project. Can you let us know which version of the SDK you're using, and that you followed the installation guide (https://github.com/PlayFab/UnrealCppSdk)?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

psvramaraju avatar image
psvramaraju answered

I am using playfab with unreal. I am trying to package the project after building it. When I am packaging the project I am getting the following errors. Please help me in getting through this.

UnrealBuildTool: ERROR: The first include statement in source file 'D:\Yogita\city_ghost\City_08-03-2017 - Copy -Copy\city_withplayfabcode\Plugins\PlayFab\Source\PlayFab\Private\UE4ClientGameModeBase.cpp' is trying to include 'PlayFab.h' as the precompiled header, but that file could not be located in any of the module's include search paths

I am using the unreal sdk version 4.15

Here is my complete error code:

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool... UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="D:/Yogita/city_ghost/City_08-03-2017 - Copy - Copy/city_withplayfabcode/city.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="D:/Yogita/city_ghost/City_08-03-2017 - Copy - Copy/city_withplayfabcode/city.uproject" -cook -stage -archive -archivedirectory="C:/Users/Loop Reality/Desktop/New folder" -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 D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED ********** UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe city Win64 Development -Project="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject" "D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject" -remote ini="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode" -noxge -generatemanifest -NoHotReload UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.8427405s to run UnrealBuildTool.exe, ExitCode=0 UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe city Win64 Development -Project="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject" "D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject" -remote ini="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode" -noxge -NoHotReload -ignorejunk UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for city (no existing makefile) UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file) UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: The first include statement in source file 'D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\Plugins\PlayFab\Source\PlayFab\Private\UE4ClientGameModeBase.cpp' is trying to include 'PlayFab.h' as the precompiled header, but that file could not be located in any of the modu le's include search paths. UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 2.7377794s 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): C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe city Win64 Development -Project="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayf abcode\city.uproject" "D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode\city.uproject" -remoteini="D:\Yogita\city_ghost\City_08-03-2017 - Copy - Copy\city_withplayfabcode" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.06.16-17.08.03.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 BuildCookRun.ExecuteBuild() 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 Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 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

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image brendan commented ·

Thanks, but I actually meant what version of the PlayFab Unreal SDK are you using? For example, as of today, 2017.06.17, the latest version is the 170612.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.