My notification is related to taking ressources and for some weird reason, the player reported the ressources was taken twice.
Going through the replay of the game, there is no such cases and ressources are correctly taken, used and displayed.
Due to the client/server architecture, could some corner case exists such as the following one ?
- Server send a notification to all players, It goes through internet, so maybe some acknowledgement exists.
At the ends, the server surely needs to save the last notification send to a player in case of connection issues. - Player1 receives and handle the notifications, aknowledge it and the server records the last notification.
- Player2 receives and handle the notifications, aknowledge it, but the aknowledgement never reach the server due to connection time out or something similar
- Since Server don't get any acknowledgement from Player2, it retries to send the same notification again which this time succeed and is properly aknowledged, but is applied twice for Player2
Code: Select all
notif_myNotif: function(args) {
if (this.prev_notif_uid == args.uid) return;
// manage the notification at UI level
this.prev_notif_uid = args.uid;
},I think I faced myself such case of double notification for other games when connecting from multiple devices to mobile phone.
Related bug : boardgamearena.com/bug?id=40992