Skip to content

System.NotSupportedException: Unknown color scheme 'DarkBackground' #1012

@coding-musicman

Description

@coding-musicman

In Win 11, I've SMAPI from 4.5.0 to 4.5.1 and I get:

SMAPI failed to initialize: System.NotSupportedException: Unknown color scheme 'DarkBackground'.
at StardewModdingAPI.Internal.ConsoleWriting.ColorfulConsoleWriter.GetConsoleColorScheme(Platform platform, MonitorColorScheme colorSchemeId, Dictionary`2 colorConfig) in /home/runner/work/SMAPI/SMAPI/src/SMAPI.Internal/ConsoleWriting/ColorfulConsoleWriter.cs:line 150
at StardewModdingAPI.Internal.ConsoleWriting.ColorfulConsoleWriter.SetColors(MonitorColorScheme colorSchemeId, Dictionary`2 colorSchemes) in /home/runner/work/SMAPI/SMAPI/src/SMAPI.Internal/ConsoleWriting/ColorfulConsoleWriter.cs:line 56
at StardewModdingAPI.Framework.Logging.LogManager..ctor(String logPath, MonitorColorScheme colorSchemeId, Dictionary`2 colorConfig, Boolean writeToConsole, HashSet`1 verboseLogging, Boolean isDeveloperMode, Func`1 getScreenIdForLog) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/Logging/LogManager.cs:line 65
at StardewModdingAPI.Framework.SCore..ctor(String modsPath, Boolean writeToConsole, Nullable`1 overrideDeveloperMode) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/SCore.cs:line 203
at StardewModdingAPI.Program.Start(String[] args) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Program.cs:line 232
at StardewModdingAPI.Program.Main(String[] args) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Program.cs:line 45
Game has ended. Press any key to exit.

When I downgrade to 4.5.0 the error is gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions