I want to include only some of the maps while building with UAT and from what i see DefaultEngine maps are note overriden by -map= flag, the maps in this flag are getting added as extra ones.
Soo im trying to use -MapIniSection= but no luck there either because right now UBT or even UE4Editor-Cmd.exe dont care what i put in there.
My commands are:
RunUAT BuildCookRun -ue4exe=UE4Editor-Cmd.exe -utf8output -project="ShooterGame.uproject" -noP4 -clientconfig=Development -nocompileeditor -nocompile -platform=Win64 -targetplatform=Win64 -cook -MapIniSection=NormalMaps -stage -pak -package -archive -archivedirectory=E:\Tests\TestBuilds\TestBuild
and
UE4Editor-Cmd.exe "ShooterGame.uproject" -run=Cook -MapIniSection=NormalMaps -TargetPlatform=WindowsNoEditor -fileopenlog -unversioned -abslog="Cook-2020.10.19-16.23.10.txt" -stdout -CrashForUAT -unattended -NoLogTimes -UTF8Output
On the bottom of DefaultGame.ini i have 2 extra ini sections added:
[CustomMaps]
+MapsToCook=(FilePath="/Game/Maps/Sanctuary.umap")
[NormalMaps]
+MapsToCook=(FilePath="/Game/Maps/Highrise.umap")
+MapsToCook=(FilePath="/Game/Maps/Highrise1.umap")
+MapsToCook=(FilePath="/Game/Maps/Highrise_2.umap")
but the result is the same when i use UE4Editor-Cmd.exe or RunUAT.bat with CustomMaps or NormalMaps as my MapIniSection.
Am i doing something wrong here?
Maybe my sections are placed in the wrong file?
I’ll be gratefull for any help because i cannot grasp what am I doing wrong.