Anonymous | Login | Signup for a new account | 2024-04-25 07:58 UTC |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002072 | Zandronum | [All Projects] Bug | public | 2015-01-19 01:29 | 2018-09-30 23:03 | ||||
Reporter | Edward-san | ||||||||
Assigned To | Edward-san | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 2.0-beta | ||||||||
Target Version | 2.0 | Fixed in Version | 2.0 | ||||||
Summary | 0002072: Scoreboard time, after a minute, reports 0 for all the players except consoleplayer | ||||||||
Description | Like the title says. NetCommand conversion broke it. To think it went unnoticed for all this time.. | ||||||||
Steps To Reproduce | - Host a simple doom2.wad server; - Connect 2 clients; - wait at least a minute - open the scoreboard. This can be seen also when you exit the current level. | ||||||||
Attached Files | |||||||||
Notes | |
(0011444) Edward-san (developer) 2015-01-19 02:46 edited on: 2015-01-19 02:47 |
Found the cause, together with Dusk: SERVERCOMMANDS_UpdatePlayerTime, after the netcommand conversion, stopped sending the time to all the clients, just to the client the time is referred, itself. Changing 'command.sendCommandToOneClient( ulPlayer );' to 'command.sendCommandToClients( ulPlayerExtra, ulFlags );' works for me. I hope there are no other mistakes like that. |
(0011447) cobalt (updater) 2015-01-19 20:05 |
Issue addressed by commit d7c3ad2b0b68: Fixed: SERVERCOMMANDS_UpdatePlayerTime ignored the ulPlayerExtra and ulFlags arguments and always sent the command only to the client belonging to the player whose ping was updated (fixes 2072). Committed by Benjamin Berkels [Torr Samaho] on Monday 19 January 2015 21:01:09 Changes in files: src/sv_commands.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) |
(0011448) Torr Samaho (administrator) 2015-01-19 20:06 |
Thanks! Fixed. BTW: Why didn't GCC warn that the arguments ulPlayerExtra and ulFlags are not used? Or did it? This warning would have immediately shown that there is something wrong here. |
(0011449) Edward-san (developer) 2015-01-19 20:12 edited on: 2015-01-19 20:34 |
Because zdoom, before some time ago, did not enable -Wextra, hence no warnings. If you add it to CMakeLists.txt, it'll report the following things just on sv_commands.cpp:
In recent zdoom, CMakeLists.txt provides the following parameters: "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-missing-field-initializers", because it would become too much verbose. For example, the CCMDs don't use 'who' and 'key' parameter variables, so you'll see tons of warnings on CCMDs instances. [edit]uh, interesting that SERVERCOMMANDS_Nothing does not use bReliable ... oh damn, this was wrecked, too, in the netcommand change.. |
(0011466) WaTaKiD (updater) 2015-01-21 00:42 |
after testing with 2.0-r150119-2001, issue seems fixed |
(0011492) Edward-san (developer) 2015-01-21 21:32 |
Quote Done a commit which fixes this. |
(0011523) Torr Samaho (administrator) 2015-01-25 09:16 |
I pulled the change. |
(0011852) StrikerMan780 (reporter) 2015-03-16 19:15 edited on: 2015-03-16 19:16 |
After disconnecting and reconnecting, everyone's time resets to zero as far as I see. EDIT: After about a minute it fixes itself. I'm guessing this is normal. |
(0011854) Marcaek (reporter) 2015-03-16 19:59 |
Seems fixed now when I tested with Striker. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | No one explicitly supports this issue yet. |
Opponents: | No one explicitly opposes this issue yet. |
Issue History | |||
Date Modified | Username | Field | Change |
2015-01-19 01:29 | Edward-san | New Issue | |
2015-01-19 02:46 | Edward-san | Note Added: 0011444 | |
2015-01-19 02:46 | Edward-san | Description Updated | View Revisions |
2015-01-19 02:47 | Edward-san | Note Edited: 0011444 | View Revisions |
2015-01-19 03:02 | Edward-san | Assigned To | => Edward-san |
2015-01-19 03:02 | Edward-san | Status | new => needs review |
2015-01-19 20:05 | cobalt | Status | needs review => needs testing |
2015-01-19 20:05 | cobalt | Target Version | => 2.0 |
2015-01-19 20:05 | cobalt | Steps to Reproduce Updated | View Revisions |
2015-01-19 20:05 | cobalt | Note Added: 0011447 | |
2015-01-19 20:06 | Torr Samaho | Note Added: 0011448 | |
2015-01-19 20:12 | Edward-san | Note Added: 0011449 | |
2015-01-19 20:13 | Edward-san | Note Edited: 0011449 | View Revisions |
2015-01-19 20:20 | Edward-san | Note Edited: 0011449 | View Revisions |
2015-01-19 20:28 | Edward-san | Note Edited: 0011449 | View Revisions |
2015-01-19 20:34 | Edward-san | Note Edited: 0011449 | View Revisions |
2015-01-21 00:42 | WaTaKiD | Note Added: 0011466 | |
2015-01-21 21:32 | Edward-san | Note Added: 0011492 | |
2015-01-22 17:33 | Edward-san | Status | needs testing => needs review |
2015-01-25 09:16 | Torr Samaho | Note Added: 0011523 | |
2015-01-25 09:16 | Torr Samaho | Status | needs review => needs testing |
2015-03-16 19:15 | StrikerMan780 | Note Added: 0011852 | |
2015-03-16 19:16 | StrikerMan780 | Note Edited: 0011852 | View Revisions |
2015-03-16 19:16 | StrikerMan780 | Note Edited: 0011852 | View Revisions |
2015-03-16 19:59 | Marcaek | Note Added: 0011854 | |
2015-03-17 00:29 | Dusk | Status | needs testing => resolved |
2015-03-17 00:29 | Dusk | Fixed in Version | => 2.0 |
2015-03-17 00:29 | Dusk | Resolution | open => fixed |
2018-09-30 23:03 | Blzut3 | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |