MCMrARM / mcpelauncher-linux

Please note this is a legacy repository, please go to: https://github.com/minecraft-linux/mcpelauncher-manifest/wiki
GNU General Public License v3.0
312 stars 46 forks source link

[server] Some players don't receive chat messages #341

Open NyaomiDEV opened 6 years ago

NyaomiDEV commented 6 years ago

At first when they reported me this I thought it was some kind of Xbox privacy limitation, but then I wanted to investigate more and it seems that some messages are lost in their way to the other players. In the worst scenario some players don't receive chat messages at all.

It's like this: Player A sends a message: players B and C receive it, player D doesn't receive it Player B sends a message: all the other players receive it Player E joins, player A, B, C, D are chatting together but player E doesn't receive any messages and when s/he sends a message the other players don't receive it. It seems service messages are always received by all the players (like player join/quit and deaths)

I think it's because of UDP packets and also because MCPE's internal server is meant for LAN multiplayer purposes.

MCMrARM commented 6 years ago

Messages are sent reliably. I have no idea why this is a case, but I figured out it DOES have something to do with Xbox Live privacy stuff, and appears to be a MCPE bug.

NyaomiDEV commented 6 years ago

@MCMrARM do you have a link to an issue ticket in their JIRA or a proof of concept for me to better understand this bug?

MCMrARM commented 6 years ago

As far as I know, it's related to the last parameter in TextPacket which is the Xbox Live user id. I had issues with this on my test public server so I zero'ed it out instead of fowarding it from the client and then it started working fine and always passed messages through.

NyaomiDEV commented 6 years ago

It's fine, but even if I can see others' messages sometimes it is impossible to me to talk with them because they won't receive my messages. At least is there a workaround to this?