in addition to @3dRaven says…
My target file is like this… and it does work
EDITOR:
public class GameNameTarget : TargetRules
{
public GameNameTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V5;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.AddRange( new string[] { " GameName" } );
}
}
SERVER:
public class GameNameTarget : TargetRules
{
public GameNameTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Server;
DefaultBuildSettings = BuildSettingsVersion.V5;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.AddRange( new string[] { " GameName" } );
}
}
GAME:
public class GameNameTarget : TargetRules
{
public GameNameTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V5;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
ExtraModuleNames.AddRange( new string[] { " GameName" } );
}
}
When you fix this problem… if you can not compile the project when the editor is open. Let me know and i will show you how to patch the “Build.bat file”… it is a problem i had when compile form surce code… i don’t know why but it can be fixed patching the Build.bat file !!