can you fix it? my game give me this [Birthday Buff] Mod crashed on entry and might not work correctly. Technical details: Newtonsoft.Json.JsonReaderException: Can't parse JSON file at E:\steam\steamapps\common\Stardew Valley\Mods\BirthdayBuff\config.json. This doesn't seem to be valid JSON. Technical details: Unexpected character encountered while parsing value: {. Path 'GlowColor', line 15, position 16. at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86 at StardewModdingAPI.Framework.ModHelpers.DataHelper.ReadJsonFile[TModel](String path) in SMAPI\Framework\ModHelpers\DataHelper.cs:line 50 at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadConfig[TConfig]() in SMAPI\Framework\ModHelpers\ModHelper.cs:line 101 at BirthdayBuff.ModEntry.Entry(IModHelper helper) in /home/mouahrara/aedenthorn/BirthdayBuff/ModEntry.cs:line 24 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1763
Based on the error message you received, it seems that the configuration file format is incorrect. My unofficial version uses a slightly different format, so if you had the mod installed previously and then installed my version on top of it, the old configuration file (config.json) might still be there, and my unofficial version might be trying to read the old config file instead of creating a new one in the right format. Try deleting the config.json file from the mod folder and then restart the game; that should do the trick! Let me know if that solves the problem.
3 comments
Requirements: Buff Framework (Unofficial update) and Happy Birthday.
[Birthday Buff] Mod crashed on entry and might not work correctly. Technical details:
Newtonsoft.Json.JsonReaderException: Can't parse JSON file at E:\steam\steamapps\common\Stardew Valley\Mods\BirthdayBuff\config.json. This doesn't seem to be valid JSON.
Technical details: Unexpected character encountered while parsing value: {. Path 'GlowColor', line 15, position 16.
at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86
at StardewModdingAPI.Framework.ModHelpers.DataHelper.ReadJsonFile[TModel](String path) in SMAPI\Framework\ModHelpers\DataHelper.cs:line 50
at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadConfig[TConfig]() in SMAPI\Framework\ModHelpers\ModHelper.cs:line 101
at BirthdayBuff.ModEntry.Entry(IModHelper helper) in /home/mouahrara/aedenthorn/BirthdayBuff/ModEntry.cs:line 24
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1763