Decided to learn how to do C++ in Unreal 4 and mix it with my blueprints, the tutorial I am currently following wants me to “Generate Visual Studio project files” but doesn’t go over what it is or does.
Additionally whenever I do generate the files I get a error saying “failed to generate project files”
ERROR : UnrealBuildTool Exception: Unable to open log file for writing (C:\Users…)
I think it’s bug and it happens when you try to generate project file before attempting to opening project it self( but in general when Saved/Logs directory does not exist in project), you can easily fix that by trying to open the project (i think) or manually create Saved/Logs folder in your project folder
Generating project files does a rather simple thing: it generates a .sln file, which is basically a project file for Visual Studio. It takes all source code inside the Source folder and tells the .sln file “Those are your files”.
As for why it doesn’t work, there is a bug with the Unreal Build Tool right now (it is responsible for generating project data, among other responsibilities) which makes it bug out when it encounters a white space in your path; here, it probably encountered the white space between your first and last name.
To fix it, refer to the batch script I wrote in this thread:
You will probably have to google how to make a batch script out of the given code though, and tweak the paths there. When running this batch script, this whitespace error will not occur.
Yeah looks like it’s a bug, going to try yours and Quexlaws suggestions now.
Thanks for letting me know by the way, for some reason I couldn’t find an answer and though I was doing something wrong. The comment below has linked a fix am going to try.
Thanks for the Link Quexlaw, I’ll make sure to give it a go the next time It is C++ practice day, was worrying I was doing something wrong for a moment.
I think this error is unrelated as it references a third party library. I do not have that folder in there myself btw. You should create a new question.