Sometimes chunks aren't loading when you spawn and you are moving very fast and when i try to /kill me i don't receive the RespawnPacket and i need to restart my game
Steps to reproduce:
Yes sometimes when i spawn at the spawnpount i have the same issue
Yeah, it's a common issue. I'm not 100% certain why it's happening. Initially I thought that PocketMine was somehow not sending the spawn chunks, but I did some debugging and they are all being sent correctly, so I don't know. Will investigate further at a later date.
To clarify, the cause of the client-sided spaz is PocketMine teleporting the player into chunks which are not yet loaded. The missing chunks _always_ seem to be the square of ~9 chunks around the spawnpoint.
And if someone know a hack or a way to rensend chunks tell me pls (Waiting it to be fixed)
@Misteboss If you can apply the following patch:
chunk-bug.patch.txt
this appears to resolve the issue. But it appears more investigation is needed into RespawnPacket.
Seems that delayed teleport and client-sided expecting respawn immediate teleportation don't play nice together. It appears that in some circumstances the client will ignore distant chunks after a Respawn is sent, unless they are actually teleported directly to that area as chunks are loaded. Very strange issue.
Ok thanks i will test it in few hours
Btw i don't know if this have a link with this issue but when i teleport or sendTitle(no link) onPlayerJoinEvent the player isn't teleported and sometimes didn't receive the title, and in debug mode it's written that they are sended too early, maybe the PlayerJoinEvent is called too early ?
Make sure not to confuse PlayerJoinEvent with PlayerLoginEvent.
nop it's not the PreLoginEvent but the JoinEvent ^^
Uhmm sorry it was PreLoginEvent it's my fault ^^
I think I found on other issue, i need to did some test to verify ^^
Btw about you're chunk-patch, is it fixing the same problem who is happening onJoin ? @dktapps
Should i had $this->teleportImmediate($pos); at https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Player.php#L846
No, it won't solve the join problem, only the death issue.
Debugging with a coordinates resource pack I noticed some unusual peculiarities in the respawn behaviour. If I remember, I'll debug this tomorrow.
@dktapps this seems to be happening again!
Most helpful comment
Debugging with a coordinates resource pack I noticed some unusual peculiarities in the respawn behaviour. If I remember, I'll debug this tomorrow.