x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

ShooterGame Couldn't find target rules file for target

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?

Product Version: Not Selected
Tags:
more ▼

asked Sep 05 '14 at 07:24 PM in Using UE4

avatar image

BannockUK
13 2 5 10

avatar image Mrb83 Oct 04 '14 at 03:24 PM

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.

avatar image Mrb83 Oct 04 '14 at 03:25 PM

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

avatar image Doug E ♦♦ STAFF Oct 07 '14 at 03:49 PM

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?

avatar image Mrb83 Oct 12 '14 at 01:26 AM

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

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Mrb83 and Satori-

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

Cheers

Doug Wilson

more ▼

answered Oct 13 '14 at 02:10 PM

avatar image slev23 Oct 14 '14 at 12:35 AM

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

avatar image Doug E ♦♦ STAFF Oct 14 '14 at 05:03 PM

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

avatar image si_wattsy Dec 02 '14 at 04:42 PM

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

avatar image Doug E ♦♦ STAFF Dec 02 '14 at 10:00 PM

Hey si_wattsy-

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?

avatar image zoombapup Dec 20 '14 at 06:30 PM

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.

avatar image Doug E ♦♦ STAFF Dec 22 '14 at 04:41 PM

Hey zoombapup-

Since you opened your own post regarding this issue here: https://answers.unrealengine.com/questions/150149/bug-shootergame-rename-from-launcher-still-doesnt.html I will respond there with information.

avatar image jtmayer Mar 11 '15 at 05:47 PM

This is still broken in 4.7.2.

avatar image Smash Oct 24 '15 at 05:17 AM

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.

avatar image Smash Oct 24 '15 at 05:47 AM

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: https://answers.unrealengine.com/questions/15237/compiling-error.html so that is definetly still an issue and due to the similarity of the error mesage one can end up here with google

avatar image Tim C ♦♦ STAFF Oct 26 '15 at 09:59 PM

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.

Tim

avatar image Xter Jan 11 '16 at 12:12 PM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question