-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Death screen shows up on final death, bringing you to spectate location. #25
Comments
Unfortunately this bug seems to be the same as #18. I never found the root cause of that issue despite a lot of time spent. Any help is welcome. |
If I had to guess, teleport to spectate happens before preventDeath checks to cancels the death event? Since players are no longer part of the fighting state when spectating. i.e. Player Joins Arena > Game Starts > Part of FIGHTING state / in arena > Player Dies (loses all HP) > lives remaining check > preventDeath cancels death > Respawn > Player Dies > lives remaining check > preventDeath cancels death > Respawn > Player Dies (no more lives) > lives remaining check > teleport to Spectate > death screen (not actually dead but doesn't prevent death since no longer part of arena?) Or because it teleports out of the arena the same time prevent death happens, it doesn't cancel the screen? I'd have to enable PA debug to find out exactly what's going on. |
Hi @mibby ! I suggest you to try the latest dev build and, after some tests, to say me if your problem stills appear. |
Unfortunately this issue still occurs for me @Eredrim. Here is a zipped copy of the arena config and my arena world for testing. Please edit this comment to remove the download link once you have it. Just join Also is there any way to actually remove the death screen from occurring with packets? To properly prevent death and just teleport for respawn. Currently with dev 317 when you die, the death screen appears for a second, then goes away as you respawn. |
Hi mibby, I think we misunderstand 😄. The objective of dev 317 was to avoid infinite death screen and not to completely remove death screen. Yes, seeing a death screen when you are teleported to spectator zone is ugly but it's only cosmetic and for me priority was to remove blocking stuff. |
Ah, I see. Would it be possible to have the death screen refresh and tick away like in-arena respawns then when you are brought to spectator? Because as it stands, it remains active on your screen until you make the conscious decision to click it away. |
Yeah, I agree, it's boring even if it's just... normal death screen behavior :) |
@Eredrim Sorry for getting back to you so late. Using dev 319, unfortunately the death screen still occurs on the final death when you are teleported to spectate and old location on arena end. :( I'm also running into a reported issue that sometimes (rarely) people are respawning in the same location they die in the battlefield. Someone even had it where they respawned where they died at the end of the game as a spectator instead of being brought to the spectate location. Edit: It might actually be caused by players spam clicking so fast that they actually end up hitting the death screen respawn button before PA tries to teleport the player and hide it with prevent death. When they hit the respawn button, it spawns them back where they died? So the two issues would be respawning in location of death and the respawn screen not going away when brought to spectate location. Edit 2: If you would like to see the issue live, you are welcome to hop on over to my server at |
Hi mibby ! |
Hi @Eredrim, did some more testing as of commit / branch 31dd4a8
|
Hi ! After many tries, I'm not able to reproduce the spam clicking issue. I built a special build of PVPArena 1.14.1-SNAPSHOT with improved logging in order to debug that. You can download this build here. Can you run this build, enable debugging on your arena (/pa debug arenaname), reproduce the issue and then send me the debug log (which is in /plugins/pvparena/debug/arenaName) ? NB: this is a 1.14.1 build so there isn't the fix for death screen when players is teleported to spectator zone. |
@Eredrim Here is a Duel - https://paste.ubuntu.com/p/jfDjzwQCpY/
Here is another debug with Duel - https://paste.ubuntu.com/p/DQb7KzG88p/
For reference, these are the initial spawn locations for the arena tested in.
|
If I understand, players may also respawn where they died even if it's not they final death ? |
Yes, that is correct. By spam clicking and assumed being able to click the respawn screen before PVPArena hides it, they are able to respawn exactly where they died if they have multiple lives. Basically cancelling any teleport events the arena is trying to handle (i.e. respawn in spawn locations or respawn in spectator location).
I do not recall this being a problem prior. However it could also just be something people discovered recently and are only now taking advantage of it. Unless an optimization change / patch in Paper (Spigot Fork) as of the last month or so is affecting ticking, chunk loading, or entity respawning? I'm not too sure. All I do know is the problem can easily be reproduced in my live environment. If delaying teleport an extra tick doesn't solve the problem, maybe there needs to be sanity checks to ensure players are actually teleported or not existing in the same location they died at? |
Respawn when players still have lives is not delayed and with all information you give me, I'm pretty sure the problem was present on previous version. Would it be possible for you to test it with PVPArena 1.14.0 or #316 dev build ? If so, we will open a new issue dedicated to this problem. |
Unfortunately this issue is still present in dev 316. Again I can only presume it's breaking teleport when clicking the death screen due to spam clicking too fast. |
Okay, for me it's quite a good news. That means this issue is not a consequence of recent developments. I open a new issue => #36 |
All development your already tested for this specific issue (not the #36 one) is included in 1.15-SNAPSHOT. |
Compiled as of commit 568dbe8 This initial ticket issue seems to be fixed. No lingering death screen on final death teleport. |
PVPArena dev 316 (https://ci.craftyn.com/view/Spigot%20PVP%20Arena/)
Modules as of dev 198
Paper dev 155 (Spigot 1.15.2)
Arena Config
https://paste.ubuntu.com/p/4MKwG5PCJh/
On your final death that teleports you to the spectate lounge, the death respawn screen appears. Clicking the respawn button doesn't do anything, the screen just goes away and you are still in the spectate lounge.
@Eredrim Would it be possible to not have the death screen appear on last life death to spectate teleport? Normal deaths inside the arena properly do not show the death screen.
The text was updated successfully, but these errors were encountered: