Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UE4 Windows command line building
:: Build client
RunUAT BuildCookRun -project="full_path.uproject"^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -allmaps -build -stage^
-pak -archive -archivedirectory="Output Directory"
:: Cook client
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -allmaps -NoCompile -stage^
-pak -archive -archivedirectory="Output Directory"
:: Build server
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -server -serverplatform=Win64 -noclient -build -stage^
-pak -archive -archivedirectory="Output Directory"
:: Cook server
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^
-noP4 -platform=Win64^
-clientconfig=Development -serverconfig=Development^
-cook -server -serverplatform=Win64 -noclient -NoCompile -stage^
-pak -archive -archivedirectory="Output Directory"
@zulman

This comment has been minimized.

Copy link

@zulman zulman commented Apr 14, 2017

Thank you, very helpful!

@cesclong

This comment has been minimized.

Copy link

@cesclong cesclong commented May 10, 2017

thank you ,so helpful to me

@ChristianHohlfeld

This comment has been minimized.

Copy link

@ChristianHohlfeld ChristianHohlfeld commented Mar 15, 2018

very nice, helped me alot. Thanks! 👍

@Memnarch

This comment has been minimized.

Copy link

@Memnarch Memnarch commented Feb 11, 2019

on 4.21(it worked in 4.19) we constantly get "failed to delete AutomationUtils.Automation.dll in 10 attempts". Any solution? This seems to affect only 4.21(maybe already 4.20)

@AKuehnert

This comment has been minimized.

Copy link

@AKuehnert AKuehnert commented Mar 22, 2019

@Memnarch in this -> ( https://blog.mi.hdm-stuttgart.de/index.php/2017/02/11/uat-automation/ ) article the parameters are explained. I got this error when trying to use compile on an epic games launcher ue4 version because this can't be compiled in contrast to a source build

@Flassari

This comment has been minimized.

Copy link

@Flassari Flassari commented Sep 19, 2019

Stage is when the build tools packages the built game to a staging directory for delivery.
Archive is when it copies the staged build to another directory. Optional.

Most people are doing one extra stage of needlessly copying the whole game to another folder. You'll effectively have 4 versions/copies of the game files:

  • Original assets.
  • Packaged assets in Saved folder.
  • Staged assets in Stage folder.
  • Archived assets in Archive folder. <-- Optional and should be removed if you don't need an extra copy of the game.

This can be fixed by changing the build command part
-stage -archive -archivedirectory="Output Directory"
to
-stage -stagingdirectory="Output Directory"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment