Unreal can't acces visual studio

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…

Any suggestions?

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 meneer_aart,

How are you running your project? Are you launching the .uproject and then launching Visual Studio? Or, are you running the editor from Visual Studio?

Thanks.

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 :slight_smile:

Does your project compile before trying to add a new class?

yes, that works without a problem:

MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=Error_Success

love that btw; error code= success :slight_smile:

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.

Let me know if Visual Studio hits a break point.

Thanks.

Whoops, looks like i spoke to soon; when i select “generate visual studio project” i do get an error:

so i never get an .sln file.

just installed 4.13 and that opens visual studio without any difficulty…could it be an issue with ue4.10 & vs 2015?

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:

I

You have to create a C++ project in order to have any C++ files.

As for the errors you are getting, what version of Visual Studio are you running?

So…you’re saying i can’t “add code to project” in a blueprint project?

I’m using Enterprise 2015:

When you add a C++ file to a Blueprint project, it turns it into a C++ project.

Please try creating a empty C++ project and see if that compiles. If it doesn’t, please show the log as to why.

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.