Skip to content

JsonAssets Ring Related Crashes #54

@embolden

Description

@embolden

Hey - I have 1 or 2 possible Ring related crashes. I'll try to provide as much detail as I can and steps to reproduce.

Was playing a brand new farm to test a mod I was working on. Playing in multiplayer with myself as host and my wife as a farmhand. Both players have all of the same mods and same configs.

While she was resizing her window she experienced the first crash: https://gist.github.com/embolden/23cd79cebdef682c0ab0ea7fc183628f#file-smapi-crash-txt-L369

She tried to rejoin but kept getting a black screen. We decided to scrap that farm a new one. After a couple of crashes we were able to created a reproducible crash scenario.

If a farmhand has a custom ring and tries to rejoin a game, they get:

[11:15:28 ERROR Json Assets] Failed in LoadDisplayFields_Prefix for #2002:
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.Overrides.RingPatches.LoadDisplayFields_Prefix(Ring __instance, Boolean& __result) in G:\StardewValley\Mods_1.4\JsonAssets\Overrides\RingPatches.cs:line 21

Here are some logs from our testing. The first one is when we were testing my custom ring. The second one we disabled it and used a modified version of your wide nets ring. (I made it cost 1 gold and removed the seasonal requirement from the object.json)
https://gist.github.com/embolden/0710257e8611aa385378739f0a1c2bba
https://gist.github.com/embolden/efd113162b2e7cbdb0bb17b4ec8cacce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions