Coding Help Converting CF Furniture to DGA

Dolly

Greenhorn
I don't now what I did differently, but I was able to fix it :thumbsup:

Hi! I'm trying to convert some furniture from the Custom Furniture mod to Dynamic Game Assets.

This is my first time trying to mod a game so I've been following this guide and kinda patchworking codes from other DGA mods to try and get it working. I thought I was going in the right direction, but I get this error when I launch Stardew. Does anyone have a better tutorial? Or can help explain what the issue is? 'Cause I can't make sense of it lol :skull: Thank you!


Code:
[Dynamic Game Assets] Exception loading content index: "Jsons/sweetheart_furniture_shop_entries.json": Newtonsoft.Json.JsonReaderException: JsonToken EndObject is not valid for closing JsonType Array. Path '', line 9, position 3.
   at Newtonsoft.Json.JsonReader.ValidateEnd(JsonToken endToken)
   at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JToken.ReadFrom(JsonReader reader, JsonLoadSettings settings)
   at DynamicGameAssets.Framework.ContentPacks.BasePackDataListConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in C:\Programming\StardewValley\ModSource\DynamicGameAssets\Framework\ContentPacks\BasePackDataListConverter.cs:line 22
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at DynamicGameAssets.Framework.ContentPacks.ContentPackLoaderV2.LoadIndex(String json, ContentIndexPackData parent) in C:\Programming\StardewValley\ModSource\DynamicGameAssets\Framework\ContentPacks\ContentPackLoaderV2.cs:line 58
 
Last edited:

keniyuu

Greenhorn
hi dolly! wanted to find more furniture mods for DGA cause i wanna use this mod for more accurate placing, but it doesn't support CP and/or AT well as they dont save the placement. but DGA does!

could i ask what furniture mods youve converted already? if not, its fine! ^^
 
Top