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

[L4D2] Script Command Swap - Mem Leak Fix (1.1) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6623
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1351 
    Plugin Description:
    Blocks the script command and replaces with a logic_script entity to execute the code instead.
    Old 06-28-2019 , 11:01   [L4D2] Script Command Swap - Mem Leak Fix (1.1) [10-May-2020]
    Reply With Quote #1

    About:
    • Blocks the script command and replaces with a logic_script entity to execute the code instead.
    • This goes toward preventing some memory leaks from the VScript system.



    Thanks:
    • Timocop - For the idea.



    Changes:
    Code:
    1.1 (10-May-2020)
        - Various changes to tidy up code.
    
    1.0 (28-Jun-2019)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_script_cmd_swap.sp - 2574 views - 2.0 KB)
    __________________

    Last edited by Silvers; 06-01-2020 at 13:09.
    Silvers is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 07-04-2019 , 01:31   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.0) [28-Jun-2019]
    Reply With Quote #2

    Reduce the crash?
    What is the use of this plugin?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 07-05-2019 , 01:47   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.0) [28-Jun-2019]
    Reply With Quote #3

    Quote:
    Originally Posted by phoenix0001 View Post
    Reduce the crash?
    What is the use of this plugin?
    The plugin intercepts the script command so that other plugins don't cause memory leaks when they execute VScripts. Think of it as a safeguard for L4D2 servers.
    __________________
    Psyk0tik is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 07-05-2019 , 12:19   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.0) [28-Jun-2019]
    Reply With Quote #4

    You and Timocop both never cease to amaze...thank u for this. This is a good fail safe for script cmds.

    Last edited by MasterMind420; 07-05-2019 at 12:20.
    MasterMind420 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-05-2019 , 12:48   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.0) [28-Jun-2019]
    Reply With Quote #5

    Thank you all for the messages.

    All credits should go to Timocop it's his stock and idea, I just wrote and released.
    __________________
    Silvers is offline
    tRololo312312
    Senior Member
    Join Date: Apr 2015
    Old 05-13-2020 , 06:23   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.1) [10-May-2020]
    Reply With Quote #6

    Plugin failed to compile.
    tRololo312312 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-13-2020 , 06:37   Re: [L4D2] Script Command Swap - Mem Leak Fix (1.1) [10-May-2020]
    Reply With Quote #7

    Thanks, compiler version defaulted to 1.1. Fixed.
    __________________
    Silvers 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 03:48.


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