Code:
[Debug] [Game]: Unhandled exception caught: - [Exception] System.ArgumentExcepti
on: 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, Boo
lean add)
at Mooege.Core.GS.Common.InventoryGrid.AddItem(Item item, Int32 row, Int32 co
lumn)
at Mooege.Core.GS.Players.Inventory.HandleInventoryRequestMoveMessage(Invento
ryRequestMoveMessage request)
at Mooege.Core.GS.Players.Inventory.Consume(GameClient client, GameMessage me
ssage)
at Mooege.Core.GS.Games.Game.Route(GameClient client, GameMessage message)
[Debug] [Game]: Unhandled exception caught: - [Exception] System.ArgumentExcepti
on: 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, Boo
lean add)
at Mooege.Core.GS.Common.InventoryGrid.AddItem(Item item, Int32 row, Int32 co
lumn)
at Mooege.Core.GS.Players.Inventory.HandleInventoryRequestMoveMessage(Invento
ryRequestMoveMessage request)
at Mooege.Core.GS.Players.Inventory.Consume(GameClient client, GameMessage me
ssage)
at Mooege.Core.GS.Games.Game.Route(GameClient client, GameMessage message)
[Debug] [Server]: ReceiveCallback - [Exception] System.NullReferenceException: O
bject reference not set to an instance of an object.
at Mooege.Core.GS.Games.GameManager.RemovePlayerFromGame(GameClient gameClien
t)
at Mooege.Net.GS.ClientManager.OnDisconnect(Object sender, ConnectionEventArg
s e)
at Mooege.Net.Server.OnClientDisconnect(ConnectionEventArgs e)
at Mooege.Net.Server.RemoveConnection(Connection connection, Boolean raiseEve
nt)
at Mooege.Net.Server.ReceiveCallback(IAsyncResult result)
Nullreferences should not happen. This is dirty programming. Check for null more often!
Bookmarks