Failed to generate code project files using C++ FPS Template

So, I’ve been having difficulties getting a new project to ever successfully generate the required project files. While I’ve tried a few things over the last week or so, I had hoped my current setup based on some other answers I’ve seen on this site would work. Unfortunately, I’m still unsuccessful.

I’m running Windows 8.1 Pro.

Here’s my most recent attempt:

  1. Uninstalled the Unreal Engine 4, DirectX June 2010 SDK, Windows 8.1 SDK and Visual Studio 2013 Express for Desktop.
  2. Re-installed VS 2013 Express to the C: drive
  3. Re-installed DirectX SDK to the C: drive
  4. Re-installed Windows 8.1 SDK to the C: drive
  5. Updated VS 2013 Express to Update 1
  6. Re-installed the Unreal Engine 4.0.1 to the C: drive

I then tested the setup, to no success. Today, the Unreal Launcher updated my installation to 4.0.2, and it still doesn’t work.

At this point, I’m out of ideas. Please let me know what else I can try, and if there are any diagnostics that I can run.

I’d really love to work with the Unreal engine, but if I continue to be unable to even generate a C++ project, I won’t be able to continue my subscription.

Hey camperdave,

The screenshot shows you’re trying to create this on your H:/ drive, what kind of drive is that (mapped, virtual, physical, etc.)?

-Steve

I am having the same issue with all code generated template projects

Physical HDD - it’s a large, data-only disk.

Are you also using the express edition of visual studio? I’m hoping we can find something in common between our setups.

@camperdave

Is the version of VS2013 you installed the “for Windows Desktop” version?
http://www.microsoft.com/en-us/download/details.aspx?id=40787

Yes, I installed the wdexpress_full.exe installer that is linked off that very page.

Once installed, it appears on the start menu as “VS Express 2013 For Desktop” and the splash screen when it first appears is (Visual Studio) Express 2013 For Windows Desktop.

I am having this same issue. I have the full version of VS 2013, and have installed the express addition (to trouble shoot),

I have uninstalled and re installed VS and UE4, and have made sure my environmental variable for VS is correct. I can build UE4 from the source code, but I am not able to create any of the “CODE” projects. I can create BP projects without a problem.

Liike others here, I have my VS on a different drive…

Hopefully, this will help folks problem solve this issue, as it appears to still be a valid issue…

~Alex

Hi @alexzaviar,

What OS are you using?

I am using .

If you create a Blueprint project, are you able to successfully add a code class to the project?

I can not create a code class either. I get:

Maybe it is an issue with having “my documents” in an alternate directory. I have done this, as I was an early adopter of solid state hard drives for the OS… As such, I don’t have a lot of space on that drive, so I have my installed programs, and my documents all on different drives (storage). It is probably time to build the next system, but I am not at that point yet.

Thanks for checking this issue out .

Currently, the only one I have on my system is 4.2.1, although I had tested with 4.0.2 and 4.1.2 as well.

The only reason I don’t have the older version is due to the uninstall, re-install tests.

The location of your “My Documents” folder could be related, but I don’t think that is the case. I had moved my “My Documents” folder to a different drive and tried making some new projects and they were created successfully.

What version of the Editor are you using?

Do you have any other versions of Visual Studio installed in addition to 2013? Also, was the Express version of VS that you installed the Desktop version?

I this machine I did have several versions of Visual Studio when I first started (I think I had 2008, 2010 and 2012). Reading the other posts and threads on this issue, I ended up uninstalling all versions of Visual Studio, and only installing Visual Studio 2013.

The Express addition (which I have also uninstalled, and haven’t re-installed it yet) was the copy I got from this thread: Failed to generate code project files for "..." - Pipeline & Plugins - Epic Developer Community Forums

As such, it says it was the desk top version. I didn’t do much with it since I have been using full versions of Visual Studio for years now.

When you say you are using the full version of Visual Studio, are you referring to the Professional or Ultimate version?

Visual Studio Professional 2013.

I saw that you mentioned you had made sure the VS environment variables were correct when you reinstalled VS, but I just wanted to confirm that you had visually checked to make sure the path in VS120COMNTOOLS was correct.

I have double and triple checked that. Now I have VS installed on the C drive, and I have checked the variable by copying and pasting it into the explorer to make sure it is pointing to the correct locations. You can verify the image below (which was copy and pasted):