MantisBT - Zandronum | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0003901 | Zandronum | [All Projects] Bug | public | 2021-08-16 22:23 | 2021-09-08 02:17 |
Reporter | Visual Vincent | ||||
Assigned To | Kaminsky | ||||
Priority | low | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 |
Product Version | 3.0 | ||||
Target Version | Fixed in Version | 3.1-beta | |||
Summary | 0003901: PlayerNumber() returns inconsistent values when puked by the server console | ||||
Description | When puking an ACS script from the server console (or RCON), the PlayerNumber() function returns an inconsistent value depending on whether a player with number 0 is online: - If player 0 is online, PlayerNumber() returns 0 - If player 0 is not online, PlayerNumber() returns -1 When executed by a non-player actor (e.g. a monster), PlayerNumber() returns -1 as it should. | ||||
Steps To Reproduce | 1) Download the example WAD 2) Host a server with the WAD and connect at least two clients 3) Type "puke 200" in the server console to execute the script. This gives you the following output: Expected player number: -1 Actual player number: 0 Console player number: -1 4) Disconnect the first player (with player number 0) 5) Puke the script from the server console again. You should now get the following output: Expected player number: -1 Actual player number: -1 Console player number: -1 6) Have the same or another player join again. They should automatically be assigned to the empty slot 0 7) Puke the script from the console yet another time. You should now see the same output as in step 3 again -- Additional test -- To see what happens when a non-player actor executes the script, press the button in MAP01 to start the moving floor. Once the Zombie Man crosses the red bars he will trigger script 200. This should log the following output to the console: Expected player number: -1 Actual player number: -1 Console player number: -1 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://zandronum.com/tracker/file_download.php?file_id=2659&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-08-16 22:23 | Visual Vincent | New Issue | |||
2021-08-16 22:23 | Visual Vincent | File Added: PlayerNumberTest.wad | |||
2021-08-16 22:30 | Visual Vincent | Note Added: 0021739 | |||
2021-08-17 14:28 | Visual Vincent | Note Added: 0021745 | |||
2021-08-17 14:32 | Visual Vincent | Note Edited: 0021745 | bug_revision_view_page.php?bugnote_id=21745#r13342 | ||
2021-08-17 14:37 | Visual Vincent | Note Edited: 0021745 | bug_revision_view_page.php?bugnote_id=21745#r13343 | ||
2021-08-17 19:13 | Visual Vincent | Note Edited: 0021745 | bug_revision_view_page.php?bugnote_id=21745#r13344 | ||
2021-08-17 19:13 | Visual Vincent | Note Edited: 0021745 | bug_revision_view_page.php?bugnote_id=21745#r13345 | ||
2021-08-17 19:32 | Visual Vincent | Note Edited: 0021745 | bug_revision_view_page.php?bugnote_id=21745#r13346 | ||
2021-08-17 23:45 | Kaminsky | Note Added: 0021748 | |||
2021-08-17 23:45 | Kaminsky | Assigned To | => Kaminsky | ||
2021-08-17 23:45 | Kaminsky | Status | new => acknowledged | ||
2021-08-18 09:10 | Visual Vincent | Note Added: 0021749 | |||
2021-08-21 11:10 | Kaminsky | Status | acknowledged => assigned | ||
2021-09-07 09:41 | Visual Vincent | Note Added: 0021752 | |||
2021-09-08 02:17 | Kaminsky | Note Added: 0021753 | |||
2021-09-08 02:17 | Kaminsky | Status | assigned => resolved | ||
2021-09-08 02:17 | Kaminsky | Fixed in Version | => 3.1-beta | ||
2021-09-08 02:17 | Kaminsky | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|