ERROR: UnrealBuildTool Exception: A game project path was not specified, which is required when generating project files using an installed build or passing -game on the command line
protectedvirtualvoidConfigureProjectFileGeneration( String[] Arguments, refbool IncludeAllPlatforms ) { // ... elseswitch(CurArgument.ToUpperInvariant() ) { // ... case"-GAME": // Generates project files for a single game bGeneratingGameProjectFiles = true; break; // ... } // ...
if(bGeneratingGameProjectFiles || UnrealBuildTool.IsEngineInstalled() ) { if (OnlyGameProject == null) { thrownew BuildException("A game project path was not specified, which is required when generating project files using an installed build or passing -game on the command line"); }
GameProjectName = OnlyGameProject.GetFileNameWithoutExtension(); if (String.IsNullOrEmpty(GameProjectName)) { thrownew BuildException("A valid game project was not found in the specified location (" + OnlyGameProject.Directory.FullName + ")"); }
// UnrealBuildTool.cs staticpublicboolIsEngineInstalled() { if (!bIsEngineInstalled.HasValue) { thrownew BuildException("IsEngineInstalled() called before being initialized."); } return bIsEngineInstalled.Value; }