GenerateProjectFiles.bat not working

Trying to build the source code for the first time, but after repo from git, and adding the zip files, when I run GenerateProjectFiles.bat nothing happens. In the Command prompt I see: Setting up unreal engine 4 project files… \Microsoft was unexpected at this time.

Hello,

What version of Visual Studio are you using?

Hello,

Have you had a chance to check out these 2 documentation pages?

https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/ProjectFileGenerator/index.html

As we work through this problem, i would love to know what additional documentation we could create tha twould make this process easier for you.

Hi Snipe3000,

Additionally, please view this Tutorial Video Walkthrough for the process of downloading from GitHub and building the Editor.

http://www.youtube.com/watch?v=usjlNHPn-jo&index=24&list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE

Let us know if this has helped or not.

Im using VS 2013 Pro, I’ve watched the video, that’s what I’ve been following trying to set this up, but can’t get past the generateprojectfiles part. The video makes it looks easy, but I can’t get it to work.
I tired searching the error, could have something to do with the way the batch file was written or something in the system PATH, I’m not sure.

Had similar issue. I’ve managed to solve this by altering my Path system environment variable. Im my case the problem was with an entry surrounded with double quotes. After removing that line - everything went smooth. So I think you should try to clear your Path variable and leave only some basic file paths there (like Windows, VS, etc.
Hope this helps :slight_smile:

It looks like something might be wrong with your system environment variables. Could you try the following?

  • Open a command prompt window (cmd.exe)
  • Type “set” and press return
  • In the output, look for a variable called VS120COMNTOOLS

What is the value for VS120COMNTOOLS set to? It should be pointing to the folder where Visual Studio 2013 is installed.

VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools

VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools

Its pointing to the correct place. I noticed the previous version VS is also in there, but doesnt exist anymore, would this be causing any issues?

I don’t have any quotes at all in my PATH settings, here is what I have:

C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\SimCraft\Craft Control Panel v2.0\modules\;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\SimCraft\Craft Control Panel\Modules\;
;
;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Support Tools\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\

Its working now. I didnt really do anything to fix it. I tried editing the PATH by removing an item and restarting the computer, but that made things worse. No matter what change I made, “cmd.exe” could no longer be found when I ran the generator. So I copy and pasted the original PATH settings I had, restarted and then the generator ran fine. So I have no clue whats going on, but its working for now.