# Compile dedicated server error.

**URL:** <https://forums.unrealengine.com/t/compile-dedicated-server-error/71019>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 9, 2016, 8:08am UTC](https://forums.unrealengine.com/t/compile-dedicated-server-error/71019 "2016-08-09T08:08:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gelu110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gelu110](https://forums.unrealengine.com/u/gelu110)\
**Post date:** [August 9, 2016, 8:08am UTC](https://forums.unrealengine.com/t/compile-dedicated-server-error/71019/1 "2016-08-09T08:08:21Z")

</div>

I want to compile dedicated server, so I add an .cs file to my project, just like the follow:

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

using UnrealBuildTool;  
using System.Collections.Generic;

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

```
//
// TargetRules interface.
//
public override void SetupBinaries(
    TargetInfo Target,
    ref List&lt;UEBuildBinaryConfiguration&gt; OutBuildBinaryConfigurations,
    ref List&lt;string&gt; OutExtraModuleNames
    )
{
    base.SetupBinaries(Target, ref OutBuildBinaryConfigurations, ref OutExtraModuleNames);
    OutExtraModuleNames.Add("CVSTable");
}

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

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

public override List&lt;UnrealTargetConfiguration&gt; GUBP_GetConfigs_MonolithicOnly(UnrealTargetPlatform HostPlatform, UnrealTargetPlatform Platform)
{
    return new List&lt;UnrealTargetConfiguration&gt; { UnrealTargetConfiguration.Development };
}

```

}

when compile the project with server mode, the following error occured, what’s the problem?

E:\Program Files (x86)\Epic Games\4.12\Engine\Source\Runtime\Engine\Classes\Engine/EngineBaseTypes.h(11): fatal error C1083: can’t open include file: “EngineBaseTypes.generated.h”: No such file or directory

---

<div class="post-metadata">

**Author:** ![extralongpants](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@extralongpants](https://forums.unrealengine.com/u/extralongpants)\
**Post date:** [August 11, 2016, 4:25am UTC](https://forums.unrealengine.com/t/compile-dedicated-server-error/71019/2 "2016-08-11T04:25:33Z")

</div>

I am having the same problem ☹ I am following tutorials on how to build a standalone server, and I am getting the same include error about EngineBaseTypes.generated.h. I did find a version of that file at Epic Games\4.12\Engine\Intermediate\Build\Win64\UE4Editor\Inc\Engine\EngineBaseTypes.generated.h, but I’m not sure that’s the right one.

---

<div class="post-metadata">

**Author:** ![gelu110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gelu110](https://forums.unrealengine.com/u/gelu110)\
**Post date:** [August 12, 2016, 9:14am UTC](https://forums.unrealengine.com/t/compile-dedicated-server-error/71019/3 "2016-08-12T09:14:09Z")

</div>

Now I have solved that compile error, before that, I did not use the source code compiled engine but from launcher installed, I follow the wiki guide [A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums](https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)) and compiled successfully, but has another problem, I created a project use the thirdpersoexample template, I start the server, and then start a client, from the client console command , use open 127.0.0.1 to connect the local host server, when connected, the client’s camera will move to another position , and the character can’t be controlled by the input, what’s the matter?

controlled result with mouse and keyboard just as the bellow pic:

 ![test.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/c/dc5a16b28b4bac5414d453b38021f909c616d5ca.jpeg)
