Raised This Month: $202 Target: $400
 50% 

[L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][25/09/2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Lux
Veteran Member
Join Date: Jan 2015
Location: Brexit
Plugin ID:
7257
Plugin Version:
1.0.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    59 
    Plugin Description:
    Fixes survivor going AFK game function.
    Old 08-14-2020 , 17:03   [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][25/09/2020]
    Reply With Quote #1

    This is a replacement for [L4D(2)] 4+ Survivor AFK Fix (1.2) so remove it.
    This afk fix includes no commands since it fixes the game function.

    L4d1 is only a port and untested let me know.

    Thanks Leonardo for helping me with the vgui keyvalue layout.

    RepoLink

    Requirements:
    DHooks (Experimental Dynamic Detour support)
    Installation:
    1.Download the .zip file.
    2.Merge with \addons\ folder.
    3.Restart the server.
    Attached Files
    File Type: zip survivor_afk_fix.zip (9.0 KB, 434 views)
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 06-16-2021 at 05:10. Reason: Update 1.0.4
    Lux is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 08-17-2020 , 09:15   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #2

    Hi Lux,

    Some players stay in "spectator" mode and are unable to return.

    L 08/16/2020 - 19:53:12: [SM] Blaming: survivor_afk_fix.smx
    L 08/16/2020 - 19:53:12: [SM] Call stack trace:
    L 08/16/2020 - 19:53:12: [SM] [0] DHookSetParam
    L 08/16/2020 - 19:53:12: [SM] [1] Line 170, D:\Github\Left-4-fix\left 4 fix\survivors\survivor_afk_fix\scripting\surv ivor_afk_fix.sp::OnSetObserverTargetPre
    L 08/16/2020 - 19:53:12: [SM] Exception reported: Invalid entity index passed for param value

    SourceMod v1.10.0.6492 - ABM - dhooks-2.2.0-detours14a-sm110
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 08-17-2020 , 10:28   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #3

    Took a quick look at the source and found these:
    PHP Code:
    if(g_bShouldFixAFK && g_iSurvivorBot 1
    (From the source code at line 176) It should have been if(g_bShouldFixAFK && g_iSurvivorBot > 0) instead? And...
    PHP Code:
    type    "cbaseentity" 
    (From the gamedata at line 38) Missing quotes, I guess?

    Last edited by cravenge; 08-17-2020 at 10:29.
    cravenge is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-17-2020 , 13:05   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #4

    Quote:
    Originally Posted by Mi.Cura View Post
    ...
    Quote:
    Originally Posted by cravenge View Post
    Took a quick look at the source and found these:
    PHP Code:
    if(g_bShouldFixAFK && g_iSurvivorBot 1
    (From the source code at line 176) It should have been if(g_bShouldFixAFK && g_iSurvivorBot > 0) instead? And...
    PHP Code:
    type    "cbaseentity" 
    (From the gamedata at line 3 Missing quotes, I guess?
    Thanks ill have a look, see what I can change not sure how you caused error i tried :c
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-17-2020 , 21:56   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #5

    Quote:
    Originally Posted by Mi.Cura View Post
    Hi Lux,

    Some players stay in "spectator" mode and are unable to return.

    L 08/16/2020 - 19:53:12: [SM] Blaming: survivor_afk_fix.smx
    L 08/16/2020 - 19:53:12: [SM] Call stack trace:
    L 08/16/2020 - 19:53:12: [SM] [0] DHookSetParam
    L 08/16/2020 - 19:53:12: [SM] [1] Line 170, D:\Github\Left-4-fix\left 4 fix\survivors\survivor_afk_fix\scripting\surv ivor_afk_fix.sp::OnSetObserverTargetPre
    L 08/16/2020 - 19:53:12: [SM] Exception reported: Invalid entity index passed for param value

    SourceMod v1.10.0.6492 - ABM - dhooks-2.2.0-detours14a-sm110
    Try this build see if it solves the problem
    https://github.com/LuxLuma/Left-4-fi...vor_afk_fix.sp

    Edit:
    Use main post now can ignore that build.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 08-19-2020 at 18:55.
    Lux is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 08-18-2020 , 09:26   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #6

    Quote:
    Originally Posted by Lux View Post
    Try this build see if it solves the problem
    https://github.com/LuxLuma/Left-4-fi...vor_afk_fix.sp
    Thank you Lux..
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-19-2020 , 16:45   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #7

    Quote:
    Originally Posted by Mi.Cura View Post
    Thank you Lux..
    No problem, I don't understand you thanking me for test build or did it fix the problem?
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 08-19-2020 , 16:54   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
    Reply With Quote #8

    Quote:
    Originally Posted by Lux View Post
    No problem, I don't understand you thanking me for test build or did it fix the problem?

    Hi Lux, yes I thanked you for the repair. No more errors in the LOG.
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 08-19-2020 , 18:53   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][19/08/2020]
    Reply With Quote #9

    Thanks for testing Mi.Cura

    Update 1.0.4
    Thanks Leonardo for helping me with the vgui keyvalue layout.
    Fixed error somepeople maybe having players being stuck in spec.

    As a note this wont fix players being forced into spec if the server has no clientslots e.g. 32 survivors since no new clients can be created.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 08-19-2020 at 19:43.
    Lux is offline
    Alex101192
    Senior Member
    Join Date: Aug 2018
    Old 09-20-2020 , 18:45   Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][19/08/2020]
    Reply With Quote #10

    This plugin used on a 8 players coop server with superversus caused players to spawn with 100 hp even though there was free dead bots. At some point it even completely broke one of the bots which caused players to be on a tpose and not being able to move.

    I reverted back to the old afk fix and none of this problems happened again.

    Last edited by Alex101192; 09-20-2020 at 18:45.
    Alex101192 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 10:12.


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