Hi,
I’ve just started the Building Escape part of the course having completed BullCows including the bonus part. For this, I added levels of play and saving the high score. Probably two common features to add, but fun to do.
I had been having a severe problem from the start of this Building Escape section which had me going around in circles for ages. Thankfully, I seem to have found the solution!
I’m using Unreal 4.26.2 and followed the videos up to: 90. Logging To The Output Log. Everything worked up to this point when I Compiled and Played, I got the logging messages. However, if I clicked on the Build button to remove the message about “Lighting Needs To Be Rebuilt” I just saw a dialog box showing Building Texture Streaming(40%) that never progressed any further, even after several hours. If I clicked on the Stop Build button, it did not stop and just sat there.
I tried re-doing this project from scratch and instead of building everything just selected “Build Lighting Only” but with the same result. I also tried creating a new project (without the starter content) without adding any Actor to the level, tried rebuilding the lighting and this had the same result, Unreal Editor froze and I had to kill it from Windows Task Manager.
Without giving up, I searched the net for any clues and eventually stumbled across this person having a similar issue:
https://answers.unrealengine.com/questions/602596/view.html
The problem was the Incredibuild tool that is installed along with Visual Studio 2022 preview which I had installed just prior to starting this Unreal course. I believe this tool is for helping with compilation of large projects, but beyond my requirements at the moment. However, the problem seemed to be that Unreal was trying to use this Incredibuild service and failing. This resulted in Unreal editor freezing and me pulling my hair out! So even though I was using Visual Studio Code and not Visual Studio 2019 (I also installed this version for Unreal 4), Unreal was trying to use Incredibuild and failing.
The solution – as outlined in the above link – was for me to tell Unreal to not use Incredibuild by editing the file:
C:\Users<USERNAME>\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Then adding the section shown bold:
<?xml version=“1.0” encoding=“utf-8” ?>
<Configuration xmlns=“https://www.unrealengine.com/BuildConfiguration”>
<BuildConfiguration>
***<bAllowXGE>false</bAllowXGE>***
</BuildConfiguration>
</Configuration>
Hope that may help people in future!