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

[Any] Plugin AutoReloader


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Plugin ID:
6173
Plugin Version:
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reloads plugins if their SMX's timestamp has changed.
    Old 06-21-2018 , 04:28   [Any] Plugin AutoReloader
    Reply With Quote #1

    [Any] Plugin AutoReloader
    v. 18.0710.0

    This plugin has the simple function of monitoring all running plugins for changes in the SMX's timestamp. If a change is detected, this plugin reloads the changed plugin. This plugin should really only be used on development/testing servers being run by my fellow plugin authors. It was designed to facilitate and aid those of us who rapidly make changes to our plugins in development, and test them out as we go. Manually running sm plugins reload blahblahblah can get really annoying after a while.

    This plugin is a rewrite of the following plugin:
    https://forums.alliedmods.net/showthread.php?t=106320

    This plugin does NOTHING by default; you must enable its functionality via the first cvar listed below:



    CVARS, shown with default values:
    • sm_pluginAutoReload 0 - (0/1) Enables or disables the main function of this plugin. This is set to 0 by default; you must manually turn this on in order for this plugin to function.

    • sm_pluginAutoReload_duration 2.0 - (Any number greater or equal to 0.1) This cvar sets the amount of time, in seconds to wait between scans of running plugins to determine timestamp changes.

    • sm_pluginAutoReload_update 2 - Controls Updater compatibility
      • 0 : Completely disables Updater integration
      • 1 : Updater will notify you in Updater.log if an update becomes available.
      • 2 : Updater will automatically download any updates. They will be installed on the next server start or map change.
      • 3 : Updater will automatically download and immediately install any updates.

    Changelog:
    Spoiler



    DOWNLOADS:
    If you like what you see here, please consider donating~
    __________________

    Last edited by ddhoward; 07-10-2018 at 05:42.
    ddhoward is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 06-21-2018 , 04:41   Re: [Any] Plugin AutoReloader
    Reply With Quote #2

    also, this made me giggle

    __________________
    ddhoward is offline
    T1MOXA
    Member
    Join Date: Aug 2016
    Old 07-04-2018 , 09:11   Re: [Any] Plugin AutoReloader
    Reply With Quote #3

    Very cool plugin, thanks for the release.
    T1MOXA is offline
    shanapu
    Veteran Member
    Join Date: Apr 2015
    Location: .de
    Old 07-04-2018 , 11:01   Re: [Any] Plugin AutoReloader
    Reply With Quote #4

    This is a must-have plugin for all developers! Saved me much time and nerves.

    But, after some days without using the server, I get this error - only in servers console, nothing in logs.

    Code:
    L 07/04/2018 - 08:24:05: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "pluginautoreload.smx")
    L 07/04/2018 - 08:24:05: [SM] Unloading plugin to free 30370 handles.
    L 07/04/2018 - 08:24:05: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/04/2018 - 08:24:05: --------------------------------------------------------------------------
    L 07/04/2018 - 08:24:05: Type   PluginIterator      |   Count   30368
    L 07/04/2018 - 08:24:05: Type   Timer               |   Count   1
    L 07/04/2018 - 08:24:05: Type   Trie                |   Count   1
    L 07/04/2018 - 08:24:05: -- Approximately 2584 bytes of memory are in use by (30370) Handles.
    Thanks for your great work!
    __________________
    coding & free software

    Last edited by shanapu; 07-04-2018 at 11:02.
    shanapu is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 07-06-2018 , 05:54   Re: [Any] Plugin AutoReloader
    Reply With Quote #5

    This is exactly what I needed, thanks!
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-06-2018 , 06:09   Re: [Any] Plugin AutoReloader
    Reply With Quote #6

    Thanks for the plugin. I used the old one for years - it would say 'plugin reloaded' when I actually deleted the plugin lol.

    Could you add an option to detect and load newly installed plugins, so I don't have to enter "sm plugins refresh" (or sm_refresh from my dev cmds plugin)?

    Also developers: please add support for your plugins to late load and unload if required. Nearly all my plugins handle that even in mid use - to totally reset and delete created/active ents (and to avoid deleting weapons/items someone is carrying that was spawned by my plugins). I see very few plugins from the community able to support late load/unload.

    Then plugins like custom votes to turn on/off plugins can work without causing bugs during gameplay.
    __________________
    Silvers is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 07-10-2018 , 05:33   Re: [Any] Plugin AutoReloader
    Reply With Quote #7

    Quote:
    Originally Posted by shanapu View Post
    This is a must-have plugin for all developers! Saved me much time and nerves.

    But, after some days without using the server, I get this error - only in servers console, nothing in logs.

    Code:
    L 07/04/2018 - 08:24:05: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "pluginautoreload.smx")
    L 07/04/2018 - 08:24:05: [SM] Unloading plugin to free 30370 handles.
    L 07/04/2018 - 08:24:05: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/04/2018 - 08:24:05: --------------------------------------------------------------------------
    L 07/04/2018 - 08:24:05: Type   PluginIterator      |   Count   30368
    L 07/04/2018 - 08:24:05: Type   Timer               |   Count   1
    L 07/04/2018 - 08:24:05: Type   Trie                |   Count   1
    L 07/04/2018 - 08:24:05: -- Approximately 2584 bytes of memory are in use by (30370) Handles.
    Thanks for your great work!
    thanks for the report, i'll look into this

    EDIT: lol, fixed. dumb mistake on my part
    __________________

    Last edited by ddhoward; 07-10-2018 at 05:40.
    ddhoward 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 06:03.


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