Issue Help Needed! -- Co-Op not working

mintalope

Newcomer
Hello! Ever since Stardew had that update, I've been getting this message when I try to join my boyfriend and I's co-op:


[game] An error occurred in the base update loop: InvalidOperationException: Failed reading Character (Farmer) field 'Character (Farmer): friendshipData'
---> ArgumentException: An item with the same key has already been added. Key:
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at Netcode.NetDictionary`5.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetDictionary.cs:line 604
at Netcode.NetFields.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetFields.cs:line 236
--- End of inner exception stack trace ---
at Netcode.NetFields.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetFields.cs:line 240
at StardewValley.Network.Client.receiveAvailableFarmhands(BinaryReader msg) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\Client.cs:line 124
at StardewModdingAPI.Framework.SMultiplayer.OnClientProcessingMessage(IncomingMessage message, Action`1 sendMessage, Action resume) in SMAPI\Framework\SMultiplayer.cs:line 336
at StardewValley.SDKs.Steam.SteamNetClient.receiveMessagesImpl() in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SDKs\Steam\SteamNetClient.cs:line 406
at StardewValley.Network.Client.receiveMessages() in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\Client.cs:line 70
at StardewValley.Menus.FarmhandMenu.update(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\FarmhandMenu.cs:line 292
at StardewValley.Menus.TitleMenu.update(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\TitleMenu.cs:line 1728
at StardewValley.Game1.updateActiveMenu(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4794
at StardewValley.Game1._update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4131
at StardewValley.Game1.Update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3199
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1082

It's Stardew 1.6.3 and SMAPI 4.0.3! All the mods load in fine and the error only happens when I try to join our co-op. It says no cabins are available which doesn't make sense because we're married in the game! Thank you so much for any help you might be able to provide, please let me know if you need any other information!


Edit: I've already tried reinstalling SMAPI also! Also I can join in vanilla but not modded?
 
Last edited:

Maple

Sodbuster
Hello! Ever since Stardew had that update, I've been getting this message when I try to join my boyfriend and I's co-op:


[game] An error occurred in the base update loop: InvalidOperationException: Failed reading Character (Farmer) field 'Character (Farmer): friendshipData'
---> ArgumentException: An item with the same key has already been added. Key:
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at Netcode.NetDictionary`5.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetDictionary.cs:line 604
at Netcode.NetFields.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetFields.cs:line 236
--- End of inner exception stack trace ---
at Netcode.NetFields.ReadFull(BinaryReader reader, NetVersion version) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\NetFields\NetFields.cs:line 240
at StardewValley.Network.Client.receiveAvailableFarmhands(BinaryReader msg) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\Client.cs:line 124
at StardewModdingAPI.Framework.SMultiplayer.OnClientProcessingMessage(IncomingMessage message, Action`1 sendMessage, Action resume) in SMAPI\Framework\SMultiplayer.cs:line 336
at StardewValley.SDKs.Steam.SteamNetClient.receiveMessagesImpl() in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SDKs\Steam\SteamNetClient.cs:line 406
at StardewValley.Network.Client.receiveMessages() in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\Client.cs:line 70
at StardewValley.Menus.FarmhandMenu.update(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\FarmhandMenu.cs:line 292
at StardewValley.Menus.TitleMenu.update(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\TitleMenu.cs:line 1728
at StardewValley.Game1.updateActiveMenu(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4794
at StardewValley.Game1._update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4131
at StardewValley.Game1.Update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3199
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1082

It's Stardew 1.6.3 and SMAPI 4.0.3! All the mods load in fine and the error only happens when I try to join our co-op. It says no cabins are available which doesn't make sense because we're married in the game! Thank you so much for any help you might be able to provide, please let me know if you need any other information!


Edit: I've already tried reinstalling SMAPI also! Also I can join in vanilla but not modded?
Try to load your error log here. It would be very helpful if we could get a look at Smapi log URL of both the host and the guest/player.
SMAPI log parser - SMAPI.io
 
Top