Well I worked my butt off to get this to work, so for anyone out there here are the steps I had to take to get things to work:
my current game is set up in UE4.22. I navigated to UE github and downloaded that specific version. (https://github.com/EpicGames/UnrealEngine/releases)
Be sure to download the following 2 files:
SourceCode.zip
Commit.gitdeps.xml
Before we move forward, you need to ensure you have a proper Visual Studio set up.
I used VS2017 with the following configuration:
vs2017
Workloads
- .net desktop development
- desktop development with c++
- game development with c++
Individual Components
Note: This is not an exhaustive list, only specifically what additions I chose for UE4 setup. - .NET Framework 4.6.2 targeting pack
- .NET Framework 4.6.2 SDK
** I have no idea why, but v4.22 required this specific version. yours may be different on another version - NuGet package manager
- NuGet targets and build tasks
- Clang/C2 (I added this because i found some posts about it, not sure if necessary)
- MSBuild
- Unreal Engine Installer
- Windows 10 SDK 10.0.17763.0
** IMPORTANT: This must match your VS version! I have VS2017, so get the windows sdk with min version .17*
Now you should be good to move forward.
After downloading, I moved it to a drive that had enough space (for v4.22.3 after everything is complete for building source locally its about 70gigs. This more than likely grows as you move up versions) and extracted the folder. I went to my larger G: drive.
Once extracted, I fixed the folder structure to not have 2 levels to walk through (starts I think as UnrealEngine-Release4.22.3\UnrealEngine-Release4.22.3\files. Just move up 1 folder so its not nested)
After doing this, take the Commit.gitdeps.xml file and copy->paste it in UnrealEngine-Release4.22.3\Engine\Build location (it should overwrite the prior one)
This allows you to connect to the remote git when you run future steps.
Now you should be ready to go. In the main folder run the following steps:
- Setup.bat
- GenerateProjectFiles.Bat
once these are completed in order, open UE4.sln in VS2017
At the top level, change your target to Development Editor and select Win64.
Now you should be able to right click on UE4 and build
Once that is complete you should be set to run UE4 source!
right click again on UE4 in the project explorer → Set as startup project
Right click again → Debug → Start new Instance.
I believe I had a few issues overall, but one of the main ones was getting the correct Visual Studio version installed with the correct Windows SDK.
Best of luck everyone. Ill update if I forgot anything, its been a very long amount of hours getting this to work and putting a server on an AWS EC2 instance haha