Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

General desync issues #29

Closed
themoonisacheese opened this issue Sep 30, 2019 · 1 comment
Closed

General desync issues #29

themoonisacheese opened this issue Sep 30, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@themoonisacheese
Copy link
Owner

I'm pretty sure this is what causes #2 and #21 but I can't manage to fix it.

right now I think 2 things are happening:

the first is that the player's entityID is not in sync with the servers, so when the player recieves packets ordering it to eg apply an effect, it applies it to a random entity instead of itself. This problem is compounded by the fact that the proxyClient's entityID seems to always be 0.

the second half of the problem is that the player recieves packets telling it to spawn in the overworld twice. This is a problem described at https://wiki.vg/Protocol#Respawn . Spawning the player in dimension 1 (the end) might fix this problem, but then the client thinks it's in the end until respawn. careful control of packet order might fix this, but the first half of the problem still exists.

Help is very much wanted, as I just spent a good part of my weekend trying to fix this without any shred of success.

@themoonisacheese themoonisacheese added bug Something isn't working help wanted Extra attention is needed labels Sep 30, 2019
@confusinguser
Copy link

confusinguser commented Oct 13, 2019

You can get the entityID from the login, entity_status, entity_metadata and entity_update_attributes packets and save it for when the proxyClient connects.

Edit: I've created a system that saves the packets up until the first update_time packet in an array and sends them when a proxyClient connects. The same can be done for when the queue finishes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants