Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow storing more information in the downloaded archive metas so mods can be reinstalled and retain their meta-info #2614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### Changelog

#### Version - TBD
* Wabbajack will now put modfile Titles, Description and Version into the `.meta` file.

#### Version - 3.7.2.1 - 9/1/2024
* Fixed a bug with the html reports when in a folder with a space in the name

Expand Down
7 changes: 6 additions & 1 deletion Wabbajack.Downloaders.Nexus/NexusDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,14 @@ public static string FixupSummary(string? argSummary)
public override IEnumerable<string> MetaIni(Archive a, Nexus state)
{
var meta = state.Game.MetaData();
// modid, fileid and gamename are givens - they will always be there even if manually constructed metas
// the others may not - they should if queried from Nexus, but not guaranteed
var NameNull = (state.Name is not null) ? state.Name : string.Empty;
var DescriptionNull = (state.Description is not null) ? state.Description : string.Empty;
var VersionNull = (state.Version is not null) ? state.Version : string.Empty;
return new[]
{
$"gameName={meta.MO2ArchiveName ?? meta.NexusName}", $"modID={state.ModID}", $"fileID={state.FileID}"
$"gameName={meta.MO2ArchiveName ?? meta.NexusName}", $"modID={state.ModID}",$"modName={NameNull}",$"description={DescriptionNull}",$"version={VersionNull}", $"fileID={state.FileID}"
};
}
}
Loading