This commit is contained in:
Timothy Baldridge 2020-11-24 15:14:09 -07:00
parent d93367d351
commit f97fcd5aa0
7 changed files with 40 additions and 9 deletions

View File

@ -1,5 +1,9 @@
### Changelog
#### Version - 2.3.4.2 - 11/24/2020
* Add Support for Kingdom Come : Deliverance (via MO2)
* Several other small bug fixes and deps updates
#### Version - 2.3.4.1 - 11/15/2020
* Tell the mod updater to use the existing Nexus Client instead of creating a new one

View File

@ -6,8 +6,8 @@
<AssemblyName>wabbajack-cli</AssemblyName>
<Company>Wabbajack</Company>
<Platforms>x64</Platforms>
<AssemblyVersion>2.3.4.1</AssemblyVersion>
<FileVersion>2.3.4.1</FileVersion>
<AssemblyVersion>2.3.4.2</AssemblyVersion>
<FileVersion>2.3.4.2</FileVersion>
<Copyright>Copyright © 2019-2020</Copyright>
<Description>An automated ModList installer</Description>
<PublishReadyToRun>true</PublishReadyToRun>

View File

@ -37,7 +37,8 @@ namespace Wabbajack.Common
Dishonored,
Witcher3,
[Description("Stardew Valley")]
StardewValley
StardewValley,
KingdomComeDeliverance
}
public static class GameExtensions
@ -490,6 +491,22 @@ namespace Wabbajack.Common
},
MainExecutable = "Stardew Valley.exe"
}
},
{
Game.KingdomComeDeliverance, new GameMetaData
{
Game = Game.KingdomComeDeliverance,
NexusName = "kingdomcomedeliverance",
MO2Name = "Kingdom Come: Deliverance",
NexusGameId = 2298,
SteamIDs = new List<int>{379430},
IsGenericMO2Plugin = true,
RequiredFiles = new List<string>
{
@"bin\Win64\KingdomCome.exe"
},
MainExecutable = @"bin\Win64\KingdomCome.exe"
}
}
};

View File

@ -4,8 +4,8 @@
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
<AssemblyVersion>2.3.4.1</AssemblyVersion>
<FileVersion>2.3.4.1</FileVersion>
<AssemblyVersion>2.3.4.2</AssemblyVersion>
<FileVersion>2.3.4.2</FileVersion>
<Copyright>Copyright © 2019-2020</Copyright>
<Description>Wabbajack Application Launcher</Description>
<PublishReadyToRun>true</PublishReadyToRun>

View File

@ -208,6 +208,7 @@ namespace Wabbajack.Lib
{
if (download)
{
var result = SendDownloadMetrics(missing);
foreach (var a in missing.Where(a => a.State.GetType() == typeof(ManualDownloader.State)))
{
var outputPath = DownloadFolder.Combine(a.Name);
@ -242,6 +243,15 @@ namespace Wabbajack.Lib
}
private async Task SendDownloadMetrics(List<Archive> missing)
{
var grouped = missing.GroupBy(m => m.State.GetType());
foreach (var group in grouped)
{
await Metrics.Send($"downloading_{group.Key.Name}", group.Sum(g => g.Size).ToString());
}
}
public async Task<bool> DownloadArchive(Archive archive, bool download, AbsolutePath? destination = null)
{
try

View File

@ -3,8 +3,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyVersion>2.3.4.1</AssemblyVersion>
<FileVersion>2.3.4.1</FileVersion>
<AssemblyVersion>2.3.4.2</AssemblyVersion>
<FileVersion>2.3.4.2</FileVersion>
<Copyright>Copyright © 2019-2020</Copyright>
<Description>Wabbajack Server</Description>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

View File

@ -6,8 +6,8 @@
<UseWPF>true</UseWPF>
<Platforms>x64</Platforms>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<AssemblyVersion>2.3.4.1</AssemblyVersion>
<FileVersion>2.3.4.1</FileVersion>
<AssemblyVersion>2.3.4.2</AssemblyVersion>
<FileVersion>2.3.4.2</FileVersion>
<Copyright>Copyright © 2019-2020</Copyright>
<Description>An automated ModList installer</Description>
<PublishReadyToRun>true</PublishReadyToRun>