Download

Dedicated Server

Good morning! I am having some trouble getting my dedicated server to build.

I am getting this error in regards to my UBT Server build target:


[1/1] Link MicrodoseVRServer-Win64-Shipping.exe
   Creating library C:\Users\Mystic\Documents\Microdose VR\Binaries\Win64\MicrodoseVRServer-Win64-Shipping.lib and object C:\Users\Mystic\Documents\Microdose VR\Binaries\Win64\MicrodoseVRServer-Win64-Shipping.exp
CVTRES : fatal error CVT1103: cannot read file
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
ERROR: UBT ERROR: Failed to produce item: C:\Users\Mystic\Documents\Microdose VR\Binaries\Win64\MicrodoseVRServer-Win64-Shipping.exe

I created my build target from this website: https://wiki.unrealengine.com/Standalone_Dedicated_Server#Linux_Compiler_Toolchain


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

using UnrealBuildTool;
using System.Collections.Generic;

public class MicrodoseVRServerTarget : TargetRules
{
    public MicrodoseVRServerTarget(TargetInfo Target)
    {
        Type = TargetType.Server;
    }

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

    public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
    {
        // It is valid for only server platforms
        return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
    }

    public override List<UnrealTargetPlatform> GUBP_GetPlatforms_MonolithicOnly(UnrealTargetPlatform HostPlatform)
    {
        if (HostPlatform == UnrealTargetPlatform.Mac)
        {
            return new List<UnrealTargetPlatform>();
        }
        return new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Win32, UnrealTargetPlatform.Linux };
    }

    public override List<UnrealTargetConfiguration> GUBP_GetConfigs_MonolithicOnly(UnrealTargetPlatform HostPlatform, UnrealTargetPlatform Platform)
    {
        return new List<UnrealTargetConfiguration> { UnrealTargetConfiguration.Development };
    }
}


I am running Visual Studio as administrator…I think there is something off in the target file.

Thank you!