mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Changes for an official Version 3.3.1.0 Release (#2439)
* added more visible error messages to avoid user confusion added hard drive free space detection, added red error message text, removed overwrite checkbox, added wiki button link extended the error text for starting wabbajack in protected location removed debug code shortened error message to fit in text box * restored warning removed in error, updated changelog, removed debug includes * Update InstallerVM.cs * Update InstallerVM.cs * Update MainWindowViewModel.cs * added json optional flag to only show version number over modlist image in installer view, if the modlist image already contains the title removed debug code change to pascal case and match existing code style update changelog * Fix manual downloads sometimes launching in browser * Fix manual downloads from secure servers * Remove duplicate user agent code * Create configuration project and performance settings * Bind new performance settings to UI * Use performance settings to limit maximum memory per download * Remove unused settings and related classes * Updated CHANGELOG.md * update CHANGELOG.md * moved the existing files popup to an error message , heralding the return of the overwrite install checkbox * added newline * reverted erroneous edit * gogID for fallout4 added * update CHANGELOG.md * Fix deadlock when loading new settings * change folder/directory check logic * update CHANGELOG.md * revert unnecessary change * update CHANGELOG.md * Bump Wabbajack to .NET 7 * Bump ReactiveUI packages & deps * Update GameFinder to 4.0.0 * Update CHANGELOG.md * Update CHANGELOG.md * Don't try to add cookies if array is empty * Start download from scratch if .download_package can't be parsed * Log when application is shutting down * update CHANGELOG.md * exclude the "SP Consent Message" on nexus from the cleared iframes * Actually use the --outputPath compile option if the user provides one It was just not being used, defaulting to the parent of installPath. it still does, if the user does not specify a directory using --outputPath * update Wabbajack.Compression.BSA dependencies * improve log message to include storage space reference * clearing temp folder when the app closes * update logging message * update CHANGELOG.md * update CHANGELOG.md * update logging for possible exceptions thrown when clearing temp folder * fix cloudflare captcha --------- Co-authored-by: JanuarySnow <bobfordiscord12@gmail.com> Co-authored-by: JanuarySnow <85711747+JanuarySnow@users.noreply.github.com> Co-authored-by: UrbanCMC <UrbanCMC@web.de> Co-authored-by: trawzified <55751269+tr4wzified@users.noreply.github.com> Co-authored-by: Marco Antonio Jaguaribe Costa <marco.antonio.costa@gmail.com> Co-authored-by: Timothy Baldridge <tbaldridge@gmail.com>
This commit is contained in:
parent
b8cc418989
commit
0c11f11839
19
CHANGELOG.md
19
CHANGELOG.md
@ -1,13 +1,28 @@
|
|||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
#### Version - 3.3.0.0 - 10/13/2023
|
#### Version - 3.3.1.0 - TBA
|
||||||
|
* Fixed `--outputPath` not being used for the CLI `compile` (thanks to @majcosta for fixing that)
|
||||||
|
* Improved Log message for cases where low storage on the drive Wabbajack is installed on causes compiles to fail
|
||||||
|
* **To list authors still compiling on Wabbajack 3.0.5.0:**
|
||||||
|
This is what is causing your compiles with any newer Wabbajack version to fail.
|
||||||
|
The reason the compile works is that you already have a full cache for all your mods and BSAs with that version and WJ only needs to add a small amount of new files to that cache and needs less temporary drive space because of that. Any version higher than 3.0.5.0 needs a new cache that can't be converted and needs WJ to unpack every Archive (zip/rar/7z/BSA/BA2) and add the files inside to the new cache.
|
||||||
|
Finding ways to reduce the storage footprint when compiling huge lists for the first time (since any following compiles won't need that space requirement anymore) will be investigated.
|
||||||
|
* Wabbajack will now clean the `temp` folder when closed
|
||||||
|
* Updated Dependencies
|
||||||
|
* LZ4 to version 1.3.7-beta
|
||||||
|
* SharpZipLib to version 1.4.2
|
||||||
|
|
||||||
|
#### Version - 3.3.0.1 - (Was only a Pre-Release)
|
||||||
|
* Fixed Manual Downloading on NexusMods being blocked by a hidden cookie consent banner
|
||||||
|
|
||||||
|
#### Version - 3.3.0.0 - 10/13/2023 (taken down due to build issues)
|
||||||
* Fixed some UI issues arising from 3.2.0.0 changes - more informative error text, wiki link button
|
* Fixed some UI issues arising from 3.2.0.0 changes - more informative error text, wiki link button
|
||||||
* Added optional JSON flag for `DisplayVersionOnlyInInstallerView` to enable the installer image to only show version number.
|
* Added optional JSON flag for `DisplayVersionOnlyInInstallerView` to enable the installer image to only show version number.
|
||||||
* Fixed manual downloader downloading in the OS's "Downloads" folder
|
* Fixed manual downloader downloading in the OS's "Downloads" folder
|
||||||
* Added RAM Limit setting for downloads
|
* Added RAM Limit setting for downloads
|
||||||
* This fixes the High RAM usage (and sometimes app crashes) on some Hardware + Very High Speed Internet Connection Systems
|
* This fixes the High RAM usage (and sometimes app crashes) on some Hardware + Very High Speed Internet Connection Systems
|
||||||
* Added Fallout 4 (GOG) to the index
|
* Added Fallout 4 (GOG) to the index
|
||||||
* Updated App to .NET 7.0
|
* Updated App to .NET 8.0
|
||||||
* Should fix random crashes on some systems
|
* Should fix random crashes on some systems
|
||||||
* Updated GameFinder to 4.0.0
|
* Updated GameFinder to 4.0.0
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public class ManualDownloadHandler : BrowserWindowViewModel
|
|||||||
|
|
||||||
var task = WaitForDownloadUri(token, async () =>
|
var task = WaitForDownloadUri(token, async () =>
|
||||||
{
|
{
|
||||||
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => f.remove())");
|
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => {if (f.title != \"SP Consent Message\" && !f.src.includes(\"challenges.cloudflare.com\")) f.remove()})");
|
||||||
});
|
});
|
||||||
await NavigateTo(md.Url);
|
await NavigateTo(md.Url);
|
||||||
var uri = await task;
|
var uri = await task;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.IO;
|
||||||
using System.Reactive.Linq;
|
using System.Reactive.Linq;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
@ -45,7 +46,33 @@ namespace Wabbajack
|
|||||||
|
|
||||||
Closed += (s, e) =>
|
Closed += (s, e) =>
|
||||||
{
|
{
|
||||||
|
_logger.LogInformation("Beginning shutdown...");
|
||||||
_mwvm.CancelRunningTasks(TimeSpan.FromSeconds(10));
|
_mwvm.CancelRunningTasks(TimeSpan.FromSeconds(10));
|
||||||
|
|
||||||
|
// Cleaning the temp folder when the app closes since it can take up multiple Gigabytes of Storage
|
||||||
|
var tempDirectory = Environment.CurrentDirectory + "\\temp";
|
||||||
|
_logger.LogInformation("Clearing {TempDir}",tempDirectory);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var directoryInfo = new DirectoryInfo(tempDirectory);
|
||||||
|
|
||||||
|
foreach (var file in directoryInfo.EnumerateFiles())
|
||||||
|
{
|
||||||
|
file.Delete();
|
||||||
|
}
|
||||||
|
foreach (var dir in directoryInfo.EnumerateDirectories())
|
||||||
|
{
|
||||||
|
dir.Delete(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
_logger.LogInformation("Finished clearing {TempDir}",tempDirectory);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError(ex,"Failed clearing {TempDir}",tempDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Application.Current.Shutdown();
|
Application.Current.Shutdown();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ using Wabbajack.Downloaders.GameFile;
|
|||||||
using Wabbajack.DTOs.JsonConverters;
|
using Wabbajack.DTOs.JsonConverters;
|
||||||
using Wabbajack.Networking.WabbajackClientApi;
|
using Wabbajack.Networking.WabbajackClientApi;
|
||||||
using Wabbajack.Paths;
|
using Wabbajack.Paths;
|
||||||
|
using Wabbajack.Paths.IO;
|
||||||
using Wabbajack.VFS;
|
using Wabbajack.VFS;
|
||||||
|
|
||||||
namespace Wabbajack.CLI.Verbs;
|
namespace Wabbajack.CLI.Verbs;
|
||||||
@ -58,6 +59,12 @@ public class Compile
|
|||||||
|
|
||||||
inferredSettings.UseGamePaths = true;
|
inferredSettings.UseGamePaths = true;
|
||||||
|
|
||||||
|
if(outputPath.DirectoryExists())
|
||||||
|
{
|
||||||
|
inferredSettings.OutputFile = outputPath.Combine(inferredSettings.OutputFile.FileName);
|
||||||
|
_logger.LogInformation("Output file will be in: {outputPath}", inferredSettings.OutputFile);
|
||||||
|
}
|
||||||
|
|
||||||
var compiler = MO2Compiler.Create(_serviceProvider, inferredSettings);
|
var compiler = MO2Compiler.Create(_serviceProvider, inferredSettings);
|
||||||
var result = await compiler.Begin(token);
|
var result = await compiler.Begin(token);
|
||||||
if (!result)
|
if (!result)
|
||||||
|
@ -17,8 +17,12 @@ public static class HttpExtensions
|
|||||||
private const string ChromeUserAgent =
|
private const string ChromeUserAgent =
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36";
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36";
|
||||||
public static HttpRequestMessage AddCookies(this HttpRequestMessage msg, Cookie[] cookies)
|
public static HttpRequestMessage AddCookies(this HttpRequestMessage msg, Cookie[] cookies)
|
||||||
|
{
|
||||||
|
if (cookies.Length > 0)
|
||||||
{
|
{
|
||||||
msg.Headers.Add("Cookie", string.Join(";", cookies.Select(c => $"{c.Name}={c.Value}")));
|
msg.Headers.Add("Cookie", string.Join(";", cookies.Select(c => $"{c.Name}={c.Value}")));
|
||||||
|
}
|
||||||
|
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.6" />
|
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.7-beta" />
|
||||||
<PackageReference Include="SharpZipLib" Version="1.4.2" />
|
<PackageReference Include="SharpZipLib" Version="1.4.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
@ -166,9 +166,18 @@ internal class ResumableDownloader
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var packageJson = _packagePath.ReadAllText();
|
var packageJson = _packagePath.ReadAllText();
|
||||||
return JsonSerializer.Deserialize<DownloadPackage>(packageJson);
|
return JsonSerializer.Deserialize<DownloadPackage>(packageJson);
|
||||||
}
|
}
|
||||||
|
catch (JsonException ex)
|
||||||
|
{
|
||||||
|
_logger.LogWarning(ex, "Package for '{name}' couldn't be parsed. Deleting package and starting from scratch...", _outputPath.FileName.ToString());
|
||||||
|
DeletePackage();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void SavePackage(DownloadPackage package)
|
private void SavePackage(DownloadPackage package)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +243,9 @@ public class VirtualFile
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
context.Logger.LogError(ex, "Error while examining the contents of {path}", relPath.FileName);
|
context.Logger.LogError(ex, "Error while examining the contents of {Path}", relPath.FileName);
|
||||||
|
if (!ex.Message.Equals("End of stream before end of limit")) throw;
|
||||||
|
context.Logger.LogError("Not enough free storage space in {TempFolder}",Environment.CurrentDirectory+"\\temp");
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user