View Issue Details

IDProjectCategoryView StatusLast Update
0000231Gameplay + OpenGL[All Projects] Bugpublic2017-02-11 05:03
ReporterMajor Cooke 
Assigned To_mental_ 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Summary0000231: Trying to use null in Class<Actor> property causes crash
Description
Class<Actor> OldMonster;
    Class<Actor> NewMonster;
    property OldMonster: OldMonster;
    property NewMonster: NewMonster;
    Default 
    {
        D4DMonsterSpawner.OldMonster null;
        D4DMonsterSpawner.NewMonster null;


This will cause a crash at start-up, though it shouldnt. While I can simply just not use what's in the Default block, if we want to have another inheriting actor wipe out the old/newmonster properties, using null will cause a crash.

The last thing it reads before the crash is "Cannot convert to string".
TagsNo tags attached.

Relationships

Activities

_mental_

_mental_

2017-02-10 08:24

developer   ~0000489

Crash is fixed in d2affc7.
'Cannot convert to string' error is still here, I'm not sure how this should work to be honest.
_mental_

_mental_

2017-02-10 08:30

developer   ~0000490

Most likely there is no need to add anything to Default in this case. Those members will be initialized with null anyway.
Major Cooke

Major Cooke

2017-02-10 08:53

reporter   ~0000491

Last edited: 2017-02-10 08:54

View 2 revisions

The main problem is inheriting from an actor which it's defined in and I want to get rid of the definition. I.e. they have a Zombieman and I want it null in the child of the class that has said Zombieman defined.

_mental_

_mental_

2017-02-10 09:18

developer   ~0000493

I cannot say for sure why null doesn't work (i.e. is it intentional or not) but "None" does.
_mental_

_mental_

2017-02-10 09:49

developer   ~0000495

I believe the given assignment doesn't work because it's impossible to assign null to a string variable in general.
Graf Zahl

Graf Zahl

2017-02-11 05:03

administrator   ~0000506

All this stuff hasn't received any real testing yet, I was planning to do that after scriptifying the menu and export as many actor properties as possible to the custom system instead of hard coding them in the engine.

Issue History

Date Modified Username Field Change
2017-02-10 07:27 Major Cooke New Issue
2017-02-10 08:17 _mental_ Assigned To => _mental_
2017-02-10 08:17 _mental_ Status new => acknowledged
2017-02-10 08:24 _mental_ Note Added: 0000489
2017-02-10 08:30 _mental_ Note Added: 0000490
2017-02-10 08:30 _mental_ Status acknowledged => resolved
2017-02-10 08:30 _mental_ Resolution open => fixed
2017-02-10 08:53 Major Cooke Note Added: 0000491
2017-02-10 08:54 Major Cooke Note Edited: 0000491 View Revisions
2017-02-10 09:18 _mental_ Note Added: 0000493
2017-02-10 09:49 _mental_ Note Added: 0000495
2017-02-11 05:03 Graf Zahl Note Added: 0000506