How to package your game with commands
This aims to be a quick guide on how to package and distribute your game. Some points: If you use unreferenced blueprints/objects, you should add them a) using command line or b) by creating a leve...
This aims to be a quick guide on how to package and distribute your game.
Some points:
- If you use unreferenced blueprints/objects, you should add them a) using command line or b) by creating a level with all the objects you need to publish in your game (not recomended)
- Cooking is the proccess of removing unwanted files from your final build
- You can choose to Pak (like zip) all your content into a single file
- If you are building a dedicated server, you need to have the compiled version of Unreal or will not work.
- You will find the RunUAT at UnrealEngine/Engine/Build/BatchFiles
- Add the command -build if you're using Source Version from Github
- If the -allmaps flag is used, [AllMaps] with valid +Map=\Game\Maps\Map.umap syntax should be added to DefaultEditor.ini
- Specific maps can be built (must remove -allmaps flag) using the -maps=Map1+Map2+Map3
Compiling the client (With PAK files):
RunUAT BuildCookRun -project="full_project_path_and_project_name.uproject" -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory="Output Directory"
Cooking the client (With PAK files):
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"
Compiling the dedicated server (With PAK files):
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"
Cooking the dedicated server (With PAK files):
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"