Raised This Month: $12 Target: $400
 3% 

[L4D2] Finale Stage hanging fix (finale tank fix)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7825
Plugin Version:
1.5
Plugin Category:
Technical/Development
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
351 
Plugin Description:
Fixing the hanging of Finals
Old 10-17-2021 , 11:15   [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #1

Description:
This should be installed only when needed. Plugin written at pre-TLS time, and bug may be already patched / or not.

Sometimes tanks are not appearing on finale map, because "Panic" stage get stucked.
This plugin allows to set timeout (see ConVar) for Panic stage waiting the tank to appear. If that doesn't happen, plugin forcibly call the next stage and director automatically spawns the tank as it normally should.

Plugin code has heavily logging, which can be activated by changing this line to 1: #define DEBUG 1
Log location: addons/sourcemod/logs/stage.log
Commands:
They are only available by recompiling plugin with #define DEBUG 1

PHP Code:
// Prints current stage index and time passed.
"sm_stage"

// Forcibly call the next stage.
"sm_nextstage" 
Settings (ConVars):
PHP Code:
// Timeout (in sec.) for finale panic stage waiting for tank to appear, otherwise stage forcibly changed
l4d_finale_stage_fix_panicstage_timeout "60" 
Dependency:
- Left 4 DHooks Direct by SilverShot (ver. 1.64 or newer)
Compatibility
- L4D2 only (no stage change forwards for L4D1).
Thanks
- dr lex - for the request
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon
- BitCoin
- Ю.Money
Attached Files
File Type: sp Get Plugin or Get Source (l4d_finale_stage_fix.sp - 504 views - 7.3 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 06-30-2022 at 05:54.
Dragokas is offline
noto3
Member
Join Date: Jan 2021
Old 10-17-2021 , 21:12   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #2

Really well made, was looking for something like this
noto3 is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 10-18-2021 , 00:28   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #3

Compatibility with this plugin? I believe it was suffering from the same issue: https://forums.alliedmods.net/showthread.php?t=332272
__________________
Mr. Man is offline
azureblue
Member
Join Date: Oct 2021
Location: Two Steps from Hell
Old 10-18-2021 , 04:54   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #4

Quote:
Originally Posted by Mr. Man View Post
Compatibility with this plugin? I believe it was suffering from the same issue: https://forums.alliedmods.net/showthread.php?t=332272
already tested on few maps, and it's worked !
*i've been suffered on finale tank issue too.

thanks alot dragokas !!
azureblue is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 10-18-2021 , 19:59   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #5

I remember common infected spawning issue in final before last stand and this was causing the tank to not spawn because the horde count was not reached, but it was not directly related to tank. Normally fixed in last stand.

Last edited by JLmelenchon; 10-18-2021 at 20:00.
JLmelenchon is offline
svenpun
New Member
Join Date: Feb 2016
Old 11-08-2021 , 23:20   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #6

I need some help with this


//l4d_finale_stage_fix.sp(15) : error 050: constant 'FINALE_GAUNTLET_1' already defined
//
// 1 Error.
//
// Compilation Time: 0.16 sec
svenpun is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-08-2021 , 23:29   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #7

svenpun, fixed.

Updated.

Quote:
1.3 (09-Nov-2021)
- Added compilation compatibility with the latest Left 4 DHooks Direct (thanks to Silvers for help).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-19-2022 , 14:02   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #8

oh yes this save my night party
by the way cant compile on sm1.11
Quote:
//// l4d_finale_stage_fix.sp
//
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(16) : error 021: symbol already defined: "FINALE_GAUNTLET_1"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(17) : error 021: symbol already defined: "FINALE_HORDE_ATTACK_1"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(1 : error 021: symbol already defined: "FINALE_HALFTIME_BOSS"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(19) : error 021: symbol already defined: "FINALE_GAUNTLET_2"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(20) : error 021: symbol already defined: "FINALE_HORDE_ATTACK_2"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(21) : error 021: symbol already defined: "FINALE_FINAL_BOSS"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(22) : error 021: symbol already defined: "FINALE_HORDE_ESCAPE"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(23) : error 021: symbol already defined: "FINALE_CUSTOM_PANIC"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(24) : error 021: symbol already defined: "FINALE_CUSTOM_TANK"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(25) : error 021: symbol already defined: "FINALE_CUSTOM_SCRIPTED"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(26) : error 021: symbol already defined: "FINALE_CUSTOM_DELAY"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(27) : error 021: symbol already defined: "FINALE_CUSTOM_CLEAROUT"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(2 : error 021: symbol already defined: "FINALE_GAUNTLET_START"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(29) : error 021: symbol already defined: "FINALE_GAUNTLET_HORDE"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(30) : error 021: symbol already defined: "FINALE_GAUNTLET_HORDE_BONUSTIME"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(31) : error 021: symbol already defined: "FINALE_GAUNTLET_BOSS_INCOMING"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(32) : error 021: symbol already defined: "FINALE_GAUNTLET_BOSS"
// B:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_f inale_stage_fix.sp(33) : error 021: symbol already defined: "FINALE_GAUNTLET_ESCAPE"
//
// 18 Errors.
//
// Compilation Time: 0.16 sec
__________________
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2022 , 15:02   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #9

Download the latest version.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 01-20-2022 , 08:46   Re: [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #10

I thought the tanks weren't spawning due to interference with the director's spawn (spawning through third party plugins, spawning from the admin panel, modified spawning)
I haven’t seen such problems in myself for a long time (before the update I also rarely noticed), it’s just that in the finals I turn off spawn through plugins and let the director do this task himself
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");

Gold Fish is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode