Merge branch 'main' into nexus_modding_tools_site_meta_support

This commit is contained in:
Luca 2022-12-22 11:39:48 +01:00 committed by GitHub
commit 37eee94821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 5 deletions

View File

@ -2,7 +2,9 @@
#### Version - 3.0.?.? - TBD #### Version - 3.0.?.? - TBD
* Add support for https://www.nexusmods.com/site hosted mods. * Add support for https://www.nexusmods.com/site hosted mods.
* Game Support: * Fix Website Links
* Game support:
* Added support for Valheim
* Added Cyberpunk 2077 Epic Games Store support * Added Cyberpunk 2077 Epic Games Store support
#### Version - 3.0.4.1 - 11/17/2022 #### Version - 3.0.4.1 - 11/17/2022

View File

@ -121,14 +121,14 @@ namespace Wabbajack
); );
VersionText = "Modlist version : " + Metadata.Version; VersionText = "Modlist version : " + Metadata.Version;
IsBroken = metadata.ValidationSummary.HasFailures || metadata.ForceDown; IsBroken = metadata.ValidationSummary.HasFailures || metadata.ForceDown;
//https://www.wabbajack.org/#/modlists/info?machineURL=eldersouls // https://www.wabbajack.org/modlist/wj-featured/aldrnari
OpenWebsiteCommand = ReactiveCommand.Create(() => UIUtils.OpenWebsite(new Uri($"https://www.wabbajack.org/#/modlists/info?machineURL={Metadata.NamespacedName}"))); OpenWebsiteCommand = ReactiveCommand.Create(() => UIUtils.OpenWebsite(new Uri($"https://www.wabbajack.org/modlists/{Metadata.NamespacedName}")));
IsLoadingIdle = new Subject<bool>(); IsLoadingIdle = new Subject<bool>();
ModListContentsCommend = ReactiveCommand.Create(async () => ModListContentsCommend = ReactiveCommand.Create(async () =>
{ {
UIUtils.OpenWebsite(new Uri("https://www.wabbajack.org/search/" + Metadata.NamespacedName)); UIUtils.OpenWebsite(new Uri($"https://www.wabbajack.org/search/{Metadata.NamespacedName}"));
}, IsLoadingIdle.StartWith(true)); }, IsLoadingIdle.StartWith(true));
ExecuteCommand = ReactiveCommand.CreateFromTask(async () => ExecuteCommand = ReactiveCommand.CreateFromTask(async () =>

View File

@ -49,5 +49,6 @@ public enum Game
[Description("Karryn's Prison")] [Description("Karryn's Prison")]
KarrynsPrison, KarrynsPrison,
[Description("Valheim")]Valheim,
[Description("Modding Tools")] ModdingTools, [Description("Modding Tools")] ModdingTools,
} }

View File

@ -492,6 +492,23 @@ public static class GameRegistry
}, },
MainExecutable = "nw.exe".ToRelativePath() MainExecutable = "nw.exe".ToRelativePath()
} }
},
{
Game.Valheim, new GameMetaData
{
Game = Game.Valheim,
SteamIDs = new[] { 892970 },
MO2Name = "Valheim",
MO2ArchiveName = "valheim",
NexusName = "valheim",
NexusGameId = 3667,
IsGenericMO2Plugin = true,
RequiredFiles = new []
{
"valheim.exe".ToRelativePath()
},
MainExecutable = "valheim.exe".ToRelativePath()
}
}, },
{ {
Game.ModdingTools, new GameMetaData Game.ModdingTools, new GameMetaData
@ -502,8 +519,8 @@ public static class GameRegistry
NexusName = "site", NexusName = "site",
NexusGameId = 2295, NexusGameId = 2295,
IsGenericMO2Plugin = false, IsGenericMO2Plugin = false,
}
} }
}; };
public static ILookup<string, GameMetaData> ByNexusName = Games.Values.ToLookup(g => g.NexusName ?? ""); public static ILookup<string, GameMetaData> ByNexusName = Games.Values.ToLookup(g => g.NexusName ?? "");