Skip to content

Commit

Permalink
Merge pull request #2396 from Nexus-Mods/bannerlord-healthcheck-title…
Browse files Browse the repository at this point in the history
…-changes

Remove fields from bannerlord health check titles
  • Loading branch information
insomnious authored Dec 17, 2024
2 parents 201e01c + 7011d17 commit 0d47706
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static partial class Diagnostics
internal static IDiagnosticTemplate MissingDependencyTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 0))
.WithTitle("'{ModName}' Is Missing Dependency with ID '{DependencyId}'")
.WithTitle("Missing Dependency")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' requires mod with ID '{DependencyId}' which is not installed")
.WithDetails("""
Expand Down Expand Up @@ -55,7 +55,7 @@ 2. Enable mod `{DependencyId}`
internal static IDiagnosticTemplate MissingVersionRangeTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 1))
.WithTitle("'{ModName}' is Missing Dependency with ID '{DependencyId}', version '{VersionRange}'")
.WithTitle("Missing Dependency")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' requires '{DependencyId}' version '{VersionRange}' which is not installed")
.WithDetails("""
Expand Down Expand Up @@ -102,7 +102,7 @@ 1. Try a newer version of mod `{ModName}` that might support different versions
internal static IDiagnosticTemplate ModVersionRangeTooLowTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 2))
.WithTitle("'{ModName}' Has an Outdated Dependency with ID '{DependencyId}'")
.WithTitle("Outdated Dependency")
.WithSeverity(DiagnosticSeverity.Warning)
.WithSummary("'{ModName}' requires '{DependencyId}' version '{VersionRange}' but found older version '{InstalledVersion}'")
.WithDetails("""
Expand Down Expand Up @@ -147,7 +147,7 @@ 3. The mod was installed from an outdated source
internal static IDiagnosticTemplate ModVersionRangeTooHighTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 3))
.WithTitle("'{ModName}' Has a Too Recent Dependency with ID '{DependencyId}'")
.WithTitle("Dependency too new")
.WithSeverity(DiagnosticSeverity.Warning)
.WithSummary("'{ModName}' requires '{DependencyId}' version '{VersionRange}' but found newer version '{InstalledVersion}'")
.WithDetails("""
Expand Down Expand Up @@ -198,7 +198,7 @@ 2. Contact the mod author about updating compatibility
internal static IDiagnosticTemplate MissingDependencyWithVersionTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 4))
.WithTitle("'{ModName}' Is Missing Dependency with ID '{DependencyId}' and Version '{Version}'")
.WithTitle("Missing Dependency With Version")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' requires mod with ID '{DependencyId}' and Version '{Version}' or higher which is not installed")
.WithDetails("""
Expand Down Expand Up @@ -242,7 +242,7 @@ 2. Enable mod `{DependencyId}`
internal static IDiagnosticTemplate ModIncompatibleTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 5))
.WithTitle("'{ModName}' Is Incompatible With '{IncompatibleName}'")
.WithTitle("Mod Incompatible")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' is not compatible with '{IncompatibleName}'")
.WithDetails("""
Expand Down Expand Up @@ -286,7 +286,7 @@ 3. Known issues or bugs when used together
internal static IDiagnosticTemplate ModVersionTooLowTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 6))
.WithTitle("Version of '{DependencyName}' Dependency Required by '{ModName}' is Too New")
.WithTitle("Outdated Dependency")
.WithSeverity(DiagnosticSeverity.Warning)
.WithSummary("'{ModName}' requires '{DependencyName}' version '{Version}' or newer but found older version '{InstalledVersion}'")
.WithDetails("""
Expand Down Expand Up @@ -337,7 +337,7 @@ 1. Contact the mod author of `{ModName}`
internal static IDiagnosticTemplate BothRequiredAndIncompatibleTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 7))
.WithTitle("Configuration Error in '{ModName}'. A dependency is marked both required and incompatible")
.WithTitle("Configuration Error")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' has conflicting configuration: '{ConflictingId}' is marked as both required and incompatible")
.WithDetails("""
Expand Down Expand Up @@ -379,7 +379,7 @@ Contact the mod author to fix this configuration error in `{ModName}`.
internal static IDiagnosticTemplate LoadOrderConflictTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 8))
.WithTitle("'{ModName}' Load Order Conflicts with mod ID '{ConflictingId}'")
.WithTitle("Load Order Conflict")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' has conflicting load order requirements for ID '{ConflictingId}'")
.WithDetails("""
Expand Down Expand Up @@ -422,7 +422,7 @@ Contact the mod author to fix this configuration error.
internal static IDiagnosticTemplate CircularDependencyTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 9))
.WithTitle("Mods Are Stuck In a Loop: '{ModName}' and '{CircularDependencyName}'")
.WithTitle("Circular Dependency Conflict")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("Mods Are Stuck In a Loop: '{ModName}' and '{CircularDependencyName}'")
.WithDetails("""
Expand Down Expand Up @@ -519,7 +519,7 @@ v v
internal static IDiagnosticTemplate ModMustLoadAfterTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 10))
.WithTitle("Load Order Error: '{DependencyId}' Must Load After '{ModName}'")
.WithTitle("Load Order Conflict")
.WithSeverity(DiagnosticSeverity.Warning)
.WithSummary("'{DependencyId}' should be loaded after '{ModName}'")
.WithDetails("""
Expand Down Expand Up @@ -569,7 +569,7 @@ Reorder your mods to ensure `{DependencyId}` loads after `{ModName}`.
internal static IDiagnosticTemplate ModMustLoadBeforeTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 11))
.WithTitle("Load Order Error: '{DependencyId}' Must Load Before '{ModName}'")
.WithTitle("Load Order Conflict")
.WithSeverity(DiagnosticSeverity.Warning)
.WithSummary("'{DependencyId}' should be loaded before '{ModName}'")
.WithDetails("""
Expand Down Expand Up @@ -619,7 +619,7 @@ Reorder your mods to ensure `{DependencyId}` loads before `{ModName}`.
internal static IDiagnosticTemplate ModBadConfigMissingIdTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 12))
.WithTitle("'{ModName}' Configuration Error: Missing ID")
.WithTitle("Configuration Error")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("Mod with name '{ModName}' is missing its 'Id' field")
.WithDetails("""
Expand Down Expand Up @@ -669,7 +669,7 @@ Contact the mod author to fix this configuration error.
internal static IDiagnosticTemplate ModBadConfigMissingNameTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 13))
.WithTitle("'{ModId}' Configuration Error: Missing 'Name'")
.WithTitle("Configuration Error")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("Mod with Id '{ModId}' is missing its 'Name' field")
.WithDetails("""
Expand Down Expand Up @@ -716,7 +716,7 @@ Contact the mod author to fix this configuration error.
internal static IDiagnosticTemplate ModBadConfigNullDependencyTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 14))
.WithTitle("'{ModName}' Configuration Error: Empty Dependency")
.WithTitle("Configuration Error")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' has an empty dependency entry")
.WithDetails("""
Expand Down Expand Up @@ -767,7 +767,7 @@ All dependency entries must include an Id to properly identify the required mod.
internal static IDiagnosticTemplate ModBadConfigDependencyMissingIdTemplate = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, 15))
.WithTitle("'{ModName}' Configuration Error: Dependency is Missing 'ID'")
.WithTitle("Configuration Error")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("'{ModName}' has a dependency entry missing its 'id' field")
.WithDetails("""
Expand Down Expand Up @@ -818,7 +818,7 @@ All dependency entries must include an ID to properly identify the required mod.
internal static IDiagnosticTemplate MissingProtontricksForRedMod = DiagnosticTemplateBuilder
.Start()
.WithId(new DiagnosticId(Source, number: 16))
.WithTitle("Missing 'Protontricks' dependency")
.WithTitle("Missing Protontricks")
.WithSeverity(DiagnosticSeverity.Critical)
.WithSummary("Protontricks is required to run the game but is not present.")
.WithDetails("""
Expand Down

0 comments on commit 0d47706

Please sign in to comment.