How do I "add/connect" the downloaded source code to my project code?

You can just copy your project’s folder into the root of the source code UE4 directory, then run the GenerateProjectFiles.bat batch file to regenerate the VS solution. If you then open the solution in Visual Studio, you should be able to see your project under ‘Games’ near the bottom of the Solution Explorer.

For example, if you installed the source code version of UE4 to C:/UE4/ and your project is called MyProject, then copy your project’s files to C:/UE4/MyProject/.

To debug, right-click your project in Visual Studio and select Set as Startup Project. Make sure Debug Editor and Win64 are selected. If you installed the UnrealVS plug-in, you can hit F7 to rebuild your project - otherwise right-click and click Rebuild. F5 will run your compiled project as the Editor, if you pass -game on the command line it will run as a standalone game.

Hi!

I’m having a game project in visual studio created from the unreal engine launcher coming with the installation package. Now I have some problems in my project I would like to debug but since I don’t have the source or symbol files that makes it hard. Therefore I decided to download and compile the source of the engine which worked fine. But now I need to “add/connect” the downloaded version of unreal engine to my project in order to being able to fully debug my source code. How can this be achieved or do I need to create a new empty project and copy all my source files?

don’t copy it to to /UE4/Engine/Source/MyProject, copy it to /UE4/MyProject.

I get the following error:

Setting up Unreal Engine 4 project files...
UnrealBuildTool Exception: ERROR: Not expecting project Engine\Intermediate\ProjectFiles\UE4.vcxproj to already have a target rules of with configuration name Game (UE4GameTarget) while trying to add: MyTestGameTarget
        
GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files.

I just copied the folder of my project to the source directory of a clean installation of UE4.

I tried that but it doesn’t find it or at least nothing happens expect generating the normal UE4 solution without a games filter/folder. I starting to get desperate…

No, I have Engine and Programs.

If you scroll all the way down in your Visual Studio Solution Browser you don’t see a ‘Games’ filter? You should have Engine, Games, Programs, Templates.

I don’t know why a moderator has marked the question as solved since I haven’t got it to work yet. I tried to wipe all files and start over but am still having the same issue as before. I place my project folder in the same folder as GenerateProjectFiles.bat exists in. I run the bat and then I open the generated UE4.sln. Inside visual studio I find Engine and Programs filters, nothing else. It compiles but it’s only the engine not my game project.

Questions sometimes mark themselves as answered. I gotta talk to some other folks before I can give you more details.

Okay I see, thank you.

It seems like an update just came that pretty much solves this problem. What an amazing timing =) Now you can right click on your project and then choose “Switch Unreal Engine version…”, select the folder were your engine source is located. Then right click again and generate the project files.

It seems like an update just came that solves this problem. Anyhow thanks a lot for your help! =)