• Dear forum reader,

    To actively participate on the forum by joining discussions or starting your own threads or topics, you need a game account and to REGISTER HERE!

Fixed [28144] Inconsistent messages order in mail

Karvest

Well-Known Member
Game version: v1.86-(e9dcc48)-(master-stable) (2019-08-01 13:31)
HTML5 Yes/No: No
Game world: Beta1
Browser/IOS/Android + version: Chrome x64
Flash Player version: 32.0.0.223
Operating System: Windows 10
Screen resolution: 1920x1200
Account name:
Karvest
Humans or Elves: Elves
Reproducibility: 2/5 (1/5 = happened once; 2/5 = happens randomly; 3/5 = happens sometimes; 4/5 = happens often, but not always; 5/5 = happens always)

Current situation:
When 2 players send message to the same thread at the same second their messages can change their order on next reload. Looking deeply into raw data received by client seems messages are sorted not by their unique id (which is assigned in the order messages are received by server, i believe), but only by unix timestamp, which is the same for both messages. And sometimes message with lower id is shown as received later. This is most confusing when such thing happens in KP swap thread and same messages are shown in different order for different people.

Expected situation:
messages should be always ordered by their post_id

Reproduction Steps:
1. 2 players send message at the same second
2. reopen mail message, notice order
3. reload game, reopen mail, notice order
4. compare messages order in different players mailboxes
5. if all noticed orders are the same => retry from the beginning
6. open dev tools and reload game + open mailbox
7. find appropriate mail thread in network exchange
8. notice that order of messages is different than order of their post_id's


Can't show screenshots/data flow from beta now, just investigated this bug on live server, but doubt it behaves differently on beta.
 

Marindor

Community Manager
Elvenar Team
Hi @Karvest we're having a hard time reproducing this currently. Could you please make a video of this happening? That would help our development team tremendously :)
 

Karvest

Well-Known Member
Such things are very hard to reproduce on purpose. Or even notice that it's happened when you are not looking for it actively unless you faced with it on real KP swap chain and messed this chain up...
 

Karvest

Well-Known Member
not sure about video, but managed to do screenshots from second try
my mail:
upload_2019-9-15_13-45-32.png

Code:
    {
      "__class__": "MessagePostVO",
      "post_id": 1379050,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "яяяяя",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379051,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "2222",
      "created_at": 1568544152
    },
Other player:
upload_2019-9-15_13-46-44.png

Code:
    {
      "__class__": "MessagePostVO",
      "post_id": 1379051,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "2222",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379050,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "яяяяя",
      "created_at": 1568544152
    },
You can also look up those messages in game db, as id's are listed.
 

Karvest

Well-Known Member
btw, noticed different order even for first try on other player's screenshot (was taken before reloading game), but after reload it shows different:
upload_2019-9-15_14-1-30.png
my
Code:
    {
      "__class__": "MessagePostVO",
      "post_id": 1379050,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "яяяяя",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379051,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "2222",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379045,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "1111",
      "created_at": 1568544096
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379046,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "ффффф",
      "created_at": 1568544096
    },
other player
Code:
    {
      "__class__": "MessagePostVO",
      "post_id": 1379051,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "2222",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379050,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "яяяяя",
      "created_at": 1568544152
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379045,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 65557,
        "name": "Karvest",
        "avatar": "portraitIdKnight"
      },
      "post": "1111",
      "created_at": 1568544096
    },
    {
      "__class__": "MessagePostVO",
      "post_id": 1379046,
      "author": {
        "__class__": "BasePlayerVO",
        "player_id": 80634,
        "name": "Yera",
        "avatar": "portraitIdGreenclothes"
      },
      "post": "ффффф",
      "created_at": 1568544096
    },
So first try was shown correctly right after sending, but messed up order on both sides after game reload, while second is messed up only on on my side.
mail thread id: 187350
 
Last edited:

Karvest

Well-Known Member
It marked as fixed, but does that applied to old messages ordering or only for new ones?
I still see thread from screenshots with incorrect messages order.