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

Updater


Post New Thread Reply   
 
Thread Tools Display Modes
Steell
SourceMod Donor
Join Date: Mar 2009
Old 10-12-2011 , 15:16   Re: Updater
Reply With Quote #11

Quote:
Originally Posted by GoD-Tony View Post
I thought about this before but couldn't decide on a proper way to implement it.

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.
I was thinking just rename the file by appending -backupDDMMYYYY to the end of the filename (or something to that effect).
__________________
Steell is offline
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 10-12-2011 , 16:36   Re: Updater
Reply With Quote #12

Quote:
L 10/12/2011 - 17:28:01: [SM] Plugin encountered error 25: Call was aborted
L 10/12/2011 - 17:28:01: [SM] Native "SetFailState" reported: This plugin requires the cURL or Socket extension.
L 10/12/2011 - 17:28:01: [SM] Displaying call stack trace for plugin "updater.smx":
L 10/12/2011 - 17:28:01: [SM] [0] Line 76, updater/download.sp:rocessDownloadQueue()
L 10/12/2011 - 17:28:01: [SM] [1] Line 97, updater/download.sp::AddToDownloadQueue()
L 10/12/2011 - 17:28:01: [SM] [2] Line 196, D:\srcds\orangebox\cstrike\addons\sourcemod\s cripting\updater.sp::Updater_Check()
L 10/12/2011 - 17:28:01: [SM] [3] Line 140, D:\srcds\orangebox\cstrike\addons\sourcemod\s cripting\updater.sp::Timer_CheckUpdates()
L 10/12/2011 - 17:28:22: [umc-rockthevote.smx] RTV: RTV is now available.
with socket 3.0.1
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-12-2011 , 17:47   Re: Updater
Reply With Quote #13

Quote:
Originally Posted by Steell View Post
I was thinking just rename the file by appending -backupDDMMYYYY to the end of the filename (or something to that effect).
This could create a lot of "hidden spam" for plugins with many update files. If a file buried in the /translations/jp/ folder kept getting written to, a server op may not notice until it's flooded. Using the date is a good idea though.

Quote:
Originally Posted by Paparazziv2 View Post
with socket 3.0.1
Something odd is going on with your extension setup. Can you paste an "sm exts list" after the error occurs?

Sockets is somehow loaded in the beginning (passing the first check) but unavailable at the time of the update (10 seconds in).

Last edited by GoD-Tony; 10-12-2011 at 18:02.
GoD-Tony is offline
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 10-12-2011 , 18:14   Re: Updater
Reply With Quote #14

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!
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
Steell
SourceMod Donor
Join Date: Mar 2009
Old 10-12-2011 , 18:14   Re: Updater
Reply With Quote #15

Quote:
Originally Posted by GoD-Tony View Post
This could create a lot of "hidden spam" for plugins with many update files. If a file buried in the /translations/jp/ folder kept getting written to, a server op may not notice until it's flooded. Using the date is a good idea though.
Perhaps have it so it's configurable on a per-file basis for the developer, and have a cvar to enable/disable backup for the client.
__________________
Steell is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 19:03   Re: Updater
Reply With Quote #16

Awesome job! Implementing that into all my plugins now
__________________
Peace-Maker is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 10-14-2011 , 19:26   Re: Updater
Reply With Quote #17

Can I ask, is this how the cvar gets entered?
sm_updater "1|2|3"

| < is valid?
__________________
Happy Happy Joy Joy

sinblaster is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 19:54   Re: Updater
Reply With Quote #18

| should be considered as an exclusive "or".
__________________
Peace-Maker is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-15-2011 , 02:06   Re: Updater
Reply With Quote #19

Quote:
Originally Posted by sinblaster View Post
Can I ask, is this how the cvar gets entered?
sm_updater "1|2|3"

| < is valid?
I just meant that the valid options are 1, 2, or 3.
GoD-Tony is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 10-15-2011 , 04:42   Re: Updater
Reply With Quote #20

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.
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 10-15-2011 at 04:45.
sinblaster is offline
Reply


Thread Tools
Display Modes

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 15:36.


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