diff --git a/doc/PackageConfig.md b/doc/PackageConfig.md index 57c5c0c..9cd2279 100644 --- a/doc/PackageConfig.md +++ b/doc/PackageConfig.md @@ -98,13 +98,18 @@ the of [PackageVariant](#package-variants) documentation below for more details. ### `CookAllMaps` -*Optional Setting - boolean: Default=true* +*Optional Setting - boolean: Default=false* -If true, all `.umap` files in your Content folder will be added to the list to -cook when packaging. You can exclude some using the [`MapsExcluded`](#mapsexcluded) +If true, script will locate all `.umap` files in your Content folder and cook +then when packaging. You can exclude some using the [`MapsExcluded`](#mapsexcluded) option if you need to. -If false, only maps listed in [`MapsIncluded`](#mapsincluded) will be cooked. +If false, either the contents of [`MapsIncluded`](#mapsincluded) will be cooked, +or if that isn't specified, the maps to cook in your project packaging settings +(DefaultGame.ini) will be used. + +So if you set this to false and don't provide `MapsIncluded` then your project +settings continue to control the maps which are cooked. ### `MapsExcluded` *Optional Setting - array of strings* @@ -116,8 +121,8 @@ the map file, just the map name. ### `MapsIncluded` *Optional Setting - array of strings* -If [`CookAllMaps`](#cookallmaps) is false, the only maps that will be cooked are -those explicitly listed in this array. Do not include the folder name or extension of +If [`CookAllMaps`](#cookallmaps) is false and you include this setting, +only the maps listed here will be cooked. Do not include the folder name or extension of the map file, just the map name. ### `DefaultVariants` diff --git a/inc/packageconfig.ps1 b/inc/packageconfig.ps1 index 9ea8eb1..dd2531f 100644 --- a/inc/packageconfig.ps1 +++ b/inc/packageconfig.ps1 @@ -76,7 +76,7 @@ class PackageConfig { PackageConfig([PSCustomObject]$obj) { # Construct from JSON object - $this.CookAllMaps = $true + $this.CookAllMaps = $false $this.UsePak = $true $this.Variants = @() diff --git a/ue4-package.ps1 b/ue4-package.ps1 index 310436b..0afc4c4 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -143,6 +143,8 @@ try { $maps = $foundmaps.BaseNames + $mapsdesc = $maps ? $maps -join ", " : "Default (Project Settings)" + Write-Output "" Write-Output "Project File : $projfile" Write-Output "UE Version : $ueVersion" @@ -151,7 +153,7 @@ try { Write-Output "Zipped Folder : $($config.ZipDir)" Write-Output "" Write-Output "Chosen Variants : $chosenVariantNames" - Write-Output "Maps to Cook : $maps" + Write-Output "Maps to Cook : $mapsdesc" Write-Output ""