Skip to content

Troubleshooting

paradigmnomad edited this page Nov 25, 2019 · 8 revisions

If after reading this FAQ throughly you still have questions, make sure to include your SMAPI log. I typically ignore posts for help that exclude this. I ignore all help questions that come through private message.

Contents

Install

  1. Install the latest version of SMAPI.
  2. Install this mod from Nexus mods.
  3. Unzip any Json Assets content packs into Mods to install them.
  4. Run the game using SMAPI.

Do not use Vortex to install and of the PPJA packs as this may cause errors.

General Troubleshooting

Before posting on the modpage or reporting a bug make sure you have verified you have done these basic steps first:

  • You have the latest version of Json Assets and optionally CustomFarmingRedux - including their dependencies.
  • You have the latest version of SMAPI that corresponds to your version number.
  • You have the latest version of Stardew Valley and are not using a pirated copy.
  • You have all dependencies. SMAPI will notify you at the top of the log if a content pack didn't load due to a missing dependency.
  • Folders are placed in the correct locations. This is the number one reason why people report errors.
  • Double check to make sure you don't have two of the name folder. Example: [JA] Fresh Meat and [JA] Fresh_Meat are the same content pack but with a name change.
  • Make sure there aren't copies of folders inside packs. Example: [JA] Fruits and Veggies/Objects/Aloe & Aloe-copy will produce the exception injecting duplicate key error. If you see this it is safe to delete all folders with -copy in the name.
    • The last two errors are easy to overlook. Selecting the Trace box on the SMAPI log parser page can help you see if an item is being assigned two or more IDs. Example

Common Error Messages

This section is for some of the most common errors people experience with using a content pack. If you are unsure which one you're experiencing, but see read text in the SMAPI console and on the log you can cross reference to these errors. Your error may look slightly different but the general principal is the same.

Troubleshooting PPJA Content Packs for Json Assets

Exception Injecting Given Key

Exception injecting cooking recipe for Bulgogi: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at JsonAssets.Mod.ResolveObjectId(Object data) in G:\StardewValley\Mods\JsonAssets\Mod.cs:line 336
   at JsonAssets.Data.ObjectData.Recipe_.GetRecipeString(ObjectData parent) in G:\StardewValley\Mods\JsonAssets\Data\ObjectData.cs:line 60
   at JsonAssets.ContentInjector.Edit[T](IAssetData asset) in G:\StardewValley\Mods\JsonAssets\ContentInjector.cs:line 98

Solution: There is something missing from the recipe. This is caused by not installing a dependency or typing in an item ID/name wrong. Install the dependencies (often listed on the download page and in the manifest.json) or open up the .json file and see if you typed something wrong if you edited the file.

Exception Injecting Duplicate Key

This error presents itself in different ways. Below are some examples of this type of error. You may also see: Resolving for ________ which we don't have? Before any of these errors.

Cooking Recipe
Exception injecting cooking recipe for Bacon: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at JsonAssets.ContentInjector.Edit[T](IAssetData asset) in G:\StardewValley\Mods\JsonAssets\ContentInjector.cs:line 99Exception i
This mod failed in the SpecialisedEvents.UnvalidatedUpdateTick event. Technical details: 
System.ArgumentException: An item with the same key has already been added.
  at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
  at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
  at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
  at JsonAssets.Mod.AssignIds(String type, Int32 starting, IList`1 data)
  at JsonAssets.Mod.afterLoad(Object sender, EventArgs args)
  at JsonAssets.Mod.unsafeUpdate(Object sender, EventArgs args)
  at StardewModdingAPI.Framework.Events.ManagedEvent.Raise() in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Events\ManagedEvent.cs:line 126
Object Information
Exception injecting object information for Beeswax: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at JsonAssets.ContentInjector.Edit[T](IAssetData asset)

Solution: There is already an item with that name. This can happen when:

  • using mods that have the same items/item names
  • having two of the same file in different locations or
  • accidentally naming something with the same name

Double check all folders and rename/delete accordingly. Depending on which version of a pack you installed there may be different folder names for the same product. Ex. PumpkinPie and Pumpkin Pie are the same object but will appear in separate folders due to the space. Make sure to install proper compatibility patches when available.

Items Appearing Incorrectly

This error will not necessarily have an error in the console window.

This issue should be resolved with JA v1.4.0. If it is still happening make sure you have the latest version of both SDV and JA and report the issue.

Can't Plant Seeds

This error will not necessarily have an error in the console window.

There can be numerous reasons for being unable to plant seeds:

  • planting out of season
  • having two of the same file - see General Troubleshooting
  • installing with Vortex
  • [For Modders] creating a sprite that is bigger than the target

Troubleshooting PPJA Content Packs for Custom Farming Redux

Machines have turned into chests

Solution: This often occurs when CFR updates or CFR is incompatible with the latest version of the game/SMAPI and the player saves the game. The only way to fix this is to destroy the chests & rebuild the machines either with CJB Item Spawner or manually rebuild them.

Machines Only Producing Weeds

Solution: Uninstalling a content pack is the primary cause for this. CFR can't find the output for the input that you put in so it produces weeds.

Unrelated Issues

These are issues that some users report that are not related to JsonAssets. Please stop reporting these, I cannot fix them because the issue is with another mod.

NPCs Stay In Their Rooms All Day

Solution: This is a known bug with Longevity. Every user who has reported this issue has Longevity installed. Removing Longevity will fix this. People who aren't using JsonAssets also are reporting this issue.

Lag

Solution: If you have CFR installed, placing too many custom machines can cause your game to lag. According to FreddyKross, this can be solved by going to your Custom Farming Redux folder and opening the config.json. You can turn off the automation by changing it into false. No more lagging, no matter how many machines you place!

Clone this wiki locally