Incorrect kill counts in cooperative mode

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Incorrect kill counts in cooperative mode

Post by Risen »

Launch E1M1 as a one-player cooperative session.
Type "Kill monsters" at console. Output says "6 monsters killed."

"am_cheat 2" now shows the monsters are dead.
Walking into the first room shows the monsters are indeed dead.
"Monster" console command returns nothing.

However...
The automap still shows the monster count as "0/6".
GetLevelInfo returns 0 as number of monsters killed.

I think there is a way to trigger this without cheating, as we've run into this problem before without using "kill monsters". Hopefully this will be enough for you to locate the bug though, as it's the only way I can reliably reproduce it right now.

When launched in single-player mode, everything works as expected.
This may or may not be an issue in Deathmatch mode also: I didn't test that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Apparently Coop doesn't properly count monsters that are not being killed by any player.
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I think the count is pointless anyway. Especially with monsters that create more monsters.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Not if you want to display a custom level end status screen.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Seems my guess was correct. A kill was only counted in multiplayer when done by a player. Kills by infighting or non-player activated scripts (and of course cheats) were not counted at all.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Excellent. Glad my simple test case was enough to find the issue.
Cutmanmike wrote:I think the count is pointless anyway. Especially with monsters that create more monsters.
That's irrelevant. If it exists at all, it should at least work properly!
Post Reply

Return to “Closed Bugs [GZDoom]”