MantisBT - Zandronum
View Issue Details
0002973Zandronum[All Projects] Bugpublic2017-01-04 22:112017-01-06 19:15
Filystea 
 
highmajoralways
closedno change required 
 
 
0002973: If i spawn monster with SpawnItemEx when monster is defined in same .dec file it won't be spawned
The monster is not spawned. Cloning actor fails.

Spawned actor never spawns IF it has monster flag and is in same file as the monster that spawns him.

BUT, if actor has flag THRUACTORS. The monster will be spawned.
IF actor is defined earlier IT WILL SPAWN.
actor x1 {

  monster
  (...)
  A_SpawnItemEx( "x2" )

}

actor x2 {...}


If it is not a monster it will spawn. I did not check all combinations tho. Strange bug.

    
3.0-alpha-r160519-2047

Linux zandronum 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux

Working example maybe tomorrow. Too much time lost on this already to figure out what happens.
No tags attached.
? testspawn.pk3 (657) 2017-01-06 15:10
https://zandronum.com/tracker/file_download.php?file_id=1999&type=bug
Issue History
2017-01-04 22:11FilysteaNew Issue
2017-01-04 22:31FilysteaNote Added: 0016601
2017-01-04 22:35FilysteaNote Deleted: 0016601
2017-01-06 15:10FilysteaFile Added: testspawn.pk3
2017-01-06 15:16FilysteaNote Added: 0016613
2017-01-06 15:16FilysteaNote Edited: 0016613bug_revision_view_page.php?bugnote_id=16613#r10029
2017-01-06 15:19FilysteaNote Edited: 0016613bug_revision_view_page.php?bugnote_id=16613#r10030
2017-01-06 15:19FilysteaNote Edited: 0016613bug_revision_view_page.php?bugnote_id=16613#r10031
2017-01-06 16:15Edward-sanNote Added: 0016614
2017-01-06 17:02FilysteaNote Added: 0016615
2017-01-06 18:10Graf ZahlNote Added: 0016616
2017-01-06 19:05FilysteaNote Added: 0016617
2017-01-06 19:06FilysteaNote Edited: 0016617bug_revision_view_page.php?bugnote_id=16617#r10033
2017-01-06 19:15DuskStatusnew => closed
2017-01-06 19:15DuskResolutionopen => no change required

Notes
(0016613)
Filystea   
2017-01-06 15:16   
(edited on: 2017-01-06 15:19)
After making test file. Few notes.

It does not matter where the monster actor is defined. It won't spawn.

summon zom1 or zom4 they can't summon it self or monster defined somewhere.

But if you define monster with monster spawner it will be spawned (example zom3),

And if you give flag to monster THRUACTORS and take it away at spawn. It will be spawned. (zom2)


This behavior was in singleplayer of zandronum version (see aditional info)
and it also was in gzdoom. (I did not check zandronum multiplayer )
GZDoom g2.3pre-1083-gc03cb2c97 - 2016-12-28 12:03:17 +0200 - SDL version
Compiled on Dec 28 2016

(0016614)
Edward-san   
2017-01-06 16:15   
Sounds like 'not a bug' but it's better to ask in gzdoom github.
(0016615)
Filystea   
2017-01-06 17:02   
It has been passed

'https://github.com/coelckers/gzdoom/issues/192 [^]'
(0016616)
Graf Zahl   
2017-01-06 18:10   
Not a bug. You are trying to spawn a solid monster into a solid monster and that doesn't work by default. You'll need the SXF_CheckPosition flag for that, although the presented use case doesn't look like it makes much sense.
(0016617)
Filystea   
2017-01-06 19:05   
(edited on: 2017-01-06 19:06)
" You are trying to spawn a solid monster into a solid monster and that doesn't work by default."

Yet dropitem spawns solid monster (As pointed out in zom3 ).

But ok. All clear now.