How do I create binary files when I build with bat?

The RunUAT.bat build does not create the necessary Binaries folder, at the “stage” step it does not find the ProjectName.target file that should be there, and as a result the build is not created. What parameter should be added to the bat to create this file. Right now I am using this command:

"E:\GameDev\UE4\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" ^
BuildCookRun ^
-project="E:\UE Projects\Concept\Concept.uproject" ^
-platform=Win64 -clientconfig=Development ^
-archivedirectory="E:\UE Projects\Concept\BuildFromBat" ^
-cook -stage -archive -pak -package -allmaps

This problem can be bypassed by first making an assembly from the editor, here folder “Binaries” is created, and then you can already do the assembly from bat. However, this method is completely unsuitable when using Git.

This problem can be solved by adding the parameter “-build” before “-stage”, this parameter creates the folder “Binaries” with all the necessary files for building

"E:\GameDev\UE4\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" ^
BuildCookRun ^
-project="E:\UE Projects\Concept\Concept.uproject" ^
-platform=Win64 -clientconfig=Development ^
-archivedirectory="E:\UE Projects\Concept\BuildFromBat" ^
-cook -build -stage -archive -pak -package -allmaps
1 Like