You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#lockdown Nick.Penwarden
==========================
MAJOR FEATURES + CHANGES
==========================
Change 2826201 on 2016/01/13 by Zabir.Hoque
Add more verbose logging to try to understand #OR-11297
#lockdown Andrew.Grant
#CodeReview Marcus.Wassmer
#RB none
#TESTS compiled Win64 debug editor, ran agora_p
Change 2826170 on 2016/01/13 by Marcus.Wassmer
Flush unloaded resource properly in LoadMap
#codereview Gil.Gribb
#rb none
#test cycling game. memory is freed properly now.
#lockdown Andrew.Grant
Change 2826135 on 2016/01/12 by Michael.Noland
Orion: Improve login screen on PC to reduce the potential impact of framerate on data center ping calculation
- Disabled async streaming for the duration of the QOS ping measurement to avoid hitches
- Added a circular throbber in the top left corner of the login screen indicating that something is async streaming (as a diagnostic tool for users affected by the datacenter ping, can be removed in the future)
- Added logging of the current average frame time when the datacenter ping is finalized
- Added a 'Pick Ideal Settings' button to the login screen (note: on the actual screen, not the login widget, so it will not appear on PS4)
#jira OR-12453
#rb paul.moore
#tests Ran a QOS server and client and verified that the new logging is occurring, tried out the new benchmark button, etc...
Merging CL# 2826128 using //Orion/Main_to_//Orion/Dev-General
Change 2826131 on 2016/01/12 by Michael.Noland
#UE4 - added print out of MS/FPS during Qos ping evaluation
#rb michael.noland
#tests loaded up through login screen to see output
Merging CL# 2825678 using //Orion/Main_to_//Orion/Dev-General
Change 2826128 on 2016/01/12 by Michael.Noland
Orion: Improve login screen on PC to reduce the potential impact of framerate on data center ping calculation
- Disabled async streaming for the duration of the QOS ping measurement to avoid hitches
- Added a circular throbber in the top left corner of the login screen indicating that something is async streaming (as a diagnostic tool for users affected by the datacenter ping, can be removed in the future)
- Added logging of the current average frame time when the datacenter ping is finalized
- Added a 'Pick Ideal Settings' button to the login screen (note: on the actual screen, not the login widget, so it will not appear on PS4)
#jira OR-12453
#rb paul.moore
#tests Ran a QOS server and client and verified that the new logging is occurring, tried out the new benchmark button, etc...
Merging CL# 2826116 using //Orion/Release-Next->//Orion/Main
Change 2826116 on 2016/01/12 by Michael.Noland
Orion: Improve login screen on PC to reduce the potential impact of framerate on data center ping calculation
- Disabled async streaming for the duration of the QOS ping measurement to avoid hitches
- Added a circular throbber in the top left corner of the login screen indicating that something is async streaming (as a diagnostic tool for users affected by the datacenter ping, can be removed in the future)
- Added logging of the current average frame time when the datacenter ping is finalized
- Added a 'Pick Ideal Settings' button to the login screen (note: on the actual screen, not the login widget, so it will not appear on PS4)
#jira OR-12453
#rb paul.moore
#tests Ran a QOS server and client and verified that the new logging is occurring, tried out the new benchmark button, etc...
#lockdown andrew.grant
#codereview josh.markiewicz
Change 2825772 on 2016/01/12 by Dmitry.Rekman
Linux signal handling improvements.
- Switch crash handlers to use "crash malloc" (preallocated memory) on crash.
- Remove unnecessary memory allocations from graceful termination handler.
#rb none
#tests Run the Linux server and crashed it a few times.
#codereview David.Vossel, Michael.Trepka
Change 2825768 on 2016/01/12 by Josh.Markiewicz
#UE4 - added print out of MS/FPS during Qos ping evaluation
#rb michael.noland
#tests loaded up through login screen to see output
Change 2825703 on 2016/01/12 by Brian.Karis
Switched on new motion blur. Set temporal AA sharpness to 1.
#rb none
#TESTS editor
Change 2825689 on 2016/01/12 by Lina.Halper
Fix for get animation notify crash
https://jira.ol.epicgames.net/browse/OR-12248
https://jira.ol.epicgames.net/browse/OR-12348
- Also fixed the crash in preview of persona due to blend sample cache contains previous animation data
- Also fixed blend space player to reinitialize cache data
- The main issue is marker doesn't clamp the length, causing notifies ensure to trigger.
#rb : Laurent.Delayen
#tests: 10 Sparrows bot match for long time
#code review: Martin.Wilson
#lockdown: Andrew.Grant
Change 2825680 on 2016/01/12 by Martin.Mittring
fixed all cases with r.Tonemapper.ScreenPercentage, ScreenPercentage, Fringe, Vignette, ViewRect, flickering with transluceny (View members have been modified while other thread was reading)
#rb:Olaf.Piesche, David.Hill
#test: PC, many cases
Change 2825579 on 2016/01/12 by Chris.Bunner
Force shadow shape bone indices on the required update list.
#rb Lina.Halper, Rolando.Caloca
#tests Editor
#codereview Daniel.Wright
#jira OR-12339
Change 2825443 on 2016/01/12 by Martin.Mittring
201 lines
6.7 KiB
C#
201 lines
6.7 KiB
C#
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.IO;
|
|
using AutomationTool;
|
|
using UnrealBuildTool;
|
|
using OneSky;
|
|
using EpicGames.OneSkyLocalization.Config;
|
|
|
|
class LauncherLocalization : BuildCommand
|
|
{
|
|
|
|
public override void ExecuteBuild()
|
|
{
|
|
if (ParseParam("BuildEditor"))
|
|
{
|
|
UE4Build.BuildAgenda Agenda = new UE4Build.BuildAgenda();
|
|
Agenda.AddTarget("UE4Editor", HostPlatform.Current.HostEditorPlatform, UnrealTargetConfiguration.Development);
|
|
|
|
UE4Build Builder = new UE4Build(this);
|
|
Builder.Build(Agenda, InDeleteBuildProducts: true, InUpdateVersionFiles: true, InForceNoXGE: true);
|
|
}
|
|
|
|
var EditorExe = CombinePaths(CmdEnv.LocalRoot, @"Engine/Binaries/Win64/UE4Editor-Cmd.exe");
|
|
|
|
if (P4Enabled)
|
|
{
|
|
Log("Sync necessary content to head revision");
|
|
P4.Sync(P4Env.BuildRootP4 + "/Engine/Config/...");
|
|
P4.Sync(P4Env.BuildRootP4 + "/Engine/Content/...");
|
|
P4.Sync(P4Env.BuildRootP4 + "/Engine/Source/...");
|
|
|
|
P4.Sync(P4Env.BuildRootP4 + "/Portal/Config/...");
|
|
P4.Sync(P4Env.BuildRootP4 + "/Portal/Content/...");
|
|
P4.Sync(P4Env.BuildRootP4 + "/Portal/Source/...");
|
|
|
|
Log("Localize from label {0}", P4Env.LabelToSync);
|
|
}
|
|
|
|
OneSkyConfigData OneSkyConfig = OneSkyConfigHelper.Find("OneSkyConfig_EpicGames");
|
|
var oneSkyService = new OneSkyService(OneSkyConfig.ApiKey, OneSkyConfig.ApiSecret);
|
|
|
|
// Export Launcher text from OneSky
|
|
{
|
|
var launcherGroup = GetLauncherGroup(oneSkyService);
|
|
var appProject = GetAppProject(oneSkyService);
|
|
var appFile = appProject.UploadedFiles.FirstOrDefault(f => f.Filename == "App.po");
|
|
|
|
//Export
|
|
if (appFile != null)
|
|
{
|
|
ExportFileToDirectory(appFile, new DirectoryInfo(CmdEnv.LocalRoot + "/Portal/Content/Localization/App"), launcherGroup.EnabledCultures);
|
|
}
|
|
}
|
|
|
|
// Setup editor arguments for SCC.
|
|
string EditorArguments = String.Empty;
|
|
if (P4Enabled)
|
|
{
|
|
EditorArguments = String.Format("-SCCProvider={0} -P4Port={1} -P4User={2} -P4Client={3} -P4Passwd={4}", "Perforce", P4Env.P4Port, P4Env.User, P4Env.Client, P4.GetAuthenticationToken());
|
|
}
|
|
else
|
|
{
|
|
EditorArguments = String.Format("-SCCProvider={0}", "None");
|
|
}
|
|
|
|
// Setup commandlet arguments for SCC.
|
|
string CommandletSCCArguments = String.Empty;
|
|
if (P4Enabled) { CommandletSCCArguments += (string.IsNullOrEmpty(CommandletSCCArguments) ? "" : " ") + "-EnableSCC"; }
|
|
if (!AllowSubmit) { CommandletSCCArguments += (string.IsNullOrEmpty(CommandletSCCArguments) ? "" : " ") + "-DisableSCCSubmit"; }
|
|
|
|
// Setup commandlet arguments with configurations.
|
|
var CommandletArgumentSets = new string[]
|
|
{
|
|
String.Format("-config={0}", @"../Portal/Config/Localization/App.ini") + (string.IsNullOrEmpty(CommandletSCCArguments) ? "" : " " + CommandletSCCArguments)
|
|
};
|
|
|
|
// Execute commandlet for each set of arguments.
|
|
foreach (var CommandletArguments in CommandletArgumentSets)
|
|
{
|
|
Log("Localization for {0} {1}", EditorArguments, CommandletArguments);
|
|
|
|
Log("Running UE4Editor to generate Localization data");
|
|
|
|
string Arguments = String.Format("-run=GatherText {0} {1}", EditorArguments, CommandletArguments);
|
|
var RunResult = Run(EditorExe, Arguments);
|
|
|
|
if (RunResult.ExitCode != 0)
|
|
{
|
|
throw new AutomationException("Error while executing localization commandlet '{0}'", Arguments);
|
|
}
|
|
}
|
|
|
|
// Upload Launcher text to OneSky
|
|
UploadDirectoryToProject(GetAppProject(oneSkyService), new DirectoryInfo(CmdEnv.LocalRoot + "/Portal/Content/Localization/App"), "*.po");
|
|
}
|
|
|
|
private static ProjectGroup GetLauncherGroup(OneSkyService oneSkyService)
|
|
{
|
|
var launcherGroup = oneSkyService.ProjectGroups.FirstOrDefault(g => g.Name == "Launcher");
|
|
|
|
if (launcherGroup == null)
|
|
{
|
|
launcherGroup = new ProjectGroup("Launcher", "en");
|
|
oneSkyService.ProjectGroups.Add(launcherGroup);
|
|
}
|
|
|
|
return launcherGroup;
|
|
}
|
|
|
|
private static OneSky.Project GetAppProject(OneSkyService oneSkyService)
|
|
{
|
|
var launcherGroup = GetLauncherGroup(oneSkyService);
|
|
|
|
OneSky.Project appProject = launcherGroup.Projects.FirstOrDefault(p => p.Name == "App");
|
|
|
|
if (appProject == null)
|
|
{
|
|
ProjectType projectType = oneSkyService.ProjectTypes.First(pt => pt.Code == "website");
|
|
|
|
appProject = new OneSky.Project("App", "The core application text that ships with the Launcher", projectType);
|
|
launcherGroup.Projects.Add(appProject);
|
|
}
|
|
|
|
return appProject;
|
|
}
|
|
|
|
private static void ExportFileToDirectory(UploadedFile file, DirectoryInfo destination, IEnumerable<string> cultures)
|
|
{
|
|
foreach (var culture in cultures)
|
|
{
|
|
var cultureDirectory = new DirectoryInfo(Path.Combine(destination.FullName, culture));
|
|
if (!cultureDirectory.Exists)
|
|
{
|
|
cultureDirectory.Create();
|
|
}
|
|
|
|
using (var memoryStream = new MemoryStream())
|
|
{
|
|
var exportFile = new FileInfo(Path.Combine(cultureDirectory.FullName, file.Filename));
|
|
|
|
var exportTranslationState = file.ExportTranslation(culture, memoryStream).Result;
|
|
if (exportTranslationState == UploadedFile.ExportTranslationState.Success)
|
|
{
|
|
memoryStream.Position = 0;
|
|
using (Stream fileStream = File.OpenWrite(exportFile.FullName))
|
|
{
|
|
memoryStream.CopyTo(fileStream);
|
|
Console.WriteLine("[SUCCESS] Exporting: " + exportFile.FullName + " Locale: " + culture);
|
|
}
|
|
}
|
|
else if (exportTranslationState == UploadedFile.ExportTranslationState.NoContent)
|
|
{
|
|
Console.WriteLine("[WARNING] Exporting: " + exportFile.FullName + " Locale: " + culture + " has no translations!");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("[FAILED] Exporting: " + exportFile.FullName + " Locale: " + culture);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
static void UploadDirectoryToProject(OneSky.Project project, DirectoryInfo directory, string fileExtension)
|
|
{
|
|
foreach (var file in Directory.GetFiles(directory.FullName, fileExtension, SearchOption.AllDirectories))
|
|
{
|
|
DirectoryInfo parentDirectory = Directory.GetParent(file);
|
|
string localeName = parentDirectory.Name;
|
|
string currentFile = file;
|
|
|
|
using (var fileStream = File.OpenRead(currentFile))
|
|
{
|
|
// Read the BOM
|
|
var bom = new byte[3];
|
|
fileStream.Read(bom, 0, 3);
|
|
|
|
//We want to ignore the utf8 BOM
|
|
if (bom[0] != 0xef || bom[1] != 0xbb || bom[2] != 0xbf)
|
|
{
|
|
fileStream.Position = 0;
|
|
}
|
|
|
|
Console.WriteLine("Uploading: " + currentFile + " Locale: " + localeName);
|
|
var uploadedFile = project.Upload(Path.GetFileName(currentFile), fileStream, localeName).Result;
|
|
|
|
if (uploadedFile == null)
|
|
{
|
|
Console.WriteLine("[FAILED] Uploading: " + currentFile + " Locale: " + localeName);
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("[SUCCESS] Uploading: " + currentFile + " Locale: " + localeName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|