Updater
2 Attachment(s)
Updater
Allows developers to automatically update their plugins and files. Updates will be checked on server startup and then once every 24 hours. All updates will be logged to Updater.log in your SourceMod log directory. Installation:
|
Re: Updater
Information for Developers
Code:
When testing an update with your plugin, I recommend that you test it against a debug version of Updater. It will log detailed download information to Updater_Debug.log in case you accidentally used malformed URLs or paths. Code:
Example Plugin Code:
Update File Format Simple Update - Majority of plugins will use this. Code:
"Updater" Code:
"Updater" Code:
UPDATE_URL = http://website.com/myplugin/updatefile.txt
|
Re: Updater
Holy smokes nice job!
|
Re: Updater
This is pretty awesome, have some bacon. :bacon!:
|
Re: Updater
Changelog
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: Updater
What's the advantage of using this over Plugin Autoupdater?
|
Re: Updater
Quote:
I incorporated this quick list of ideas to start: Quote:
|
Re: Updater
thank you GoD-Tony. I really appreciate it
|
Re: Updater
If I may request a feature: can we have an option that makes a backup of a certain file, rather than just replacing it?
|
Re: Updater
Quote:
How would you like the backups to work? Should all of the replaced files be grouped into the same folder, or should they keep their directory structure intact but move to /data/updater/backups? The main problem I see with backups is that they're rendered useless if a plugin is updated twice within a close time-frame. Basically your backups would only be as good as the second newest version. |
Re: Updater
Quote:
|
Re: Updater
Quote:
|
Re: Updater
Quote:
Quote:
Sockets is somehow loaded in the beginning (passing the first check) but unavailable at the time of the update (10 seconds in). |
Re: Updater
yes, now all extension load perfectly (Automatically), but without extension of raydan, (Only Socket 3.0.1). This launch a error, not is problem now, because i have the two sockets. and Thanks!
|
Re: Updater
Quote:
|
Re: Updater
Awesome job! Implementing that into all my plugins now:)
|
Re: Updater
Can I ask, is this how the cvar gets entered?
sm_updater "1|2|3" | < is valid? |
Re: Updater
| should be considered as an exclusive "or".
|
Re: Updater
Quote:
|
Re: Updater
thanks Tony.
I am getting this error yet I have socket installed, so I didnt think I needed curl also (as mentioned in first post) L 10/15/2011 - 18:26:08: [SM] Unable to load extension "curl.ext": The specified module could not be found. |
Re: Updater
Quote:
|
Re: Updater
Thanks tony, sorry to be such a pain today.
|
Re: Updater
A little note to devs, you can use pastebin (require user for this).
Set update_url "http://pastebin.com/raw.php?i=<paste id>" |
Re: Updater
Quote:
|
Re: Updater
Quote:
|
Re: Updater
thanks for this plugin - updated :)
so far, only SMAC will stay updated LoL so far, the updater.txt only shows the following: Code:
|
Re: Updater
Quote:
|
Re: Updater
Updater 1.0.2 released - Changelog
|
Re: Updater
Thanks heaps
|
Re: Updater
GoD-Tony i have a idea to a plugin, who use this plugin:
Idea: I will make a plugin, who add auto-update feature to plugin there not have it. So you will have a config file like: Code:
"Plugins" What do you think? (if you understand) |
Re: Updater
Quote:
|
Re: Updater
Quote:
The plan was to have a plugin that handles several repository-sources, much like /etc/apt/sources.list. It would contain a repo-name + url to an updater config. The config would contain several trees (or to be precise: their package-lists) that repository provides and update them using Updater --> Part 1 is done, you have self-updating packagelists. The same/Another plugin would then parse these package-lists, which basically contain all packages (as in plugins/extensions) in that tree and an URL to their updater config. It would hook itself into the admin menu and allow you to select packages you'd want to install by feeding the url from the package-info to Updater_AddPlugin(). -> Part 2 is done. Second thought: I'll start with a question: Is the same plugin allowed to call Updater_AddPlugin() several times? Then this might be a non-problem, as i only care about installing those packages in the first place and all "new" files could be considered as belonging to the Installer-Plugin. Or does it unload itself when downloading starts or sth? |
Re: Updater
Quote:
PHP Code:
PHP Code:
|
Re: Updater
Quote:
Quote:
Quote:
All of Updater's natives/fowards are only meant to interact with the single plugin that's being updated. The reason for it is to prevent plugins from conflicting with each others' updates. What would happen if you added an external plugin to Updater, and then that plugin itself included Updater support? It sounds like you're looking for natives like these: Code:
|
Re: Updater
Quote:
PHP Code:
|
Re: Updater
After taking a peek at the code, it would indeed be tedious to implement what i'm trying to achieve without changing the whole concept.
Basically i would like to use the downloading+parsing but without the forced plugin relation. I don't want to reinvent (the axis of) the wheel, any chance you could remove the plugin-specific stuff from your download-queue + parsing stuff and expose them as natives? I might have missed something here because i only skimmed through, sorry if thats the case ;) E.g.: Create a function that takes an updater-url and downloads it. Create another function to parse it for version information etc. Create another function to download all files it mentioned. Use these functions yourself, re-adding any plugin-relations you had before outside of their scope. Expose these functions. -> Both of our ideas should be doable then, using the same core. |
Re: Updater
|
Re: Updater
Quote:
|
Re: Updater
Maybe this?
|
Re: Updater
That explains a lot, thanks. lol
Figured it was your plugin since it started to happen right after your last update. lol |
All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.