MantisBT - Zandronum
View Issue Details
0002391Zandronum[All Projects] Bugpublic2015-08-09 17:092018-09-30 21:51
unknownna 
Edward-san 
lowtextalways
closedfixed 
2.1 
3.03.0 
0002391: "1 ally left" message turns into "last player alive" during death state even when more players are alive
See attached screenshot.
No tags attached.
related to 0002384closed Edward-san "spectating - waiting to respawn" says "spectating - space to join" when coop spying 
png Screenshot_Doom_20150809_190643.png (179,289) 2015-08-09 17:09
/tracker/file_download.php?file_id=1609&type=bug
png
Issue History
2015-08-09 17:09unknownnaNew Issue
2015-08-09 17:09unknownnaFile Added: Screenshot_Doom_20150809_190643.png
2015-08-09 17:09unknownnaStatusnew => confirmed
2015-08-09 17:10unknownnaRelationship addedrelated to 0002384
2015-08-09 18:47Edward-sanNote Added: 0013169
2015-08-09 18:47Edward-sanAssigned To => Edward-san
2015-08-09 18:47Edward-sanStatusconfirmed => feedback
2015-08-09 18:56WaTaKiDNote Added: 0013170
2015-08-09 19:11unknownnaNote Added: 0013171
2015-08-09 19:11unknownnaStatusfeedback => assigned
2015-08-09 19:11unknownnaNote Edited: 0013171bug_revision_view_page.php?bugnote_id=13171#r7856
2015-08-09 19:25WaTaKiDNote Added: 0013172
2015-08-09 19:32unknownnaNote Added: 0013174
2015-08-09 21:40Edward-sanNote Added: 0013176
2015-08-09 22:12WaTaKiDNote Added: 0013179
2015-08-09 22:14Edward-sanStatusassigned => feedback
2015-08-10 13:28unknownnaNote Added: 0013190
2015-08-10 13:28unknownnaStatusfeedback => assigned
2015-08-10 13:28unknownnaNote Edited: 0013190bug_revision_view_page.php?bugnote_id=13190#r7875
2015-08-10 14:03Edward-sanNote Added: 0013195
2015-08-10 14:08Edward-sanNote Edited: 0013195bug_revision_view_page.php?bugnote_id=13195#r7880
2015-08-10 14:08Edward-sanNote Edited: 0013195bug_revision_view_page.php?bugnote_id=13195#r7881
2015-08-10 14:29unknownnaNote Added: 0013197
2015-08-10 14:32unknownnaNote Edited: 0013197bug_revision_view_page.php?bugnote_id=13197#r7883
2015-08-10 14:32unknownnaNote Edited: 0013197bug_revision_view_page.php?bugnote_id=13197#r7884
2015-08-10 15:47Edward-sanNote Added: 0013198
2015-08-10 16:02Edward-sanNote Edited: 0013198bug_revision_view_page.php?bugnote_id=13198#r7889
2015-08-10 16:19WaTaKiDNote Added: 0013202
2016-10-14 00:08unknownnaNote Added: 0015972
2016-10-14 09:11Edward-sanNote Added: 0015981
2016-10-14 09:11Edward-sanStatusassigned => feedback
2016-10-14 19:00WaTaKiDNote Added: 0015997
2016-10-15 11:15unknownnaNote Added: 0016006
2016-10-15 11:15unknownnaStatusfeedback => assigned
2016-10-15 11:27unknownnaNote Edited: 0016006bug_revision_view_page.php?bugnote_id=16006#r9751
2016-10-15 11:28unknownnaNote Edited: 0016006bug_revision_view_page.php?bugnote_id=16006#r9752
2016-10-15 11:33unknownnaNote Edited: 0016006bug_revision_view_page.php?bugnote_id=16006#r9753
2016-10-15 11:34unknownnaNote Edited: 0016006bug_revision_view_page.php?bugnote_id=16006#r9754
2016-10-15 11:35unknownnaNote Edited: 0016006bug_revision_view_page.php?bugnote_id=16006#r9755
2016-10-15 12:32Edward-sanNote Added: 0016011
2016-10-15 12:32Edward-sanStatusassigned => feedback
2016-10-15 12:40unknownnaNote Added: 0016012
2016-10-15 12:40unknownnaStatusfeedback => assigned
2016-10-15 12:44unknownnaNote Edited: 0016012bug_revision_view_page.php?bugnote_id=16012#r9761
2016-10-15 13:10Edward-sanNote Added: 0016013
2016-10-15 13:25Edward-sanNote Edited: 0016013bug_revision_view_page.php?bugnote_id=16013#r9763
2016-10-15 13:25Edward-sanStatusassigned => feedback
2016-10-15 14:33WaTaKiDNote Added: 0016015
2016-10-15 16:03unknownnaNote Added: 0016016
2016-10-15 16:03unknownnaStatusfeedback => assigned
2016-10-15 16:05unknownnaNote Edited: 0016016bug_revision_view_page.php?bugnote_id=16016#r9767
2016-10-15 16:07unknownnaNote Edited: 0016016bug_revision_view_page.php?bugnote_id=16016#r9768
2016-10-15 16:09unknownnaNote Edited: 0016016bug_revision_view_page.php?bugnote_id=16016#r9769
2016-10-15 22:19Edward-sanNote Added: 0016019
2016-10-15 22:19Edward-sanStatusassigned => needs review
2016-10-16 16:33Torr SamahoNote Added: 0016024
2016-10-16 16:33Torr SamahoStatusneeds review => feedback
2016-10-16 21:57Edward-sanNote Added: 0016028
2016-10-16 21:57Edward-sanStatusfeedback => needs review
2016-10-23 14:49Edward-sanNote Added: 0016084
2016-10-23 14:49Edward-sanStatusneeds review => needs testing
2016-12-28 19:14Ru5tK1ngNote Added: 0016563
2016-12-28 19:14Ru5tK1ngStatusneeds testing => resolved
2016-12-28 19:14Ru5tK1ngResolutionopen => fixed
2016-12-28 19:14Ru5tK1ngFixed in Version => 3.0
2016-12-28 19:14Ru5tK1ngTarget Version => 3.0
2018-09-30 21:51Blzut3Statusresolved => closed

Notes
(0013169)
Edward-san   
2015-08-09 18:47   
'https://bitbucket.org/crimsondusk/zandronum-sandbox-stable/commits/d39761d32057c9311815527e9a8e875691f95f62 [^]' should fix the issue for survival.
(0013170)
WaTaKiD   
2015-08-09 18:56   
this build contains the above commit:'https://www.dropbox.com/s/k0yv273xlop3urq/zandronum-2.2-r150809-1845-d39761d-windows.zip?dl=0 [^]'
(0013171)
unknownna   
2015-08-09 19:11   
It works, but it needs to be adapted to (Team)LMS as well.

(0013172)
WaTaKiD   
2015-08-09 19:25   
i have not tested, but since this involves lives, wut about survival invasion?
(0013174)
unknownna   
2015-08-09 19:32   
Hmm, the "x ally left" message is absent in survival invasion.
(0013176)
Edward-san   
2015-08-09 21:40   
'https://bitbucket.org/crimsondusk/zandronum-sandbox-stable/commits/71520fbb8fa3b613211cea878cadab157f00f873 [^]' should fix the Team LMS issue as well. I'll fix the survival invasion in the new ticket.
(0013179)
WaTaKiD   
2015-08-09 22:12   
this build contains the above commit:'https://www.dropbox.com/s/ylr3eoowft6y022/zandronum-2.2-r150809-2130-71520fb-windows.zip?dl=0 [^]'
(0013190)
unknownna   
2015-08-10 13:28   
It works in team-LMS, but it's still broken in regular LMS.

(0013195)
Edward-san   
2015-08-10 14:03   
(edited on: 2015-08-10 14:08)
AFAIR, regular LMS has no concept of 'allies', because every player is considered as enemies, so the only valid message would be the number of opponents left.

(0013197)
unknownna   
2015-08-10 14:29   
(edited on: 2015-08-10 14:32)
Yeah, indeed. It needs to be adapted for "opponents" as well. The "opponents" part works properly in team-LMS though.

(0013198)
Edward-san   
2015-08-10 15:47   
(edited on: 2015-08-10 16:02)
Technically it could be something to report aside, but I'll fix it anyway.

[edit] fixed in'https://bitbucket.org/crimsondusk/zandronum-sandbox-stable/commits/24e58338ada5faa22f1f74b69f4a6b98cb4f4817 [^]'

(0013202)
WaTaKiD   
2015-08-10 16:19   
this build contains the above commit:'https://www.dropbox.com/s/ghj93chy782b6it/zandronum-2.2-r150810-1600-24e5833-windows.zip?dl=0 [^]'
(0015972)
unknownna   
2016-10-14 00:08   
It seems that I forgot about this one. Anyway, the build above fixes the issue in LMS.
(0015981)
Edward-san   
2016-10-14 09:11   
I decided to make the fix directly in 3.0, since this way I could also remove some unnecessary functions. This changeset:'https://bitbucket.org/zandronum/zandronum-sandbox/commits/023c97d4e3a2096aa7175edc828c2e65994118a6 [^]' should fix both this ticket and 0002394. Also, this change fixes also missing allies/enemies left in custom gamemodes with dead spectators.

When the build is ready, can you check that everything still works fine?
(0015997)
WaTaKiD   
2016-10-14 19:00   
this 3.0 build contains the above commit: 'https://www.dropbox.com/s/uodxu0l152b3rkt/zandronum-3.0-r161014-0906-023c97d-windows.zip?dl=0 [^]'
(0016006)
unknownna   
2016-10-15 11:15   
(edited on: 2016-10-15 11:35)
Quote from Edward-san
Also, this change fixes also missing allies/enemies left in custom gamemodes with dead spectators.

Can you elaborate what you mean by this? Is this for survival invasion? In that case it seems to work well. The only difference being that the ally counter is displayed during wave countdowns as players are able to die and lose lives during the countdowns, which IMO is a design flaw with the gamemode itself.

I tested the other modes as well and it seems that everything still works fine.

Edit:

It's broken if somebody spectates. The amount of allies/opponents is not updated then.

(0016011)
Edward-san   
2016-10-15 12:32   
Quote from unknownna
It's broken if somebody spectates. The amount of allies/opponents is not updated then.


Does it happen with all the gamemodes?
(0016012)
unknownna   
2016-10-15 12:40   
(edited on: 2016-10-15 12:44)
Yes. It happens in all the modes with lives in them.

* Survival
* LMS
* TeamLMS
* Survival Invasion

However, this also seems to happen in 2.1.2 and thus might be a separate issue.

(0016013)
Edward-san   
2016-10-15 13:10   
(edited on: 2016-10-15 13:25)
Can confirm it happens in 2.1. If nothing regresses, then it's going to be ready for review.

[edit] Actually I managed to fix this, too, with this changeset:'https://bitbucket.org/zandronum/zandronum-sandbox/commits/65f9f5ef1601cad72860f249c044798577179a64 [^]' .

(0016015)
WaTaKiD   
2016-10-15 14:33   
this 3.0 build contains the above commits: 'https://www.dropbox.com/s/tb1smrfm2j8lt0l/zandronum-3.0-r161015-1323-65f9f5e-windows.zip?dl=0 [^]'
(0016016)
unknownna   
2016-10-15 16:03   
(edited on: 2016-10-15 16:09)
Thanks for the builds as usual, WaTaKiD.

It seems to have fixed all of the issues. One very minor issue left is that a player coop spying on someone else while suiciding/dying won't have the ally/opponent counter "frozen" while dying. It works properly however when you're a spectator or when you coop spy on another suiciding/dying player. That's all I believe.

Actually, I think it works 100% right now, I just got a bit confused. It should of course update the counter when coop spying on someone else while dying, since the counter is from the other player's perspective.

(0016019)
Edward-san   
2016-10-15 22:19   
Thanks for checking! This is ready for review, so here's the new pull request:'https://bitbucket.org/Torr_Samaho/zandronum/pull-requests/154/fixed-the-inconsistent-missing-number-of/diff [^]' .
(0016024)
Torr Samaho   
2016-10-16 16:33   
The patch looks good except for a minor efficiency issue. Please see my comment on bitbucket.
(0016028)
Edward-san   
2016-10-16 21:57   
Updated.
(0016084)
Edward-san   
2016-10-23 14:49   
Added to 3.0 upstream with this changeset:'https://bitbucket.org/Torr_Samaho/zandronum/commits/0442ec91a6090ad4f7513a42b386a722c91e7e7f [^]'
(0016563)
Ru5tK1ng   
2016-12-28 19:14   
Fix works and the counter updates correctly when your ally spectates or dies.