# ShooterGame Couldn't find target rules file for target

**URL:** <https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992>\
**Category:** Community & Industry Discussion\
**Tags:** shootergame, unreal-engine, question\
**Created:** [September 5, 2014, 7:24pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992 "2014-09-05T19:24:41Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![bannock\_1314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bannock\_1314](https://forums.unrealengine.com/u/bannock_1314)\
**Post date:** [September 5, 2014, 7:24pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/1 "2014-09-05T19:24:41Z")

</div>

Hi,

I don’t know what’s going on lately, but all of a sudden after the update to the launcher, things just seem to be incredibly broken.

When I create a blank ShooterGame template with ShooterGame as the defaulting name, I have no issues compiling code. However when I choose to create a ShooterGame template and have a custom name, this happens.

**Info ERROR: Couldn’t find target rules file for target ‘MyNameGame’ in rules assembly ‘MyNameGame\_EditorRecompileModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.**

G:\Unreal4 - This is my custom built unreal 4 folder.  
G:\MyNameGame\MyNameGame.uproject - self explanatory where my project is.

Any ideas?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44e02b1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44e02b1c](https://forums.unrealengine.com/u/anonymous_user_44e02b1c)\
**Post date:** [October 4, 2014, 3:24pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/2 "2014-10-04T15:24:36Z")

</div>

I’m currently having the same problem. I generated a project from ShooterGame using the Unreal Engine frontend. When using the name “ShooterGame” to generate the project all is fine. When using a custom name I get the above “Target rules” error.

I believe the problem could be that the build target files inside the project are still called ShooterGame\* - ShooterGame.Target.cs, ShooterGameEditor.Target.cs, ShooterGameServer.cs etc. The project generator should probably generate these files to match the project name given by the user.

I verified this was the case by renaming ShooterGame.Target.cs to [MyGame].Target.cs, and renamed the ShootGameTarget class inside the file to be [MyGame]Target, and did this for the other target files, and then the build got passed this error.

So it seems generating a ShooterGame project with a different name isn’t working right.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44e02b1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44e02b1c](https://forums.unrealengine.com/u/anonymous_user_44e02b1c)\
**Post date:** [October 4, 2014, 3:25pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/3 "2014-10-04T15:25:44Z")

</div>

P.S This is with a github build of the 4.4.3 engine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 7, 2014, 3:49pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/4 "2014-10-07T15:49:43Z")

</div>

Hey Satori-

I just wanted to confirm that we are seeing the same thing. When you create a new ShooterGame project and rename it the first thing you do is compile in editor and get this error, is that correct?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44e02b1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44e02b1c](https://forums.unrealengine.com/u/anonymous_user_44e02b1c)\
**Post date:** [October 12, 2014, 1:26am UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/5 "2014-10-12T01:26:39Z")

</div>

That is what I’m seeing with the same setup as OP.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 13, 2014, 2:10pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/6 "2014-10-13T14:10:44Z")

</div>

Hey Mrb83 and Satori-

This has been addressed (CL 2319926) and will be included in a future release of the engine.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8414475](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8414475](https://forums.unrealengine.com/u/anonymous_user_e8414475)\
**Post date:** [October 14, 2014, 12:35am UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/7 "2014-10-14T00:35:35Z")

</div>

Is there anything we can do to fix it now or just wait for the update?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 14, 2014, 5:03pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/8 "2014-10-14T17:03:17Z")

</div>

Waiting for the update would be your best option at the moment.

---

<div class="post-metadata">

**Author:** ![si\_wattsy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@si\_wattsy](https://forums.unrealengine.com/u/si_wattsy)\
**Post date:** [December 2, 2014, 4:42pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/9 "2014-12-02T16:42:27Z")

</div>

Hi,

I have just come across this error on 4.5.1. Is it still an ongoing issue or has it now been fixed ?

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 2, 2014, 10:00pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/10 "2014-12-02T22:00:11Z")

</div>

Hey

I was able to create a new ShooterGameTemplate with a different name from the launcher. Are you working form the launcher or from GitHub? Also, what is the message you receive when you try to create a project?

---

<div class="post-metadata">

**Author:** ![zoombapup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zoombapup](https://forums.unrealengine.com/u/zoombapup)\
**Post date:** [December 20, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/11 "2014-12-20T18:30:34Z")

</div>

Just wanted to say that this same issue is still occurring. I created a new project in 4.6.1 from the launcher, called it something else, got the same issue as the OP.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 22, 2014, 4:41pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/12 "2014-12-22T16:41:07Z")

</div>

Hey -

Since you opened your own post regarding this issue here: [Shootergame rename from launcher still doesn't work - Platform & Builds - Epic Developer Community Forums](https://answers.unrealengine.com/questions/150149/bug-shootergame-rename-from-launcher-still-doesnt.html) I will respond there with information.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11642af0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11642af0](https://forums.unrealengine.com/u/anonymous_user_11642af0)\
**Post date:** [March 11, 2015, 5:47pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/13 "2015-03-11T17:47:08Z")

</div>

This is still broken in 4.7.2.

---

<div class="post-metadata">

**Author:** ![Smash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Smash](https://forums.unrealengine.com/u/Smash)\
**Post date:** [October 24, 2015, 5:17am UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/14 "2015-10-24T05:17:34Z")

</div>

This is still broken in 4.10.0  
So after a full year not fixed.  
I came here because i encountered this first with the sidescroller c++ template and checked then also the shooter template too … its the same bug.  
And as for the cl number its of no use when its nowhere to be found on the net except for this thread.

---

<div class="post-metadata">

**Author:** ![Smash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Smash](https://forums.unrealengine.com/u/Smash)\
**Post date:** [October 24, 2015, 5:47am UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/15 "2015-10-24T05:47:47Z")

</div>

With further investigation i was on the wrong track …  
this issue seems to be fixed because the files are indeed named right.

i have the following problem:

> **[Compiling Error](https://forums.unrealengine.com/questions/15237/compiling-error.html)**
>
> Hi, I just started the FPSProject tutorial in epic wiki. But at first steps for compiling the game I have these errors below: Error	1	error : Couldn’t find target rules file for target ‘FPSProjectEditor’ in rules assembly ...

so that is definetly still an issue and due to the similarity of the error mesage one can end up here with google

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [October 26, 2015, 9:59pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/16 "2015-10-26T21:59:47Z")

</div>

Hi Smash,

I took a look at the other issue that you linked, but was unable to reproduce that issue in 4.10. If you have not already done so, could you create a new post in the Bug Reports section about the issue you are currently experiencing with as much information as possible and we will take a look at what is going on.

---

<div class="post-metadata">

**Author:** ![Xter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xter](https://forums.unrealengine.com/u/Xter)\
**Post date:** [January 11, 2016, 12:12pm UTC](https://forums.unrealengine.com/t/shootergame-couldnt-find-target-rules-file-for-target/292992/17 "2016-01-11T12:12:45Z")

</div>

Hi,

I know this thread is pretty old, but I hope I can help. I had the very same error popping out, but as I tracked down I found out that error was coming because of in correct sign automatically generated by Win10 in project folder name (yeah its really weird). In Intermediate folder there is a “PCH.ProjectName.h.cpp” file. There should be a path to your project’s header file. Check if the path is correct. I had some incorrect signs there and after manually changing them, error disappeared. Peace

Xter
