Generate Projects Produces UnrealBuildTool Excepion

Due to a recent hardware failure, I was forced to re-install my PC.

I then proceeded to download Unreal Engine and clone the source of the Engine.

After running Setup.bat on the source folder, when I run GenerateProjectFiles.bat … I get the following error:

C:\Development\EpicGames\UnrealEngine>Setup.bat
Checking dependencies (excluding Mac, Android, Linux)...
Registering git hooks...
Installing prerequisites...

C:\Development\EpicGames\UnrealEngine>GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
UnrealBuildTool Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: path1
   at System.IO.Path.Combine(String path1, String path2)
   at UnrealBuildTool.VCProjectFileGenerator.ConfigureProjectFileGeneration(Stri
ng[] Arguments, Boolean& IncludeAllPlatforms) in d:\Development\EpicGames\Unreal
Engine\Engine\Source\Programs\UnrealBuildTool\System\VCProjectFileGenerator.cs:l
ine 236
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Argumen
ts, Boolean& bSuccess) in d:\Development\EpicGames\UnrealEngine\Engine\Source\Pr
ograms\UnrealBuildTool\System\ProjectFileGenerator.cs:line 295
   at UnrealBuildTool.UnrealBuildTool.GenerateProjectFiles(ProjectFileGenerator
Generator, String[] Arguments) in d:\Development\EpicGames\UnrealEngine\Engine\S
ource\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 1457
   at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(Str
ing[] Arguments) in d:\Development\EpicGames\UnrealEngine\Engine\Source\Programs
\UnrealBuildTool\System\UnrealBuildTool.cs:line 1261

GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files
.

Press any key to continue . . .

C:\Development\EpicGames\UnrealEngine>

As stated … this is a clean install … no other errors were received.

Thanks

I have ensured the Visual Studio 2012 is fully updated as well … and I am still getting these errors.

Never mind … figured it out … wrong version of Visual Studio … sigh.

The problem is your unreal engine build with a specific version of visual studio and now it can’t find the same version of visual studio. I think things can get done in a better way by epic.