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"

"Failed to add class x. Failed to generate project files."

I created the "top down" C++ project, went to File / Add Code to Project, selected WorldSettings, typed in "WorldSettingsX" as the name, and got "Failed to add class WorldSettingsX. Failed to generate project files."

What causes this?

I'd thought perhaps I'd accidentally left the project open in Visual Studio separately, but VS was not open.

This seems to occur with any type of object I try to add, such as Pawns.

What am I doing wrong?

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:13 AM in C++ Programming

avatar image

ue4-archive ♦♦ STAFF
50.1k 3672 2002 9129

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:14 AM +

My normal workflow is to run the Editor from VS, and add new code from the Editor. So, I believe it is supposed to work with VS open. Was Rocket installed after VS?

show all comments (comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey Paul,

Would you mind sending us the project if there hasn't been a lot done to it; non-specific things? Just zip it and put in on the FTP or you can mail it to me at Ryan.VanEnkevort@epicgames.com

Best Regards,

Ryan

more ▼

answered Mar 11 '14 at 02:14 AM

avatar image

ue4-archive ♦♦ STAFF
50.1k 3672 2002 9129

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Perhaps try doing a full code recompile from Visual Studio express?

I have steps and pictures on this below

Let us know if any issue remains after successful full code-recompile

Compiling C++ for UE4

Rama

more ▼

answered Mar 11 '14 at 02:14 AM

avatar image

ue4-archive ♦♦ STAFF
50.1k 3672 2002 9129

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:14 AM

Thanks, Rama -- That still doesn't fix it. It seems to be something with that particular project; I created a new one based on the FPS example and I was able to add classes to that one.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:14 AM +

Oddly, it worked for me after I created a whole new project based on the Top Down template.

So, presumably, there was something I'd done to that project that caused me to be unable to add new classes to it. I am wondering if anyone knows:

A) what I'd done to cause the problem, B) what the error means, and C) what to do to salvage a project if I come across the error again.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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