TAB icon indicating copy to clipboard operation
TAB copied to clipboard

[Unlimited nametag mode] Desync while flying

Open SecretlyJealous opened this issue 1 year ago • 8 comments

Server version

1.20.4

TAB version

4.1.2

Describe the bug

We started using this plugin today to bypass the minecraft nametag limitations. Sometimes nametags will float very high or just be on the right side instead of the middle, generally it seems like nametags will just go away from the centre depending on movement. It seems similar to this issue: https://github.com/NEZNAMY/TAB/issues/1198 but because we have a lot of players with the ability to fly the issue is a lot more noticeable.

Unlimited nametag mode and scoreboard teams is the only thing we have enabled Config: https://pastebin.com/zZRMiHPc

scoreboard-teams:
  enabled: true 

unlimited-nametag-mode:
    enabled: true

Example of what happens: 2024-02-25_16 26 21

2024-02-25_16 09 46

Expected behavior

Nametag should always stay in the centre

Steps to reproduce

  1. Not sure how to reliably cause this

Additional info

No response

Checklist

  • [X] I am running latest version of the plugin
  • [X] I have read the wiki to make sure it's not an issue with configuration
  • [ ] I ticked all of the boxes without actually reading them
  • [X] I have read the Compatibility wiki page and am not trying to run the plugin on an unsupported server version / platform
  • [X] I am willing to cooperate to get this issue resolved faster, including providing any additional information requested or testing new builds

SecretlyJealous avatar Feb 25 '24 16:02 SecretlyJealous

Could this be the reason? https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Unlimited-nametag-mode#additional-note-3---position-desync

Tanguygab avatar Feb 25 '24 16:02 Tanguygab

Could this be the reason? https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Unlimited-nametag-mode#additional-note-3---position-desync

Has this bug been reported on the Minecraft bugs page?

SecretlyJealous avatar Feb 25 '24 17:02 SecretlyJealous

We are not aware of that. Minecraft's issue tracker is one of the most confusing things ever. Search engine doesn't work properly, filtering doesn't work properly and there are over 8000 open bug reports, so it would likely not get fixed anyway.

NEZNAMY avatar Feb 25 '24 17:02 NEZNAMY

I asked someone for a possible solution on this and they replied with: "This can be fixed with a different implementation by listening to outgoing packets and trailing them with the mounting information instead of what TAB does currently"

Not sure if there are any issues with this solution but I thought I would let you know about it and see if you agree with that solution or if it comes with its own issues

SecretlyJealous avatar Feb 26 '24 10:02 SecretlyJealous

image

NEZNAMY avatar Feb 26 '24 10:02 NEZNAMY

I have pushed a commit that changes teleport packets into move packets. This will result in the error being copied and therefore not noticeable. It should also improve synchronization while moving. The issue can still be reproduced by sneaking, where plugin respawns the armor stands for instant position change instead of an animation. This could possibly be eliminated by not doing this for flying players. Are you interested in it?

NEZNAMY avatar Feb 26 '24 19:02 NEZNAMY

I have pushed a commit that changes teleport packets into move packets. This will result in the error being copied and therefore not noticeable. It should also improve synchronization while moving. The issue can still be reproduced by sneaking, where plugin respawns the armor stands for instant position change instead of an animation. This could possibly be eliminated by not doing this for flying players. Are you interested in it?

Yes! This would be useful, thank you

SecretlyJealous avatar Feb 26 '24 19:02 SecretlyJealous

Done, although it looks a little strange that when sneaking down while flying your nametag doesn't go lower, but I cannot fix that anymore. Other than that, it is now perfectly synced to match the vanilla bug. I think we can call it here.

NEZNAMY avatar Feb 26 '24 19:02 NEZNAMY