AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Plugin AutoReloader (https://forums.alliedmods.net/showthread.php?t=308460)

ddhoward 06-21-2018 04:28

[Any] Plugin AutoReloader
 
[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~
http://www.paypalobjects.com/en_US/i..._donate_SM.gif

ddhoward 06-21-2018 04:41

Re: [Any] Plugin AutoReloader
 
also, this made me giggle

https://i.imgur.com/8iBIEUs.png

T1MOXA 07-04-2018 09:11

Re: [Any] Plugin AutoReloader
 
Very cool plugin, thanks for the release.

shanapu 07-04-2018 11:01

Re: [Any] Plugin AutoReloader
 
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! :bacon!::bacon!:

Arkarr 07-06-2018 05:54

Re: [Any] Plugin AutoReloader
 
This is exactly what I needed, thanks!

Silvers 07-06-2018 06:09

Re: [Any] Plugin AutoReloader
 
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.

ddhoward 07-10-2018 05:33

Re: [Any] Plugin AutoReloader
 
Quote:

Originally Posted by shanapu (Post 2600978)
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! :bacon!::bacon!:

thanks for the report, i'll look into this

EDIT: lol, fixed. dumb mistake on my part


All times are GMT -4. The time now is 18:12.

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