First time modder, need help with the content.json

AngryRagdoll

Newcomer
I've never made a mod before, and I was trying to combine a couple of dialogue mods for private use. I've been working on this for a few days now, but I can't figure out what I'm doing wrong. I really don't want to have to redo this all over again for the 5th time.

I'm using this template: https://www.nexusmods.com/stardewvalley/mods/2382?tab=posts

All I did was basically copy and paste, and added a few lines of dialogue. I keep getting these errors though:

[Content Patcher] Error preloading content pack 'My Yandere Sebastian'. Technical details:
Newtonsoft.Json.JsonReaderException: Can't parse JSON file at C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\My Yandere Sebastian\content.json. This doesn't seem to be valid JSON.
Technical details: Invalid character after parsing property name. Expected ':' but got: d. Path 'Changes[0].entries.Introduction', line 10, position 5.
at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in E:\source\_Stardew\SMAPI\src\SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86
at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:line 76
at ContentPatcher.Framework.RawContentPack.TryReloadContent(String& error) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\RawContentPack.cs:line 80
at ContentPatcher.ModEntry.GetContentPacks()+MoveNext() in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\ModEntry.cs:line 455

And

[Content Patcher Animations] This mod failed in the GameLoop.UpdateTicked event. Technical details:
Newtonsoft.Json.JsonReaderException: Can't parse JSON file at C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\My Yandere Sebastian\content.json. This doesn't seem to be valid JSON.
Technical details: Invalid character after parsing property name. Expected ':' but got: d. Path 'Changes[0].entries.Introduction', line 10, position 5.
at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86
at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in SMAPI\Framework\ContentPack.cs:line 76
at ContentPatcherAnimations.Mod.CollectPatches() in C:\Programming\StardewValley\ModSource\ContentPatcherAnimations\Mod.cs:line 216
at ContentPatcherAnimations.Mod.InitializeIfNeeded() in C:\Programming\StardewValley\ModSource\ContentPatcherAnimations\Mod.cs:line 146
at ContentPatcherAnimations.Mod.OnUpdateTicked(Object sender, UpdateTickedEventArgs e) in C:\Programming\StardewValley\ModSource\ContentPatcherAnimations\Mod.cs:line 127
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101


I'm really at my wit's end. Any advice or help would be greatly appreciated.
 

salmonsalmon

Cowpoke
Idk about CP Animations since I have never done animations but the regular CP, one of the lines says:

Code:
 Technical details: Invalid character after parsing property name. Expected ':' but got: d. Path 'Changes[0].entries.Introduction', line 10, position 5.
This means you have a character somewhere messing up the coding. This error is not making the mod getting read correctly by SMAPI, if you want you can use Smapi.io (same website as Smapi log) to validate your JSON and it will tell you what is wrong: here is the link. Alternatively, If you want, you can send me the file and I can look at it and privately give you pointers on how to make a mod. I have a few mods published that are successful, but I have a lot of private mods I made for myself.
 

AngryRagdoll

Newcomer
Idk about CP Animations since I have never done animations but the regular CP, one of the lines says:

Code:
 Technical details: Invalid character after parsing property name. Expected ':' but got: d. Path 'Changes[0].entries.Introduction', line 10, position 5.
This means you have a character somewhere messing up the coding. This error is not making the mod getting read correctly by SMAPI, if you want you can use Smapi.io (same website as Smapi log) to validate your JSON and it will tell you what is wrong: here is the link. Alternatively, If you want, you can send me the file and I can look at it and privately give you pointers on how to make a mod. I have a few mods published that are successful, but I have a lot of private mods I made for myself.
I tried that, and it highlighted a few errors, but even after rewriting the lines from scratch, the same errors pop up. I think it's more I have no idea what I'm doing lol.

I would really appreciate the help, since I've never done anything like this before. Usually, I'm just editing textures or making CIT packs for minecraft for my kids. Where would I send it to? And please don't judge the contents lol.
 
Last edited:

salmonsalmon

Cowpoke
I tried that, and it highlighted a few errors, but even after rewriting the lines from scratch, the same errors pop up. I think it's more I have no idea what I'm doing lol.

I would really appreciate the help, since I've never done anything like this before. Usually, I'm just editing textures or making CIT packs for minecraft for my kids. Where would I send it to? And please don't judge the contents lol.
You could upload them to google drive and send me the link and I can look into it and tell ya what you did wrong. And I will not judge the contents lol. I made a custom npc from Resident Evil, I have no right to judge.
 

AngryRagdoll

Newcomer
You could upload them to google drive and send me the link and I can look into it and tell ya what you did wrong. And I will not judge the contents lol. I made a custom npc from Resident Evil, I have no right to judge.
Ok, I sent you the link. Thanks again so much for doing this. No rush, just whenever your free is fine. I'm just grateful for the help.
 
Top