I made a small batch file to download the files I need on the folder where the batch file is:
@echo off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
CHCP 65001 >nul
PUSHD %~dp0
TITLE "Git Installer, Configurator, UE5 repo downloader with GIT"
COLOR A
SET res=F
ECHO 1. Latest : 5.0
ECHO 1. Latest unmoded : ue5-early-access
ECHO 2. Latest Moded : ue5EA-vs2022p6
ECHO 3. Exit
CHOICE /N /C:1234 /M "PICK A BRANCH TO CLONE"
IF ERRORLEVEL ==1 set "UE_Folder=5.0"
IF ERRORLEVEL ==2 set "UE_Folder=ue5EA-vs2022p6"
IF ERRORLEVEL ==3 set "UE_Folder=ue5-early-access"
IF ERRORLEVEL ==4 exit
git clone https://github.com/EpicGames/UnrealEngine.git %UE_Folder% -b %UE_Folder%
CD %UE_Folder%
ECHO %~dp0
start explorer /n, /e, %~dp0%UE_Folder%
ECHO Do your changes now...
pause
SET "SrcFile=setup.bat"
SET "OldStr=POPD"
SET "NewStr=EXIT"
FOR /f "tokens=1,* delims=]" %%A IN ('"TYPE %SrcFile%|FIND /n /v """') DO (
SET "line=%%B"
IF DEFINED line (
CALL SET "line=ECHO.%%line:%OldStr%=%NewStr%%%"
FOR /f "delims=" %%X IN ('"ECHO."%%line%%""') DO %%~X >> %SrcFile%
) ELSE ECHO. >> %SrcFile%
)
START /W %SrcFile%
START /W GenerateProjectFiles.bat -2022
EndLocal
EXIT
Basically, I give the user ( me, in this case ), the options for downloading ( In this Case I used the 3 that I tried to compile ) one of the three posted branches ( 5.0
, ue5-early-access
and ue5EA-vs2022p6
), on selection, it start downloading it onto the folder we are in and pause for the user to make his changes, before execution Setup.bat
and GenerateProjectFiles.bat
[ I removed the POPD at the end of Setup.bat
so it can jump to the other batch file - Also send the -2022 parameter for the VS2022, which I don’t know if I should be using it on the 5.0
branch - The user Stranger on Discord pointed me out that 5.0 is the up-to-date branch, and not the ue5-early-access
o ue5-main
as the documentation states].
Note: I launch it with Admin Rights ( Which shouldn’t cause a problem ).
Integrate new Steamworks SDK 1.53 to the mix.
Then, open the UE5.sln
which comes inside the newly created folder ( VS2022 starts and a Popup says if I want to use the recommended NET framework 4.8 - I say yes ), right click on UE5
in the Solution Explorer ( under Engine ), Build - Wait for it to build ( It took me +4 hours on a i7-8700k @ 5Ghz, 16GB DDR3 @ 2666 and M.2 - Many people said it would take around 1 ~ 2 hours ).
Last time, I got 413 errors ( Most of them due to not having Linux, MAC, Android… SDKs ).
Is there any step I’m doing wrong?
P.S.: Using Visual Studio Community 2022 - Latest version ( 17.0.1 )
Settings:
Game development with C++ Optional ->
* C++ profiling tools
* C++ AddressSanitizer
* IntelliCode
* Windows 10 SDK ( 10.0.20348.0 )
* Unreal Engine installer
* Android IDE Support for Unreal engine
Individual Components ->
* .NET Framework 4.7 targeting pack
* .NET Framework 4.7.1 targeting pack
* .NET Framework 4.6.1 targeting pack