View Issue Details

IDProjectCategoryView StatusLast Update
0000080Gameplay + OpenGL[All Projects] Bugpublic2017-01-19 17:59
ReporterMajor Cooke 
Assigned ToRachael 
PriorityhighSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0000080: Remove broken + crash
DescriptionSee "Additional Information" for the code.

How remove command is BROKEN:
Summon twifly, close the console, reopen it and type "remove twifly".

0 actors removed but it's actually still there. (Change the sprite in Twifly to PLAY A 0 if you want proof)

How remove command CRASHES:
Summon twifly, close the console, reopen it and type "remove twiwing".
Instant crash points to the new code introduced in an effort to prevent inventory items from being removed.
Additional InformationClass Twifly : Actor
{
    const Xoff = 0.0;
    const Yoff = 2.0;
    const Zoff = 0.0;
    TwiWing left;
    TwiWing right;
    Default
    {
        Radius 1;
        Height 1;
        Scale 0.22;
        +NOINTERACTION
        +NOBLOCKMAP
        //+BRIGHT
    }
    
    override void PostBeginPlay()
    {
        double wingpos;
        right = TwiWing(Spawn("TwiWing",pos));
        if (right)
        {
            right.master = self;
            right.scale = scale;
            right.A_Warp(DefPtr,Xoff,Yoff,Zoff,0,WARPF_NOCHECKPOSITION);
        }
        left = TwiWing(Spawn("TwiWing",pos));
        if (left)
        {
            left.master = self;
            left.scale = scale;
            left.other = true;
            left.A_Warp(DefPtr,Xoff,-Yoff,Zoff,0,WARPF_NOCHECKPOSITION);
        }
        Super.PostBeginPlay();
    }
    
    override void OnDestroy()
    {
        if (left) left.Destroy();
        if (right) right.Destroy();
        return;
    }
    
    States
    {
    Spawn:
        N073 ABCD 4;
        Loop;
    }
}

Class TwiWing : Actor
{
    bool other;
    Default
    {
        +NOINTERACTION
        +NOBLOCKMAP
        //+BRIGHT
        Scale 0.22;
    }
    States
    {
    Spawn:
        N082 A 0 NoDelay
        {
            StateLabel next = "S1";
            if (other) { next = "S2"; }
            return ResolveState(next);
        }
    S1:
        N082 ABCDEFGH 2;
        Loop;
    S2:
        N082 IJKLMNOP 2;
        Loop;
    }
}
TagsNo tags attached.

Relationships

Activities

Rachael

Rachael

2017-01-19 17:59

administrator   ~0000140

Fixed

Issue History

Date Modified Username Field Change
2017-01-19 16:00 Major Cooke New Issue
2017-01-19 17:30 Rachael Assigned To => Rachael
2017-01-19 17:30 Rachael Status new => assigned
2017-01-19 17:59 Rachael Status assigned => resolved
2017-01-19 17:59 Rachael Resolution open => fixed
2017-01-19 17:59 Rachael Note Added: 0000140