Anonymous | Login | Signup for a new account | 2024-04-24 16:14 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 | ||||||||
0003473 | Zandronum | [All Projects] Bug | public | 2018-08-29 20:18 | 2024-03-01 05:37 | ||||||||
Reporter | Mr. Satan | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | confirmed | Resolution | backport later | ||||||||||
Platform | Microsoft | OS | Windows | OS Version | 7/8/10 | ||||||||
Product Version | 3.0 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0003473: CheckClass ACS function is broken | ||||||||||||
Description | Using the ACS function CheckClass in a script always return 0. | ||||||||||||
Steps To Reproduce | Download CheckClass test.pk3. Load it in Zandro. "Puke 999" in console window. | ||||||||||||
Additional Information | Still broken in Zandro 3.1 | ||||||||||||
Attached Files | CheckClass test.pk3 [^] (622 bytes) 2018-08-29 20:18 Screenshot_Doom_20180910_163853.png [^] (1,035,889 bytes) 2018-09-10 20:43 Screenshot_Doom_20180910_164550.png [^] (1,228,315 bytes) 2018-09-10 20:47 | ||||||||||||
Notes | |
(0019495) Korshun (reporter) 2018-09-07 20:50 edited on: 2018-09-07 20:51 |
You are trying to use CheckClass where you should have used CheckInventory |
(0019497) Mr. Satan (reporter) 2018-09-10 09:17 |
In Zdoom/GZDoom it returns 1. According to the wiki, this function should return 1 if the Class is valid/exists, 0 if it doesn't. It doesn't use a TID to check a specific player/thing. 'https://zdoom.org/wiki/CheckClass_(ACS) [^]' |
(0019498) Ivan (reporter) 2018-09-10 11:07 |
Uhh you realize that still isn't the intended use for the CheckClass function right? CheckClass compares the class of the activator vs. what is given as input... None of them can be the player as they are inventory items... Add "CheckClass("PlayerPawn")" in there and it should show you 1. |
(0019501) Mr. Satan (reporter) 2018-09-10 20:54 |
Check out the two screencaps one is from Zandro and the other one is from GZDoom. GZDoom returns 1 if the class exists. Zandro returns 0 for all even PlayerPawn. If CheckClass simply compared the activator's class to the the inputted class it would be the same as CheckActorClass using 0 as the TID. |
(0019503) Edward-san (developer) 2018-09-10 21:57 edited on: 2018-09-10 22:00 |
Of course it'll always print 0. CheckClass isn't implemented in Zandronum 3.0 at all, anyway. |
(0019504) Korshun (reporter) 2018-09-11 14:11 |
I am sorry for my misleading comments. ZDoom documentation is confusing. You are using CheckClass the right way, but it's not implemented in GZDoom 1.8.6, on which Zandronum 3.1 is based. Unimplemented ACS functions always return 0. |
Only registered users can voice their support. Click here to register, or here to log in. | |
Supporters: | Mr. Satan |
Opponents: | eagle Korshun |
Issue History | |||
Date Modified | Username | Field | Change |
2018-08-29 20:18 | Mr. Satan | New Issue | |
2018-08-29 20:18 | Mr. Satan | File Added: CheckClass test.pk3 | |
2018-09-07 20:50 | Korshun | Note Added: 0019495 | |
2018-09-07 20:51 | Korshun | Note Edited: 0019495 | View Revisions |
2018-09-10 09:17 | Mr. Satan | Note Added: 0019497 | |
2018-09-10 11:07 | Ivan | Note Added: 0019498 | |
2018-09-10 20:43 | Mr. Satan | File Added: Screenshot_Doom_20180910_163853.png | |
2018-09-10 20:47 | Mr. Satan | File Added: Screenshot_Doom_20180910_164550.png | |
2018-09-10 20:54 | Mr. Satan | Note Added: 0019501 | |
2018-09-10 21:57 | Edward-san | Note Added: 0019503 | |
2018-09-10 21:59 | Edward-san | Note Edited: 0019503 | View Revisions |
2018-09-10 22:00 | Edward-san | Note Edited: 0019503 | View Revisions |
2018-09-11 14:11 | Korshun | Note Added: 0019504 | |
2024-03-01 05:37 | Ru5tK1ng | Status | new => confirmed |
2024-03-01 05:37 | Ru5tK1ng | Resolution | open => backport later |
Copyright © 2000 - 2024 MantisBT Team |