# Failed to cook dedicated server

**URL:** <https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254>\
**Category:** Multiplayer & Networking\
**Tags:** Cooking, client, Server, unreal-engine, Multiplayer, question\
**Created:** [June 28, 2016, 7:01am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254 "2016-06-28T07:01:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [June 28, 2016, 7:01am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/1 "2016-06-28T07:01:03Z")

</div>

I develop a multi-player game.  
I will hosting the game server on a dedicated server, so I need the dedicated and standalone server

I follow this tutorial, but, at step 8, I can’t cook content…  
The message log is : “game module target is not found”  
Any idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [June 28, 2016, 7:01am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/2 "2016-06-28T07:01:45Z")

</div>

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [June 29, 2016, 8:24pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/3 "2016-06-29T20:24:41Z")

</div>

,

In order to better assist you, I will need the full output logs uploaded as a .txt file.

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [June 30, 2016, 3:40pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/4 "2016-06-30T15:40:31Z")

</div>

Sorry, there is the log [link text][1]

[96689-projectlauncher.log](https://forums.unrealengine.com/uploads/short-url/bSe7laRgyllmhEZnbqmI9nFGeU8.log) (7.36 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [June 30, 2016, 8:59pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/5 "2016-06-30T20:59:52Z")

</div>

,

It looks as though your issue can be resolved by reviewing [this post][1]. Please let me know if you’re still having trouble after going through the steps.

Thanks! 🙂

[Issue when building dedicated server - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/180903/issue-when-building-dedicated-server.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 4, 2016, 8:24am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/6 "2016-07-04T08:24:26Z")

</div>

I think I have not package the project.  
So, after launch the uproject with the build engine, I launch the package build but I have some errors.  
[link text][1]

[97050-log.txt](https://forums.unrealengine.com/uploads/short-url/2vrhDCIKkg9inrHDkKWG0W1nC80.txt) (15.6 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 5, 2016, 6:08pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/7 "2016-07-05T18:08:40Z")

</div>

Your error is as follows: MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Couldn’t find target rules file for target ‘-Project=C:\Users\Ludovic\Documents\Unreal Projects\test\test.uproject’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.

Please make sure you’ve built your project correctly in Visual Studio for the target platform. Check through the steps in this [AnswerHub post][1] and see if any of them help get you further along in packaging. Please also try to create a new project that’s similar to the one you’re working with and try to package it.

Please upload the new logs once you’ve attempted these.

Thanks!

[C++ Compile Error "Couldn't find target rules file for target" - Multiplayer & Networking - Epic Developer Community Forums](https://answers.unrealengine.com/questions/353504/c-compile-error-couldnt-find-target-rules-file-for.html)

---

<div class="post-metadata">

**Author:** ![Ludea35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ludea35](https://forums.unrealengine.com/u/Ludea35)\
**Post date:** [July 5, 2016, 7:50pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/8 "2016-07-05T19:50:21Z")

</div>

I delete my project, recreate a new c++ project, build it with VS

 ![97260-build+configuration.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/7/967753eae48698a7aa49194b4806c1818531a3da.png)

I delete the build and intermediate/build folder but I have always the same error … I can’t package[link text][2]

---

<div class="post-metadata">

**Author:** ![Ludea35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ludea35](https://forums.unrealengine.com/u/Ludea35)\
**Post date:** [July 5, 2016, 8:01pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/9 "2016-07-05T20:01:08Z")

</div>

(I create my project with my build of unreal engine )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 5, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/10 "2016-07-05T20:47:49Z")

</div>

We are on the same project, and we have the same error

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 6, 2016, 10:42am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/11 "2016-07-06T10:42:16Z")

</div>

I will update VS to update 3 and retry

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 6, 2016, 2:20pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/12 "2016-07-06T14:20:32Z")

</div>

Have you both updated? Visual Studio update 3 is going to more than likely cause trouble for you with 4.12.4.

Is this happening on a newly created project? If you can provide me with exact, full repro steps, I will gladly try to reproduce what you all are doing here.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 6, 2016, 9:12pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/13 "2016-07-06T21:12:21Z")

</div>

there is a fix for Update 3 :

> Hi everyone,
> 
> I just wanted to pop in here real quick to let you know that we do not yet officially support Update 3 for Visual \>Studio. Our goal is to have support for new VS updates by the time they are officially released (Release Candidate \>versions are not official final release versions). Sometimes we are able to get that support into the Engine early, but \>as of right now it is not in place.
> 
> I brought this up with the individual who will be responsible for making sure support for Update 3 is added to the \>Engine. He has not done any testing on this yet, but he believes it should be possible to correct this issue by \>opening the WindowsPlatformCompilerSetup.h file in source code (this won’t correct it for the binary version of the \>Engine, unfortunately), and remove 4599 from the table of warnings at the top. Then add #pragma warning(disable : \>4599) below the list. It is possible that this may not work since the warning is coming from command line arguments \>instead of source, but it’s the first thing he is going to try when he starts working on support for Update 3. He also \>said that he does not believe this edit will have any adverse affect on your game code generation, but stressed \>again that he has not done any testing yet.
> 
> For now we recommend sticking with Visual Studio 2015 Update 2.

I have not test yet with it.

For step, I just open the last Unreal version (4.12.4) with the launcher( or from source, it’s the same error), create a c++ project. I try to open the uproject file, but it says the dll is misiing and rebuild from source. I open the sln project, build with VS and reopen the uproject. I try to package and I have the error message

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 7, 2016, 2:14pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/14 "2016-07-07T14:14:21Z")

</div>

Thanks for sharing the workaround. 🙂

So I created a C++ project on the binary version of the engine. I closed Visual Studio and the project and proceeded to open the .uproject. It loaded without any dll errors.

Please update me once you have tested with the update.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 7, 2016, 8:35pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/15 "2016-07-07T20:35:17Z")

</div>

I up to 4.12.5 and VS update 3, and try to create a c++ project  
There still the same error message …

> The project could not be compiled. Would you like to open it in Visual Studio?
> 
> Running D:/Programmes/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe test Development Win64 -\>project=“C:/Users/Ludovic/Documents/Unreal Projects/test/test.uproject” -editorrecompile -progress -noubtmakefiles \>-NoHotReloadFromIDE  
> ERROR: Couldn’t find target rules file for target ‘-project=C:/Users/Ludovic/Documents/Unreal \>Projects/test/test.uproject’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.  
> Location: D:\Programmes\Epic Games\4.12\Engine\Intermediate\Build\BuildRules\UE4Rules.dll  
> Target rules found:  
> UE4Editor - D:\Programmes\Epic Games\4.12\Engine\Source\UE4Editor.Target.cs  
> UE4Game - D:\Programmes\Epic Games\4.12\Engine\Source\UE4Game.Target.cs  
> UnrealHeaderTool - D:\Programmes\Epic \>Games\4.12\Engine\Source\Programs\UnrealHeaderTool\UnrealHeaderTool.Target.cs

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 7, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/16 "2016-07-07T21:16:54Z")

</div>

I try this fix : [link text][1]  
but when I create a project, I have a new error message …

> An error occurred while trying to generate project files.
> 
> Running D:/Programmes/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -progress  
> UnrealBuildTool Exception: ERROR: A game project path was not specified, which is required when generating \>project files using an installed build or passing -game on the command line

I don’t understand, I add the path …

[How can I resolve the error "Couldn't find target rules file for target 'MyProjectName'" when building a project? - C++ - Epic Developer Community Forums](https://answers.unrealengine.com/questions/13614/couldnt-find-target-rules-file-for-target-myprojec.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 8, 2016, 1:45pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/17 "2016-07-08T13:45:15Z")

</div>

,

We believe that you’re missing your Project.Target.cs file. In order to get this file back, you’ll have to recreate it yourself.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 8, 2016, 2:36pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/18 "2016-07-08T14:36:23Z")

</div>

the files already exist in folder

![97705-target.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/d/60dff2cb26150f2a13e82b1a052db5d991379dae.png)

source :

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

using UnrealBuildTool;
using System.Collections.Generic;

public class testTarget : TargetRules
{
	public testTarget(TargetInfo Target)
	{
		Type = TargetType.Game;
	}

	//
	// TargetRules interface.
	//

	public override void SetupBinaries(
		TargetInfo Target,
		ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
		ref List<string> OutExtraModuleNames
		)
	{
		OutExtraModuleNames.Add("test");
	}
}

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 8, 2016, 5:37pm UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/19 "2016-07-08T17:37:12Z")

</div>

Thank you for verifying that you have that file. Do you have your Server.Target.cs file? If not, that will also throw this error out.

Also, in the Intermediate folder, there is a “PCH.ProjectName.h.cpp” file. There should be a path to your projects header file. Check if the path is correct.

Update me when you can, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7e728d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7e728d4](https://forums.unrealengine.com/u/anonymous_user_e7e728d4)\
**Post date:** [July 9, 2016, 9:50am UTC](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254/20 "2016-07-09T09:50:10Z")

</div>

I have not this files, so I create it and add some code with [link text][1]

[A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Standalone_Dedicated_Server)  
I retry to cook, but fail …(same error)

I found the “PCH.ProjectName.cpp”; The path of my project header file is ok.

[Next page](https://forums.unrealengine.com/t/failed-to-cook-dedicated-server/362254.md?page=2)
