Last active
October 31, 2024 17:01
-
-
Save drewsberry/235e865eee90dc5e60ff to your computer and use it in GitHub Desktop.
UE4 Windows command line building
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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" |
very helpful! thank you
thanks. this saved me a lot of time.
Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
This can be fixed by changing the build command part
-stage -archive -archivedirectory="Output Directory"
to
-stage -stagingdirectory="Output Directory"