Anonymous | Login | Signup for a new account | 2025-06-28 20:42 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 | ||||
0003153 | Zandronum | [All Projects] Bug | public | 2017-06-10 19:30 | 2017-06-12 21:39 | ||||
Reporter | Ivan | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | out of scope | ||||||
Platform | OS | OS Version | |||||||
Product Version | 3.0-beta | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003153: Clientside Enter script gives different value for ConsolePlayerNumber in Named and ordinary scripts | ||||||||
Description | The example wad demonstrates the problem in greater detail. Just create a server locally and join, you'll observe the problem. | ||||||||
Attached Files | ![]() ![]() ![]() ![]() ![]() | ||||||||
![]() |
|
Ru5tK1ng (updater) 2017-06-10 19:51 |
I think it is your compiler. I took your code and compiled it in namedtest2.pk3 and both numbers were 0 on the server. |
Korshun (reporter) 2017-06-11 14:19 edited on: 2017-06-11 14:38 |
Disassembling the objects using bccobjdump shows that both the incorrect scripts and all correct scripts use the same correct instructions (Full disassemblies attached). The only notable difference is that the incorrect object uses: -- SFLG (8) script=800 flags=clientside script=1 flags=clientside While the correct one has: -- SFLG (8) script=800 flags=clientside script=-1 flags=clientside Which means named script -1 doesn't get marked as clientside. It runs serverside, where ConsolePlayerNumber() returns -1. Instead, nonexistent script 1 is marked clientside. This is a compiler bug. |
Edward-san (developer) 2017-06-12 21:39 |
I guess it's [Not a bug], then. |
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: | Korshun |
![]() |
|||
Date Modified | Username | Field | Change |
2017-06-10 19:30 | Ivan | New Issue | |
2017-06-10 19:30 | Ivan | File Added: namedtest.pk3 | |
2017-06-10 19:33 | Ivan | File Added: namedtest.c | |
2017-06-10 19:51 | Ru5tK1ng | File Added: namedtest2.pk3 | |
2017-06-10 19:51 | Ru5tK1ng | Note Added: 0017815 | |
2017-06-11 14:19 | Korshun | Note Added: 0017817 | |
2017-06-11 14:26 | Korshun | Note Edited: 0017817 | View Revisions |
2017-06-11 14:27 | Korshun | File Added: disassembly-incorrect.txt | |
2017-06-11 14:28 | Korshun | File Added: disassembly-correct.txt | |
2017-06-11 14:35 | Korshun | Note Added: 0017818 | |
2017-06-11 14:36 | Korshun | Note Deleted: 0017818 | |
2017-06-11 14:36 | Korshun | Note Edited: 0017817 | View Revisions |
2017-06-11 14:36 | Korshun | Note Edited: 0017817 | View Revisions |
2017-06-11 14:38 | Korshun | Note Edited: 0017817 | View Revisions |
2017-06-12 21:39 | Edward-san | Note Added: 0017821 | |
2017-06-12 21:39 | Edward-san | Status | new => closed |
2017-06-12 21:39 | Edward-san | Resolution | open => out of scope |
Copyright © 2000 - 2025 MantisBT Team |