I am tring to make a Dedicated Server Binary and have followed the Tutorial(s) on the wiki.
- I downloaded and Compile the engine from source.
- Switched the Engine Version to the source
- Built the game with Development Editor
- Cook content for Windows Server with UnrealFrontend
- Made a Server Target
- Switched the Version to Development Server
- Rebuilt.
Now when it builds (no errors visible) it creates just the game EXE and no server EXE in Binaries/Win64.
using UnrealBuildTool;
using System.Collections.Generic;
public class DMZServerTarget : TargetRules
{
public DMZServerTarget(TargetInfo Target)
{
Type = TargetType.Server;
bUsesSlate = false;
}
//
// TargetRules interface.
//
public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
{
// It is valid for only server platforms
return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
}
public override void SetupBinaries(
TargetInfo Target,
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
ref List<string> OutExtraModuleNames
)
{
OutExtraModuleNames.Add("DMZ");
}
public override void SetupGlobalEnvironment(
TargetInfo Target,
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
)
{
// Turn on shipping logging, this will only apply to monolithic builds
UEBuildConfiguration.bUseLoggingInShipping = true;
UEBuildConfiguration.bCompileSteamOSS = false;
UEBuildConfiguration.bCompileCEF3 = false;
}
}