UnrealBuildTool Fails on New C++ Project

When trying to create a new C++ using the 3rd Person template (also tried with Basic Code and 1st Person), the progress bar stops at about 90% and the following error message is presented:

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Users//Documents/Unreal Projects/CodeTest4/CodeTest4.uproject” -game -rocket -progress
Discovering modules, targets and source code for game…
UnrealBuildTool Exception: ERROR: Failed to read environment variables from XML file: C:\Users\AppData\Local\Temp\tmp2E90.tmp

The tmp file mentioned exists and is empty. I have been able to generate Blueprint projects successfully and run through some tutorials, but cannot seem to generate a C++ starter project.

Hi ,

It’s possibly related to the spaces in your path name, as reported here:

Could you post your C:\Users\AppData\Local\Temp\tmp2E90.tmp.bat file here for analysis?

Steve

Renamed, because .bat extension was being blocked from upload.

link text

That other issue you linked suggested running the contents of the batch file, which led me to a problem in my path (it had a dangling quotation mark). Re-ran the batch and it appears to have populated the .tmp file. I think this has me unstuck. Thanks!

Ah, ok. :slight_smile:

Steve