Do Maps Cook When Clicking Launch?

I have a simple Slate GUI with a Click event triggering a line of code in C++:

GetWorld()->ServerTravel(“/game/testmap”);

However when I started by just clicking Launch the ServerTravel() function would fail with the error that it could not find the map.

If I clicked File->Cook Content For Windows the map is now found and the ServerTravel() function succeeds. However any changes to my map are not reflected until I click Cook Content For Windows again.

I’m guessing I’m just confused what the Launch button actually does but I did noticed this line in the log:

[2014.05.07-21.39.47:856][481]LogPlayLevel:Display: CommandUtils.Run: Run: D:\UE4\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Cmd.exe "C:\Users\Fox\Documents\Unreal Projects\Adigo\Adigo.uproject" -run=Cook -Map=/Temp/Autosaves/Game/UEDPCMainMenu  -TargetPlatform=WindowsNoEditor -unattended -buildmachine -forcelogflush -AllowStdOutTraceEventType -Unversioned -fileopenlog -iterate -abslog=D:\UE4\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\Cook.txt -stdout -FORCELOGFLUSH -CrashForUAT -unattended -AllowStdOutTraceEventType 

The -unattended flag is in there twice and afterwards some messages with my map’s name in it popped up during a Launch:

[2014.05.07-21.39.48:269][518]LogPlayLevel:Display: UE4Editor-Cmd: [2014.05.07-21.39.48:261][ 0]LogPackageDependencyInfo:Display: Package Info not found for …/…/…/Adigo/Content/TestMap!

Which makes me worry I am not telling UE4Editor where my assets are and how to deal with them whenever I click Launch. Any help or direction would be appreciated. Thank you again for UE4!

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

Thanks!