Skip to content

[BUG] Witch/Tank Damage Announce - No Report and Wrong Percentage #821

Description

@deprid

##Describe the bug
When 5 or more survivors do some damage to a Witch/Tank, no damage report gets produced or the percentage does not add up to 100% in the damage report. Both l4d_witch_damage_announce as well as l4d_tank_damage_announce have this bug.

Related SourceMod error log:

Witch:

L 09/19/2024 - 17:03:09: [SM] Exception reported: Invalid memory access
L 09/19/2024 - 17:03:09: [SM] Blaming: l4d_witch_damage_announce.smx
L 09/19/2024 - 17:03:09: [SM] Call stack trace:
L 09/19/2024 - 17:03:09: [SM]   [1] Line 250, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::PrintWitchDamage
L 09/19/2024 - 17:03:09: [SM]   [2] Line 214, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::CalculateWitch
L 09/19/2024 - 17:03:09: [SM]   [3] Line 186, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::WitchDeath_Event
L 09/19/2024 - 17:03:09: [SM] Exception reported: Invalid memory access
L 09/19/2024 - 17:03:09: [SM] Blaming: l4d_witch_damage_announce.smx
L 09/19/2024 - 17:03:09: [SM] Call stack trace:
L 09/19/2024 - 17:03:09: [SM]   [1] Line 250, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::PrintWitchDamage
L 09/19/2024 - 17:03:09: [SM]   [2] Line 214, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::CalculateWitch
L 09/19/2024 - 17:03:09: [SM]   [3] Line 203, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::PrintAnyway
L 09/19/2024 - 17:13:32: Error log file session closed.

L 09/17/2024 - 22:57:16: [SM] Exception reported: Invalid memory access
L 09/17/2024 - 22:57:16: [SM] Blaming: l4d_witch_damage_announce.smx
L 09/17/2024 - 22:57:16: [SM] Call stack trace:
L 09/17/2024 - 22:57:16: [SM]   [1] Line 250, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::PrintWitchDamage
L 09/17/2024 - 22:57:16: [SM]   [2] Line 219, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::CalculateWitch
L 09/17/2024 - 22:57:16: [SM]   [3] Line 203, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_witch_damage_announce.sp::PrintAnyway
L 09/17/2024 - 22:58:06: Error log file session closed.

Tank:

L 08/09/2024 - 20:46:48: [SM] Exception reported: Invalid memory access
L 08/09/2024 - 20:46:48: [SM] Blaming: l4d_tank_damage_announce.smx
L 08/09/2024 - 20:46:48: [SM] Call stack trace:
L 08/09/2024 - 20:46:48: [SM]   [1] Line 285, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_tank_damage_announce.sp::PrintTankDamage
L 08/09/2024 - 20:46:48: [SM]   [2] Line 209, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_tank_damage_announce.sp::Event_RoundEnd

L 08/09/2024 - 20:51:18: [SM] Exception reported: Invalid memory access
L 08/09/2024 - 20:51:18: [SM] Blaming: l4d_tank_damage_announce.smx
L 08/09/2024 - 20:51:18: [SM] Call stack trace:
L 08/09/2024 - 20:51:18: [SM]   [1] Line 285, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_tank_damage_announce.sp::PrintTankDamage
L 08/09/2024 - 20:51:18: [SM]   [2] Line 226, D:\steamcmd\l4d2\left4dead2\addons\sourcemod\scripting\l4d_tank_damage_announce.sp::Timer_CheckTank

To Reproduce
Steps to reproduce the behavior:

  1. Play in a server with more than 5 or more survivors (coop)
  2. Make sure 5 or more survivors do some damage to a Witch
  3. Bug happens, no damage report get produced or the percentage does not add up to 100%

Screenshots/Video

No Tank damage report:

20240806222022_1
20240807000900_1
20240807223704_1

The percentage does not add up to 100% in the damage report:

20240807223854_1

No Witch damage report:

20240807224820_1
20240814001205_1

Server Operating System (if applicable):

  • Windows

Additional context

// Set minimum # of survivors in game.(Override official cvar 'survivor_limit')
// Kick AI survivor bots if numbers of survivors has exceeded the certain value. (does not kick real player, minimum is 1)
// -
// Default: "4"
// Minimum: "1.000000"
// Maximum: "32.000000"
l4d_multislots_min_survivors "4"
  • An option of displaying the report as:
    • [%] xx [%] xx [%] xx [%] xx
      instead of
      [%] xx
      [%] xx
      would be great especially on my 12 slots server :)
  • Witch Damage Announce 1.3, Tank Damage Announce 1.4 (both are latest as of now)
  • SM v1.11.0.6964
  • Related issue: [BUG] l4d_witch_damage_announce.smx don't work #698

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions