firebolt55439 / Diep.io-Protocol

A project dedicated to reverse-engineering diep.io's client/server protocol.
33 stars 10 forks source link

Added death packet #4

Closed ghost closed 8 years ago

firebolt55439 commented 8 years ago

I'm having trouble reproducing this on my computer for some reason - it does not seem that a death packet is sent by the client to the server with a last value of 21.

Could you verify that it works on your computer? Are you perhaps doing a different game mode (e.g. Team DM, Domination, etc.)? @Maplicant

hxxr commented 8 years ago

I've tested all the game modes, and it doesn't seem like any packets are sent upon death. Maybe this was just a coincidence, like when there was two packets when upgrading Health Regen.

firebolt55439 commented 8 years ago

The client doesn't seem to send the server any special packets upon death, but there must be some packet sent by the server to the client indicating that your tank died. I'll look into that (maybe even clear up some server --> client communication on the way).

ghost commented 8 years ago

I think it was just a coincidence. I should have tested it more thoroughly. I agree with @firebolt55439 though that there has to be something that activates the respawn screen. It might do something like if (health < 0), but then we would have to reverse-engineer the health system first.

firebolt55439 commented 8 years ago

That's certainly possible, but I'm still holding out hope there's some "nice" packet sent by the server to the client upon death 😄

hxxr commented 8 years ago

You know what? I'll work on this too.

Edit: Right now I'm 75% sure that if there are packets for death and/or health, it would be from the server, because the client would send the server info about the current tank, but it has no idea where the other bullets and tanks are.

hxxr commented 8 years ago

I think we should close this and post our findings on a discussion.

firebolt55439 commented 8 years ago

Agreed.

firebolt55439 commented 8 years ago

@hxxr Would you like to open the discussion?

hxxr commented 8 years ago

15