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

[ANY] Plugin reloader [1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
jakesmokie
Member
Join Date: Aug 2016
Plugin ID:
5325
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reloads chosen plugins every map change
    Old 08-23-2016 , 11:13   [ANY] Plugin reloader [1.0]
    Reply With Quote #1

    Hello! I want to release my really simple and useable plugin.
    This one reloads plugins in config every map change.
    How to use?
    Put .smx file in plugins/ folder, put plugins_reload.txt in configs/ folder.
    Write plugin names in plugins_reload.txt file. For Example:
    PHP Code:
    basebans
    store
    -core
    admin
    -flatfile 
    That can be really useful when you server possibly crashes cause of Memory Leak.
    In next version I will add cvars (like when plugins will restart? Map end or Map start?)

    Hope you enjoy.
    Attached Files
    File Type: txt plugins_reload.txt (39 Bytes, 253 views)
    File Type: sp Get Plugin or Get Source (plugin_reloader.sp - 867 views - 792 Bytes)

    Last edited by jakesmokie; 08-23-2016 at 11:14.
    jakesmokie is offline
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 08-23-2016 , 22:45   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #2

    umm i think its better to fix the plugin that have memory leaks instead of reloading them to prevent it XD
    __________________
    8guawong is offline
    jakesmokie
    Member
    Join Date: Aug 2016
    Old 08-24-2016 , 01:13   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #3

    That's another way out
    jakesmokie is offline
    Archange
    Member
    Join Date: Jul 2016
    Old 08-24-2016 , 01:27   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #4

    Thx!
    Archange is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 08-24-2016 , 01:42   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #5

    Forgive my ignorance, I'm always a fan of having as few plugins as possible...

    What's the advantage of running this plugin versus adding lines to server.cfg or a map-specific config?

    ex. add to server.cfg:

    sm plugins reload memoryleaker.smx

    That way at the start of every map the plugin is reloaded. Obviously as 8guawong said, it's much, MUCH better to fix the plugin that is causing an issue.
    sneaK is offline
    jakesmokie
    Member
    Join Date: Aug 2016
    Old 08-24-2016 , 14:18   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #6

    This stuff reloads plugins on map end, not map start. If you use cfg file, it will loose OnMapStart() hook, so it makes some sense for me..
    jakesmokie is offline
    Nanochip
    Senior Member
    Join Date: Jan 2014
    Old 08-24-2016 , 21:34   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #7

    And doesn't the server.cfg get loaded before sourcemod?
    __________________
    Nanochip is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 08-24-2016 , 21:52   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #8

    Quote:
    Originally Posted by Nanochip View Post
    And doesn't the server.cfg get loaded before sourcemod?
    No sir, autoexec.cfg does I believe.

    Last edited by sneaK; 08-24-2016 at 21:52.
    sneaK is offline
    jakesmokie
    Member
    Join Date: Aug 2016
    Old 08-24-2016 , 23:48   Re: [ANY] Plugin reloader [1.0]
    Reply With Quote #9

    And one more reason to don't use server.cfg as reloader. Someone can exec it through sm_execcfg
    jakesmokie 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 16:50.


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