[DEV] Autoreload plugins
1 Attachment(s)
Description:
By default, SourceMod reloads plugin on map change only (in case its file modification time is changed).*New features: - Notify in chat about reloading, loading, unloading.Commands: Settings (ConVars): Located at: cfg/sourcemod/sm_autoreload.cfgForwards:
Spoiler
Using: Place smx in "plugins" folder.Credits: - Timiditas - author of idea and original plugin
Full changelog:
// TODO: - Integrity check. - Adding dynamically loaded/unloaded plugins to tracking list. Also, need help in issue #1482. Donate Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often: |
Re: [DEV] Plugin reload
good, that will save me one or two seconds on each reaload when I testing my plugins... I gess it will add up to a few minutes =P
|
Re: [DEV] Plugin reload
At last can add new plugins without having to refresh the plugins list (albeit I use sm_refresh but still typing in console when Im not in-game using the keybind I set).
Thanks! |
Re: [DEV] Plugin reload
Thanks!
|
Re: [DEV] Plugin reload
Updated.
Quote:
|
Re: [DEV] Plugin reload
I don't know if it will be a good addition, but I'm used to run the "sm_reload_translations" together with the "sm plugins refresh", to reload the translations file (because some times I have to update both .smx and .phrases file),
So maybe you can include that in the plugin and make a cvar (maybe not necessary) allowing it to reload the translations file (at the end) if some plugin is updated. IMO is just a suggestion to improve it. Thanks for you effort. Nice plugin as always. |
Re: [DEV] Plugin reload
Thanks for suggestion, Marttt! Very useful.
Updated. Quote:
|
Re: [DEV] Plugin reload
You have a mistake. Instead of reloading the updated plugin, the "Loading" of the plugin occurs.
|
Re: [DEV] Plugin reload
Can you show server logs?
|
Re: [DEV] Plugin reload
I replace the file speclist.smx
[AutoReload] test/speclist.smx has changed timestamp. Reloading... [SM] Plugin test\speclist.smx is already loaded. sm plugins reload test/speclist [SM] Plugin Spectator List reloaded successfully. sm_autoreload_delay = 2.0 sm_autoreload_track_new = 1 sm_autoreload_error_lines = 4 P.S. Another error with chat messages if you delete a file. And then add the file again test/speclist2.smx plugin is deleted. Unloading... test/speclist2.smx plugin reloaded. Status: NOT Loaded But in the server console it writes like this: [AutoReload] test/speclist2.smx plugin is deleted. Unloading... [SM] Plugin Spectator List unloaded successfully. [AutoReload] test/speclist2.smx has changed timestamp. Reloading... [SM] Loaded plugin test\speclist2.smx successfully. |
All times are GMT -4. The time now is 00:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.