View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000098 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-01-21 15:09 | 2017-01-21 16:27 |
Reporter | Player701 | ||||
Assigned To | |||||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | PC | OS | Windows | OS Version | 7 (64-bit) |
Summary | 0000098: [ZScript] Custom class properties referring to DECORATE actors cause a crash | ||||
Description | A custom property of type class<Actor> will cause a crash if the value of the property is set to a DECORATE-defined actor class. The crash happens as soon as an attempt is made to read the value of the property. I was converting a project of mine to ZScript and ran into this issue. Sometimes the value of the property was null when it was read, but in a test case I've made (and attached to this report) it doesn't happen. | ||||
Steps To Reproduce | Load the attached PK3, open any map and type "summon a" in the console. BOOM - crash. Tested on gzdoom-x64-g2.4pre-219-g4dc1d11. | ||||
Additional Information | If the property type itself refers to a class defined in DECORATE, the script will fail to compile. I have no idea whether it is a bug or a feature. | ||||
Tags | No tags attached. | ||||
proptest.pk3 (397 bytes) |
|
The class type must be known at compile time. You cannot reference DECORATE classes from ZScript by type because they get defined later in a separate pass. Crash will be investigated. |
|