Hi folks,
So I’m not a coder but I did have this issue and after alot of trial and error I managed to fix it.
I tried installing Visual studio as mentioned a few posts ago but that made no difference. What fixed it for me was that I had made iterations of my map files and that was causing issue.
Basically if I started with FPS template which created example.udk map file game would build correctly.
If I wanted to make a few changes and save a few more versions example2.udk etc. It would eventually throw up “RunUAT.bat ERROR: AutomationTool was unable to run successfully.”
So I tried to fix it by making a subfolder in my map folder called WIP maps - but even when example.udk map was only one in there it would still throw error. What I do now is make my WIP map folder in a completely non Unreal related folder elsewhere on my drive and only keep example.udk file in map folder and it builds fine every time for me now.
Hope that helps. Message me if you want to know more.