Packaging error in UE 4.3 after changing default map

please can anyone confirm this possible bug
using UE 4.3 Preview installed through launcher
steps to reproduce
1-start new project,choose any blueprint template…puzzle in my case
2-package project using android(all),then wait until packaging finish
3-save level as…use any name.now you have two maps in folder maps
4-go to project settings change game default map to the other map
5-package again using android(all) setting
this will result in packaging error on my machine.

Howdy kimkimkoo,

Thank you for posting this question. I have found out, after looking into the issue that you are having, that this in fact a bug. I have entered the bug into our database so that it may be looked into a possibly fixed in a future build.

Thanks and have a great day!

I’m having this problem in 4.3.0 final too :frowning:

Is there some workaround for now?

EDIT: Selecting the default maps again, ue4 crashed once while packaging. The next attempts gives error too while packaging, like the first time I changed the maps…

I have this issue too by 4.3.0. But it happens by me by “Cook Content for Windows”

You can reproduce it with the Shootergame, just load the 4.3.0 version, change by “Game Maps & Modes” the “Server Default Map” to “Highrise” and than the cooking for Windows will fail.

i discovered that when you change the default map or start up map the DefaultEngine.ini will have duplicate entry for default map and start up map so the workaround is to edit this file manually in case you want to change default or start up map

Ok, I found the exact problem.

It’s not because of changing the default maps. The reason is that when you change something in Maps & Modes tab of project settings, it will add the following settings to DefaultEngine.ini:

[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Engine/Maps/Templates/Template_Default
EditorStartupMap=/Game/Test
TransitionMap=
bUseSplitscreen=True
TwoPlayerSplitscreenLayout=Horizontal
ThreePlayerSplitscreenLayout=FavorTop
GameDefaultMap=/Engine/Maps/Entry
GameDefaultMap=/Game/Test
GlobalDefaultServerGameMode=None

The problem is caused by GlobalDefaultServerGameMode=None. I just deleted that line and the project builds ok. This seems to be a new setting, in a project I made with UE4.2.1, that setting does not exist in DefaultEngine.ini.

EDIT: That setting can be changed in project settings. Is hidden by default. In previous versions of the engine it defaults to GameMode. In 4.3 it defaults to None, and that seems to be the problem.

That already happens in 4.2.1. If there are duplicate entries, it probably gets the last one and that’s it. I posted the solution below. I hope it works for you too.

That worked for me!