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

[L4D2] Auto server/survivor slot (v1.0 2023-12-14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
faketuna
New Member
Join Date: Jun 2019
Location: Japan
Plugin ID:
8607
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automate the server slot and survivor spawn when player joined to the server.
    Old 12-14-2023 , 02:06   [L4D2] Auto server/survivor slot (v1.0 2023-12-14)
    Reply With Quote #1

    Note:

    This plugin is only automate the server slot adjustment and survivor spawn.
    There is no bot takeover feature. Please use another plugin like: [L4D(2)] AFK and Join Team Commands (1.1) or any plugin found from internet.

    Also this plugin conflicts with any similar plugins that automate the survivor spawn, like [L4D/L4D2] LEFT12DEAD

    This plugin intended to be used in coop mode. Versus mode or something similar is not supported.


    About:
    • Dynamically adjust the survivors count based on connected players.
    • Dynamically adjust the server slot based on connected players.
    • Add survivor bot if there is no bot to takeover when player joined to the server.
    • Kick survivor bot when player disconnected by self. (optional)
    • When Medkit density installed, it will adjust medkit count dynamically based on in-game survivor count.

    Dependency:

    Optional dependency:
    Cvar:
    Code:
    sm_aslot_version - Plugin version
    sm_aslot_debug - 0/1 - Toggles debug message
    sm_aslot_kick - 0/1 - Toggles auto kick. When set to 1 and player disconnected by self, survivor bot will be kicked if survivor counts higher than 5.
    sm_aslot_fixed_survivor_limit - -1~32 - Fix survivor_limit with this number. or if set to -1 (not recommended due to bug) it will adjust survivor_limit dynamically based on in-game player count.
    sm_aslot_fixed_server_slot - -1~32 - Fix sv_maxplayers with this number. If set to -1 It will adjust sv_maxplayers dynamically based on in-game player count + 1
    Installation:
    1. Download autoServerSlot.smx from here: https://github.com/faketuna/sm-l4d2-...ServerSlot.smx
    2. Put autoServerSlot.smx into sourcemod plugins folder
    3. Done

    Changelog:
    Code:
    - 1.0 Initial release on alliedmodders forum.
    You can download latest source file from GitHub.

    Last edited by faketuna; 12-14-2023 at 05:55.
    faketuna is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 12-14-2023 , 14:42   Re: [L4D2] Auto server/survivor slot (v1.0 2023-12-14)
    Reply With Quote #2

    I tested on my server got this error
    12/14/2023 - 09:42:19: SourceMod error session started
    L 12/14/2023 - 09:42:19: Info (map "mercy_xmas1") (file "C:\servers\kruffty2\left4dead2\addons\source mod\logs\errors_20231214.log")
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:22: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:22: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:22: [SM] Call stack trace:
    L 12/14/2023 - 09:42:22: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:22: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:421: Error log file session closed.
    Krufftys Killers is offline
    faketuna
    New Member
    Join Date: Jun 2019
    Location: Japan
    Old 12-14-2023 , 23:28   Re: [L4D2] Auto server/survivor slot (v1.0 2023-12-14)
    Reply With Quote #3

    Quote:
    Originally Posted by Krufftys Killers View Post
    I tested on my server got this error
    12/14/2023 - 09:42:19: SourceMod error session started
    L 12/14/2023 - 09:42:19: Info (map "mercy_xmas1") (file "C:\servers\kruffty2\left4dead2\addons\source mod\logs\errors_20231214.log")
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:19: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:19: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:19: [SM] Call stack trace:
    L 12/14/2023 - 09:42:19: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:19: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:42:22: [SM] Exception reported: Client index 0 is invalid
    L 12/14/2023 - 09:42:22: [SM] Blaming: autoServerSlot.smx
    L 12/14/2023 - 09:42:22: [SM] Call stack trace:
    L 12/14/2023 - 09:42:22: [SM] [0] IsFakeClient
    L 12/14/2023 - 09:42:22: [SM] [1] Line 209, autoServerSlot.sp::OnPlayerDisconnect
    L 12/14/2023 - 09:421: Error log file session closed.
    Should be fixed now. Please download again from https://github.com/faketuna/sm-l4d2-...ServerSlot.smx

    Also this problem cannot replicatable in my server.
    What SourceMod version are you using now?

    P.S.
    Also what plugins are you using?

    Last edited by faketuna; 12-15-2023 at 05:30.
    faketuna is offline
    kevinracer
    Member
    Join Date: Dec 2009
    Old 12-15-2023 , 03:22   Re: [L4D2] Auto server/survivor slot (v1.0 2023-12-14)
    Reply With Quote #4

    This is exactly what i needed, i only play Listen Server.
    kevinracer is offline
    Reply



    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 11:10.


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