CookAllMaps now defaults false, instead use project settings by default if none set explicitly

This commit is contained in:
Steve Streeting 2020-10-12 14:20:37 +01:00
parent 2c4e65587b
commit 584d6c6666
3 changed files with 15 additions and 8 deletions

View File

@ -98,13 +98,18 @@ the of [PackageVariant](#package-variants) documentation below for more details.
### `CookAllMaps` ### `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 If true, script will locate all `.umap` files in your Content folder and cook
cook when packaging. You can exclude some using the [`MapsExcluded`](#mapsexcluded) then when packaging. You can exclude some using the [`MapsExcluded`](#mapsexcluded)
option if you need to. 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` ### `MapsExcluded`
*Optional Setting - array of strings* *Optional Setting - array of strings*
@ -116,8 +121,8 @@ the map file, just the map name.
### `MapsIncluded` ### `MapsIncluded`
*Optional Setting - array of strings* *Optional Setting - array of strings*
If [`CookAllMaps`](#cookallmaps) is false, the only maps that will be cooked are If [`CookAllMaps`](#cookallmaps) is false and you include this setting,
those explicitly listed in this array. Do not include the folder name or extension of only the maps listed here will be cooked. Do not include the folder name or extension of
the map file, just the map name. the map file, just the map name.
### `DefaultVariants` ### `DefaultVariants`

View File

@ -76,7 +76,7 @@ class PackageConfig {
PackageConfig([PSCustomObject]$obj) { PackageConfig([PSCustomObject]$obj) {
# Construct from JSON object # Construct from JSON object
$this.CookAllMaps = $true $this.CookAllMaps = $false
$this.UsePak = $true $this.UsePak = $true
$this.Variants = @() $this.Variants = @()

View File

@ -143,6 +143,8 @@ try {
$maps = $foundmaps.BaseNames $maps = $foundmaps.BaseNames
$mapsdesc = $maps ? $maps -join ", " : "Default (Project Settings)"
Write-Output "" Write-Output ""
Write-Output "Project File : $projfile" Write-Output "Project File : $projfile"
Write-Output "UE Version : $ueVersion" Write-Output "UE Version : $ueVersion"
@ -151,7 +153,7 @@ try {
Write-Output "Zipped Folder : $($config.ZipDir)" Write-Output "Zipped Folder : $($config.ZipDir)"
Write-Output "" Write-Output ""
Write-Output "Chosen Variants : $chosenVariantNames" Write-Output "Chosen Variants : $chosenVariantNames"
Write-Output "Maps to Cook : $maps" Write-Output "Maps to Cook : $mapsdesc"
Write-Output "" Write-Output ""