Hi, i’m running unreal 4.10.4 and i’m trying to add an empty C++ class to a new project. According to the output log visual studio can’t be accessed. I’ve installed VS 2015 enterprise update 3, with common tools. (in fact i selected EVERYTHING when installing) but it still won’t budge.
I’ve installed unreal on 2 other pc’s and had no issues with adding code to the project, but all of a sudden on a brand new pc (running win7) i’m faced with this…
I had this problem not so long a go, recently I installed UE 4.12 and reinstalled VS2015 from UE4 editor.
You can try to create a blank proj and add C++ and see what errors you get, and post the log file here, someone definitely will help. Or just reinstall, it worked for me. Also i had a problem where my proj name wasn’t suitable, try naming your blank project like MyProj…
Hey, thanks for you replies.
I’m simply trying to add a new (empty) C++ class via file-> new C++ class…->next->create class in the editor. So it’s all just default unreal editor. I need an empty class for a (third party) plugin to work. I’ve attached (part) of the log when i try to add the class: LOG
Thanks in advance to anyone willing to sacrifice some time on this
Can you run your project via the .sln file, which will open Visual Studio, and then debug your game from Visual Studio by pressing the “Local Windows Debugger” button, at the top center of the top menu bar.
This might take a few minutes to launch but once it has and you are back in the editor, create a new C++ class as you normally would in the Content Browser.
Are you sure that when you are creating your project that you are creating a C++ project? You shouldn’t have to generate visual studio project files and if you are missing the Source folder, it looks like you are making a Blueprint project.
I start the project as a "blueprint"project. But that doesn’t matter should it? On the other computers i also start the projects as blueprint projects and they have no such issue. When i do try to start a C++ project, i get this error right away (without the project starting up)
It matters if you want to create a C++ project; you’ll want to create it as a C++ project. You can technically convert a Blueprint project to C++ but it is not done for you.
As for when you create a C++ project and get that window, did you press “Open with Visual Studio”?
I don’t think i want to create a c++ project. I just want to add a dummy class to my blueprint to be able to run this plugin. After that i have no particular need for C++ code.
In fact, i would prefer to do as much “programming” in the blueprint because the unreal editor will mainly be used by students (i’m a lab coordinator at a university) with little to no programming skills.
To ansewer your question, yes visual studio does start when i press “open with visual studio” but if i immediatly try to build the solution i get various errors:
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.