View Issue Details

IDProjectCategoryView StatusLast Update
0000098Gameplay + OpenGL[All Projects] Bugpublic2017-01-21 16:27
Assigned To 
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version7 (64-bit)
Summary0000098: [ZScript] Custom class properties referring to DECORATE actors cause a crash
DescriptionA 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 ReproduceLoad the attached PK3, open any map and type "summon a" in the console. BOOM - crash. Tested on gzdoom-x64-g2.4pre-219-g4dc1d11.
Additional InformationIf 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.
TagsNo tags attached.





2017-01-21 15:09


proptest.pk3 (397 bytes)
Graf Zahl

Graf Zahl

2017-01-21 16:06

administrator   ~0000189

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.

Issue History

Date Modified Username Field Change
2017-01-21 15:09 Player701 New Issue
2017-01-21 15:09 Player701 File Added: proptest.pk3
2017-01-21 16:06 Graf Zahl Note Added: 0000189
2017-01-21 16:27 Graf Zahl Status new => resolved
2017-01-21 16:27 Graf Zahl Resolution open => fixed