private void TryStartMission() { try { mission.requestVideo(320, 240); mission.setViewpoint(1); var outputDirectory = FileUtility.CreateOutputDirectory(userName, folderName); MissionRecordSpec missionRecord = new MissionRecordSpec(outputDirectory + "data.tgz"); missionRecord.recordMP4(60, 400000); agentHost.startMission(mission, availableClients, missionRecord, 0, "Test Builder"); } catch (Exception ex) { string errorLine = "Fatal error when starting a mission in ProgramMalmo: " + ex.Message; Console.WriteLine("Error starting mission: {0}", ex.Message); Environment.Exit(1); } }