MantisBT - Zandronum
View Issue Details
0002447Zandronum[All Projects] Bugpublic2015-09-08 20:252024-04-08 19:42
fr-blood 
Dusk 
normalminoralways
resolvedfixed 
MicrosoftWindowsXP/Vista/7
2.1 
3.23.2 
0002447: ThingCountNameSector with player
Hellow, I found a bug with this function when you use it with players.

If a player is in the sector that shall count them and then spect for the sector they will remains inside instead the value change(with another player for example)
Make a script with an hudmessagebold that will show how many players are in a certain sector using that function, makes on of the player join spects and you will see that the value stay the same.
No tags attached.
Issue History
2015-09-08 20:25fr-bloodNew Issue
2015-09-10 12:19DuskAssigned To => Dusk
2015-09-10 12:19DuskStatusnew => acknowledged
2015-09-10 15:30fr-bloodNote Added: 0013474
2017-12-01 18:34UnknownNote Added: 0018925
2017-12-01 18:34UnknownNote Edited: 0018925bug_revision_view_page.php?bugnote_id=18925#r11340
2017-12-01 18:41UnknownNote Edited: 0018925bug_revision_view_page.php?bugnote_id=18925#r11341
2017-12-01 18:42Edward-sanNote Added: 0018926
2017-12-01 18:42Edward-sanStatusacknowledged => feedback
2017-12-01 18:52UnknownNote Added: 0018927
2017-12-01 19:09UnknownNote Edited: 0018927bug_revision_view_page.php?bugnote_id=18927#r11343
2017-12-01 19:26UnknownNote Edited: 0018927bug_revision_view_page.php?bugnote_id=18927#r11344
2024-03-29 07:40Ru5tK1ngNote Added: 0023507
2024-03-29 07:40Ru5tK1ngStatusfeedback => needs review
2024-03-31 19:19Ru5tK1ngNote Added: 0023513
2024-03-31 19:19Ru5tK1ngStatusneeds review => needs testing
2024-03-31 19:19Ru5tK1ngTarget Version => 3.2
2024-04-08 19:42Ru5tK1ngNote Added: 0023555
2024-04-08 19:42Ru5tK1ngStatusneeds testing => resolved
2024-04-08 19:42Ru5tK1ngResolutionopen => fixed
2024-04-08 19:42Ru5tK1ngFixed in Version => 3.2

Notes
(0013474)
fr-blood   
2015-09-10 15:30   
I've a new information this bug happens only if the TID is 0, I tried it with a TID of 9999 for example and it worked fine when the player joined spectators.
(0018925)
Unknown   
2017-12-01 18:34   
(edited on: 2017-12-01 18:41)
This still happens with 3.0, and changing TID of players didn't work.

(0018926)
Edward-san   
2017-12-01 18:42   
Please make an example wad with the problem.
(0018927)
Unknown   
2017-12-01 18:52   
(edited on: 2017-12-01 19:26)
EDIT : screw it, here's a test example :'https://www.dropbox.com/s/mlsdit8q52whhb0/ThingCountNameSector_Test.wad?dl=0 [^]'

as described by konda :

"When 2 players play in a one-chance map, and one of them dies - if the dead player spectates, the map will say "all players failed" even though there's still 1 player left who is still alive in the map."

Apparently this is because DISCONNECT script doesn't remove player from that sector count.

(0023507)
Ru5tK1ng   
2024-03-29 07:40   
This should be fixed with:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/84 [^]'
(0023513)
Ru5tK1ng   
2024-03-31 19:19   
This was merged in'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/c319cbb0dd2a6f79781bbd6f11741b9224d81363 [^]'
(0023555)
Ru5tK1ng   
2024-04-08 19:42   
Tested using the example wad provide above. The player spectating was not counted anymore.