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

auto update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AGONN
Member
Join Date: Jan 2018
Old 01-20-2018 , 17:27   auto update
Reply With Quote #1

hi , i need to know if i can make a plugin auto request from they owner to upload the new version when the time come .

Example : when 01/01/2019 comes the plugin auto Excute this command :

Code:
ColorPrint(Client,"!nNew version of Example.amxx is Available at https://forums.alliedmods.net");

Last edited by AGONN; 01-20-2018 at 17:28.
AGONN is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-20-2018 , 17:39   Re: auto update
Reply With Quote #2

Bump this thread after 344 days.
__________________
Relaxing is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-22-2018 , 09:56   Re: auto update
Reply With Quote #3

Of course you can. You just need a webhost to keep the latest version of the plugin and sockets module.
__________________
HamletEagle is offline
AGONN
Member
Join Date: Jan 2018
Old 01-25-2018 , 06:13   Re: auto update
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
Of course you can. You just need a webhost to keep the latest version of the plugin and sockets module.
tell me how HamletEagle , give me a code or something .
AGONN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-25-2018 , 07:04   Re: auto update
Reply With Quote #5

Quote:
Originally Posted by AGONN View Post
tell me how HamletEagle , give me a code or something .
Why? You are unable to search? You need to create a code that fits your needs, there's no "universal" code.
__________________

Last edited by HamletEagle; 01-25-2018 at 07:04.
HamletEagle is offline
AGONN
Member
Join Date: Jan 2018
Old 01-25-2018 , 08:00   Re: auto update
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
Why? You are unable to search? You need to create a code that fits your needs, there's no "universal" code.
i have 0 experiens on amxx codes , i can not create any code , can you just tell me what shall i ask in google .
AGONN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-25-2018 , 09:39   Re: auto update
Reply With Quote #7

If you can't code then forget about this.
__________________
HamletEagle is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-25-2018 , 10:11   Re: auto update
Reply With Quote #8

I think easiest way would be through mysql. But it doesn't matter, because you`re not the one who should add this to the plugins you own. The guys who wrote them should.
__________________
retired chump
DjSoftero is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-26-2018 , 21:03   Re: auto update
Reply With Quote #9

Quote:
Originally Posted by DjSoftero View Post
I think easiest way would be through mysql. But it doesn't matter, because you`re not the one who should add this to the plugins you own. The guys who wrote them should.
Best way would be to get file attributes from an ftp/http and if a new file is discovered, automatically update it. I created a plugin which I never released that does this for plugins posted in an AMX-X thread. Only drawback is it only works on plugins that do not use any 3rd party include files since the web compiler cannot compile custom includes.

OP, if your plugin is published here with no 3rd party/custom includes I can give this to you.
__________________

Last edited by Bugsy; 01-26-2018 at 21:04.
Bugsy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-27-2018 , 05:33   Re: auto update
Reply With Quote #10

Quote:
Originally Posted by Bugsy View Post
Best way would be to get file attributes from an ftp/http and if a new file is discovered, automatically update it. I created a plugin which I never released that does this for plugins posted in an AMX-X thread. Only drawback is it only works on plugins that do not use any 3rd party include files since the web compiler cannot compile custom includes.

OP, if your plugin is published here with no 3rd party/custom includes I can give this to you.
I did something like this before(working with any plugin from alliedmodders), but it is not reliable, there are too many variables. For example plugins with custom includes, plugin with custom resources, plugin requiring 3rd party modules etc.
Or even worse, the new version has additional requirements than the previous one and if the plugin does not take that into account the server is most likely to crash.

Just imagine if we could write an auto updater that does everything by itself and works in every case.
__________________

Last edited by HamletEagle; 01-27-2018 at 05:34.
HamletEagle 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 00:50.


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