M
M
MrRangerYT2019-09-25 20:24:01
C++ / C#
MrRangerYT, 2019-09-25 20:24:01

Could not find type or namespace name 'GUBPProjectOptions' missing using directive or assembly reference?

Hello everyone, there was such a problem when I try to generate GenerateProjectFiles.bat

Falls into error

Setting up Unreal Engine 4 project files...
Messages while compiling D:\UnrealTournament-ue4_20_1_update\UnrealTournament\Intermediate\Build\BuildRules\UnrealTournamentModuleRules.dll:
d:\UnrealTournament-ue4_20_1_update\UnrealTournament\Source\UnrealTournamentEditor.Target.cs(32,21) : error CS0246: Не удалось найти имя типа или пространства имен "GUBPProjectOptions" (пропущена директива using или ссылка на сборку?)
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files
GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files.

The code itself

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.

using UnrealBuildTool;
using System.Collections.Generic;

public class UnrealTournamentEditorTarget : TargetRules
{
  public UnrealTournamentEditorTarget(TargetInfo Target)
  {
        Type = TargetType.Editor;
        UEBuildConfiguration.bCompileBox2D = false;
  }

    //
    // TargetRules interface.
    //
    public override void SetupBinaries(
    TargetInfo Target,
    ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
    ref List<string> OutExtraModuleNames
    )
  {
    OutExtraModuleNames.Add("UnrealTournament");
        OutExtraModuleNames.Add("UnrealTournamentEditor");

        if (UEBuildConfiguration.bCompileMcpOSS == true)
        {
            OutExtraModuleNames.Add("OnlineSubsystemMcp");
        }
        OutExtraModuleNames.Add("OnlineSubsystemNull");
  }
    public override GUBPProjectOptions GUBP_IncludeProjectInPromotedBuild_EditorTypeOnly(UnrealTargetPlatform HostPlatform)
    {
        var Result = new GUBPProjectOptions();
        Result.bIsPromotable = true;
        Result.bSeparateGamePromotion = true;
        Result.bCustomWorkflowForPromotion = true;
        return Result;
    }
}

help me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karmanov, 2019-10-15
@serega404

This appears to be related to the following note from the 4.14 release notes:
"The GUBP build tools have been removed. Scripts for building UE4 binary distributions are now implemented in the Build Graph."
https://answers.unrealengine.com/questions/524911/...
Hope this helps you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question