Modding Help Error Editing Strings - Help?

Discussion in 'Mods' started by modderihardlyknower, Jul 8, 2020.

  1. modderihardlyknower

    modderihardlyknower Space Hobo

    Hey everyone, I need help with my mod. I want to edit one of the messages given when you investigate an item in Abigail's room. I've tried every version of loading it in I can think of, even packed the json into an xnb (considering that worked for dialogue). No matter what I do, I get this message. Content Patcher and SMAPI are fully updated. What's value X? Why does a path not exist? Is a line 0 position 0 even possible?

    I'm a beginner modder. Help me understand what this means? I can provide the content.json and NewStringsFromMaps if needed.


    [Content Patcher] Can't load "Punk Abigail > EditData Strings/StringsFromMaps" fields from file 'assets/NewStringsFromMaps.xnb': could not parse that file: Newtonsoft.Json.JsonReaderException: Can't parse JSON file at C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[CP] Punk Abby\assets\NewStringsFromMaps.xnb. This doesn't seem to be valid JSON.
    Technical details: Unexpected character encountered while parsing value: X. Path '', line 0, position 0.
    at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in C:\source\_Stardew\SMAPI\src\SMAPI.Toolkit\Serialization\JsonHelper.cs:line 74
    at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:line 74
    at ContentPatcher.Framework.ManagedContentPack.ReadJsonFile[TModel](String path) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\ManagedContentPack.cs:line 61
    at ContentPatcher.Framework.Patches.EditDataPatch.TryLoadFile(ITokenString fromFile, IContext context, List`1& entries, List`1& fields, List`1& moveEntries, String& error) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\Patches\EditDataPatch.cs:line 262.
     

    Share This Page