ACS Spawn function issue

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

ACS Spawn function issue

Postby Major Cooke » Thu Apr 02, 2020 11:28 pm

Since the introduction of CheckReplacement, this is not counted for with ACS's Spawn(Spot) functions in particular, resulting in some rather humorous mass spawning of all one single type when it's not a RandomSpawner.

My mod in particular uses a complex advancement system where monsters of greater difficulty tiers spawn in based on item progression so CheckReplacement in an event handler is a must.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Re: ACS Spawn function issue

Postby Marisa Kirisame » Fri Apr 03, 2020 2:18 am

Oops?
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: ACS Spawn function issue

Postby _mental_ » Sun Jun 07, 2020 3:25 am

DLevelScript::DoSpawn() calls PClassActor::GetReplacement() function which in turn calls EventManager::CheckReplacement().
Do you have a sample to test this on?
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Bugs

Who is online

Users browsing this forum: openroadracer and 1 guest