Anonymous | Login | Signup for a new account | 2024-04-19 11:37 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 | ||||
0003723 | Zandronum | [All Projects] Bug | public | 2019-10-14 21:35 | 2024-02-29 21:15 | ||||
Reporter | StrikerMan780 | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||
Product Version | 3.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003723: DISCONNECT scripts don't execute for last player to leave server. | ||||||||
Description | If there's only one player in a server, and they leave, the server will not execute any DISCONNECT scripts for them. This is quite an issue, especially for mods that use DISCONNECT to do cleanup for clients leaving the game (such as the arcade machines in SMMP, which uses the DISCONNECT scripts to prevent them from being stuck in a bad state when someone leaves), or for things such as saving Database stats for players that leave the game (XP, Money, etc). | ||||||||
Steps To Reproduce | Make a script called DCDEBUG.ACS, with these contents, and use LOADACS to load it. Start a server with it, and make one client join it. Enter the game and disconnect that client. You will find in the server's log, the print doesn't even execute. Next, connect two clients, and have one of them leave. You'll find that the print will execute when there's at least one other player. #library "DCDEBUG" #include "zcommon.acs" script "LOGOFF" (int pnum) DISCONNECT { printbold(s:"[DEBUG] Disconnected (Player #", d:pnum, s:")"); } | ||||||||
Attached Files | |||||||||
Notes | |
(0021072) DrinkyBird (developer) 2019-10-14 22:08 edited on: 2019-10-14 22:09 |
This is intended behaviour, the gamesim stops when there are no clients connected in the server. Connect another client, and the DISCONNECT script will immediately run. |
(0021073) StrikerMan780 (reporter) 2019-10-15 02:02 |
Shit, how did I not notice that before? Oh well, alright. Thanks. |
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 |
2019-10-14 21:35 | StrikerMan780 | New Issue | |
2019-10-14 22:08 | DrinkyBird | Note Added: 0021072 | |
2019-10-14 22:09 | DrinkyBird | Note Edited: 0021072 | View Revisions |
2019-10-15 02:02 | StrikerMan780 | Note Added: 0021073 | |
2024-02-29 21:15 | Ru5tK1ng | Status | new => closed |
2024-02-29 21:15 | Ru5tK1ng | Resolution | open => no change required |
Copyright © 2000 - 2024 MantisBT Team |