bedrock-protocol icon indicating copy to clipboard operation
bedrock-protocol copied to clipboard

add_player packet not received on client

Open Sasha20028 opened this issue 3 years ago • 10 comments

Hi! I receive a MobEffect package from the server with the parameters:

runtime_entity_id: 436n, event_id: 1, effect_id: 10, amplifier: 200, particles: false, duration: 400

When sending the same package, I don't understand how to get\generate "runtime_entity_id".

Sasha20028 avatar Jul 26 '22 06:07 Sasha20028

Hello, can you elaborate on what you want to "generate"? Don't you already have the entity ID there you want, 436 ?

If you want to link that to a user you're going to need to keep track of players in the add_player packet.

extremeheat avatar Jul 26 '22 06:07 extremeheat

Hello, can you elaborate on what you want to "generate"? Don't you already have the entity ID there you want, 436 ?

436 is what I just get from the server. If I want to send a packet with this value, then nothing happens

If you want to link that to a user you're going to need to keep track of players in the add_player packet.

Packet track from server to player or from player to server?

Sasha20028 avatar Jul 26 '22 07:07 Sasha20028

So you want to send this mob effect packet to the client, am I understanding correctly?

extremeheat avatar Jul 26 '22 10:07 extremeheat

So you want to send this mob effect packet to the client, am I understanding correctly?

yes

Sasha20028 avatar Jul 26 '22 11:07 Sasha20028

Strange. When I log in from the PC, "add_player" does not come to the server. And when I connect from the phone, everything comes.

Sasha20028 avatar Jul 26 '22 13:07 Sasha20028

are you using a proxy or a server with bedrock-protocol?

extremeheat avatar Jul 27 '22 00:07 extremeheat

are you using a proxy or a server with bedrock-protocol?

I downloaded the update 1.19.10 and the add_player package stopped coming to me.

On the previous version, the package did not come from the PC only, now it does not come from the phone every time

Package log: https://pastebin.com/HjHh52h8

Sasha20028 avatar Jul 27 '22 05:07 Sasha20028

>Debug provided:

  • Connection from version 1.19.10 (PC)
  • PMMP Server (1.19.10)

>Actions on the server:

  • Log in to the server -> write to chat 123 -> log out from the server.

>DEBUG

Sasha20028 avatar Jul 27 '22 08:07 Sasha20028

Please provide your code and some screenshots of the problem and how it looks in game

extremeheat avatar Jul 27 '22 08:07 extremeheat

Please provide your code and some screenshots of the problem and how it looks in game

  • Running a proxy server
  • I log on to the server

The add_player package is not logged

Code https://pastebin.com/qvevcTbi vNNW2kh0sOs

Sasha20028 avatar Jul 27 '22 08:07 Sasha20028

Please re-open if this is still a problem on latest version, 1.19.50

extremeheat avatar Dec 08 '22 02:12 extremeheat