Batfoxkid / Freak-Fortress-2-Rewrite

The gamemode that's now also a standalone boss maker.
https://forums.alliedmods.net/forumdisplay.php?f=154
GNU General Public License v3.0
17 stars 8 forks source link

ff2r_default_abilities handle errors #2

Closed tsuza closed 2 years ago

tsuza commented 2 years ago

The first error happens when you use rage_cloneattack and the second one when you die as a boss.

L 05/08/2022 - 02:24:54: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 05/08/2022 - 02:24:54: [SM] Blaming: freaks\ff2r_default_abilities.smx
L 05/08/2022 - 02:24:54: [SM] Call stack trace:
L 05/08/2022 - 02:24:54: [SM]   [0] ArrayList.FindValue
L 05/08/2022 - 02:24:54: [SM]   [1] Line 1324, C:\Users\Suza\Documents\GitHub\Freak-Fortress-2-Rewrite\addons\sourcemod\scripting\ff2r_default_abilities.sp::Timer_RageTradeSpam

L 05/08/2022 - 02:26:03: [SM] Exception reported: Invalid timer handle 2fa00287 (error 3)
L 05/08/2022 - 02:26:03: [SM] Blaming: freaks\ff2r_default_abilities.smx
L 05/08/2022 - 02:26:03: [SM] Call stack trace:
L 05/08/2022 - 02:26:03: [SM]   [0] KillTimer
L 05/08/2022 - 02:26:03: [SM]   [1] Line 654, C:\Users\Suza\Documents\GitHub\Freak-Fortress-2-Rewrite\addons\sourcemod\scripting\ff2r_default_abilities.sp::FF2R_OnBossRemoved
L 05/08/2022 - 02:26:03: [SM]   [3] Call_Finish
L 05/08/2022 - 02:26:03: [SM]   [4] Line 51, freak_fortress_2/forwards.sp::Forward_OnBossRemoved
L 05/08/2022 - 02:26:03: [SM]   [5] Line 2146, freak_fortress_2/bosses.sp::Bosses_Remove
L 05/08/2022 - 02:26:03: [SM]   [6] Line 59, freak_fortress_2/gamemode.sp::Gamemode_RoundSetup
L 05/08/2022 - 02:26:03: [SM]   [7] Line 333, freak_fortress_2/dhooks.sp::DHook_RoundRespawn
tsuza commented 2 years ago

3 The PR fixes it