False Death Messages in gen chat #1015

Closed
opened 2021-11-06 20:33:18 +01:00 by Styxcolor · 3 comments
Owner

related issue to #998 I haven't seen reported yet. Sometimes we get a death message displayed in gen chat, only to have the person in question disagree a moment later, usually they're in a fight and have just taken damage, but aren't dead.
Maybe Minetest registers the incoming lethal damage and displays the death message without considering damage that didn't come through due to the armor...and MT doesn't consider whether the player is actually dead.

Currently I cannot tell on which level or at what depth of Minetest I should look for the cause of this.

related issue to #998 I haven't seen reported yet. Sometimes we get a death message displayed in gen chat, only to have the person in question disagree a moment later, usually they're in a fight and have just taken damage, but aren't dead. Maybe Minetest registers the incoming lethal damage and displays the death message without considering damage that didn't come through due to the armor...and MT doesn't consider whether the player is actually dead. Currently I cannot tell on which level or at what depth of Minetest I should look for the cause of this.
Styxcolor added the
1. kind/bug
label 2021-11-06 20:33:18 +01:00
AliasAlreadyTaken was assigned by Styxcolor 2021-11-06 20:33:24 +01:00
Styxcolor changed title from False Death Messages to False Death Messages in gen chat 2021-11-06 20:38:47 +01:00
Member

There's two parts to this. The death message comes from mt-respawn. The lack of death comes from the heal factor from 3d_armor. The solution, as far as I understand it, is that mt-respawn should be using minetest.register_on_player_hpchange or even better, minetest.register_on_dieplayer, instead of minetest.register_on_punchplayer. I think it uses the latter because it allows you to more easily get the name of the weapon that was used to kill a player during PvP.

There's two parts to this. The death message comes from `mt-respawn`. The lack of death comes from the heal factor from `3d_armor`. The solution, as far as I understand it, is that `mt-respawn` should be using `minetest.register_on_player_hpchange` or even better, `minetest.register_on_dieplayer`, instead of `minetest.register_on_punchplayer`. I think it uses the latter because it allows you to more easily get the name of the weapon that was used to kill a player during PvP.

Simple solution: I gather what MT believes to be the cause of death in a table, but only send once at register_on_dieplayer

Simple solution: I gather what MT believes to be the cause of death in a table, but only send once at register_on_dieplayer

Fixed in mt-respawn 325939d3cb4a30865dc2f345ac711270eb2dd2d9

Fixed in mt-respawn 325939d3cb4a30865dc2f345ac711270eb2dd2d9
AliasAlreadyTaken added this to the 1.1.105 milestone 2022-01-06 01:33:39 +01:00
AliasAlreadyTaken added the
5. result/fixed
label 2022-01-06 01:33:45 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#1015
No description provided.