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

Updater


Post New Thread Reply   
 
Thread Tools Display Modes
Flyflo
Senior Member
Join Date: Jun 2008
Location: Grenoble, France
Old 01-07-2012 , 13:31   Re: Updater
Reply With Quote #121

Thank you for taking time on this functionality, I'm really looking forward to it.
__________________
Flyflo is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-13-2012 , 09:52   Re: Updater
Reply With Quote #122

It sounds like this plugin isn't recognizing that 3.3.1r2 is a newer version than 3.3.1 for the Ultimate MapChooser Plugin.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 01-13-2012 , 09:58   Re: Updater
Reply With Quote #123

Quote:
Originally Posted by Powerlord View Post
It sounds like this plugin isn't recognizing that 3.3.1r2 is a newer version than 3.3.1 for the Ultimate MapChooser Plugin.
The author has a typo in his update file. For when he fixes it, it previously said:
Code:
"Information"
{
	"Version"
	{
		"Latest"    "3.3.1"
		"Previous"  "3.3r2"
	}
}
The actual version downloaded is then 3.3.1r2, causing the loop (once every 24hrs).
__________________

Last edited by GoD-Tony; 01-13-2012 at 10:12.
GoD-Tony is offline
HolyDuFF
Member
Join Date: Mar 2010
Old 01-15-2012 , 17:15   Re: Updater
Reply With Quote #124

I can't compile this plugins. I get the following errors.

//// updater.sp
// updater/download_curl.sp(19) : error 017: undefined symbol "CURLOPT_NOSIGNAL"

// updater/download_curl.sp(20) : warning 221: label name "_" shadows tag name
// updater/download_curl.sp(20) : warning 217: loose indentation
// updater/download_curl.sp(20) : error 017: undefined symbol "CURLOPT_NOPROGRES
S"
// updater/download_curl.sp(19) : error 010: invalid function or declaration
// updater/download_curl.sp(27) : error 021: symbol already defined: "curl_slist
_append"
// updater/download_curl.sp(31) : error 021: symbol already defined: "WritePackC
ell"
// updater/download_curl.sp(35) : error 021: symbol already defined: "curl_easy_
setopt_int_array"
// updater/download_curl.sp(42) : warning 219: local variable "curl" shadows a v
ariable at a preceding level
// updater/download_curl.sp(42) : warning 219: local variable "hDLPack" shadows
a variable at a preceding level
// updater/download_curl.sp(50) : error 017: undefined symbol "CURLE_OK"
// updater/download_socket.sp(20) : warning 219: local variable "hDLPack" shadow
s a variable at a preceding level
// updater/download_socket.sp(29) : warning 219: local variable "hDLPack" shadow
s a variable at a preceding level
// updater/download_socket.sp(3 : warning 219: local variable "hDLPack" shadow
s a variable at a preceding level
// updater/download_socket.sp(53) : warning 219: local variable "hDLPack" shadow
s a variable at a preceding level
// updater/download_socket.sp(63) : warning 219: local variable "hDLPack" shadow
s a variable at a preceding level
// updater/download_steamtools.sp(9) : warning 219: local variable "hDLPack" sha
dows a variable at a preceding level
// updater/download_steamtools.sp(1 : warning 219: local variable "hDLPack" sh
adows a variable at a preceding level
// updater.sp(34) : warning 203: symbol is never used: "curl"
// updater.sp(30) : warning 203: symbol is never used: "hDLPack"
// updater.sp(26) : warning 203: symbol is never used: "headers"
//
// 7 Errors.
//
// Compilation Time: 0,16 sec
// ----------------------------------------

I got the following files.

include\cURL
include\socket
include\steamtools
include\updater
updater\api.sp
updater\download.sp
updater\download_curl.sp
updater\download_socket.sp
updater\download_steamtools.sp
updater\filesys.sp
updater\plugins.sp
updater.sp

How do i fix this?
HolyDuFF is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 01-18-2012 , 03:15   Re: Updater
Reply With Quote #125

@GoD-Tony: is there a way your updater can also follow symlinks? I have all my plugins symlinked to a shared folder for all my servers so i only have to update 1 location. The updater updates the file and removes the symlink.
__________________
Arguing with a fool only proves there are two
snelvuur is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 01-18-2012 , 04:40   Re: Updater
Reply With Quote #126

Quote:
Originally Posted by HolyDuFF View Post
I can't compile this plugins. I get the following errors.

How do i fix this?
Part of the source might have been corrupt while you moved files around. Double check everything.

Quote:
Originally Posted by snelvuur View Post
@GoD-Tony: is there a way your updater can also follow symlinks? I have all my plugins symlinked to a shared folder for all my servers so i only have to update 1 location. The updater updates the file and removes the symlink.
So the same plugins directory is used by all of your servers? I hope Updater is only loaded on one of them, or you may run into a race condition. Also keep in mind that some plugins update more than just their *.smx file.

Regarding the symlink; Applications should only be seeing it as a real directory. I'm not sure why it would be removed, but could it have to do with Updater renaming/deleting files as the new ones come in?

Edit: If you are individually symlinking plugin files, then that would answer it.
__________________

Last edited by GoD-Tony; 01-18-2012 at 04:42.
GoD-Tony is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 01-18-2012 , 04:53   Re: Updater
Reply With Quote #127

Well updater is loaded on multiple servers, but if another server updates the plugins and some other server changes map it will load the new version anyways and will not update.

Only this is not happening now since it removes the link and downloads the new version.

And yes i am symlinking them individually, i made a script which automates this process for me so its not that much work but the updater throws dirt in my plans then
__________________
Arguing with a fool only proves there are two
snelvuur is offline
templetonpeck
Senior Member
Join Date: Apr 2009
Old 02-10-2012 , 05:33   Re: Updater
Reply With Quote #128

Hi there...

Since some days i got the following error:

L 02/09/2012 - 20:59:21: [UPDATER] --- BEGIN ERRORS FROM AUTOMATIC UPDATER ---
L 02/09/2012 - 20:59:21: [UPDATER] Could not open /home/gs/css-gungame/css/cstrike/addons/sourcemod/gamedata/sdkhooks.games/common.games.txt for writing
L 02/09/2012 - 20:59:21: [UPDATER] --- END ERRORS FROM AUTOMATIC UPDATER ---

Today all my Servers even didnt start at all, and i think its due to this.

Someone got a clue?

The .txt file has all necessary reading/writing rights of course.
__________________

Last edited by templetonpeck; 02-10-2012 at 05:33.
templetonpeck is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 02-10-2012 , 05:43   Re: Updater
Reply With Quote #129

Quote:
Originally Posted by templetonpeck View Post
Code:
L 02/09/2012 - 20:59:21: [UPDATER] --- BEGIN ERRORS FROM AUTOMATIC UPDATER ---
L 02/09/2012 - 20:59:21: [UPDATER] Could not open /home/gs/css-gungame/css/cstrike/addons/sourcemod/gamedata/sdkhooks.games/common.games.txt for writing
L 02/09/2012 - 20:59:21: [UPDATER] --- END ERRORS FROM AUTOMATIC UPDATER ---
That error is from SourceMod's official gamedata updater (extension) and unrelated to this plugin.
__________________

Last edited by GoD-Tony; 02-10-2012 at 05:48.
GoD-Tony is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 02-10-2012 , 07:15   Re: Updater
Reply With Quote #130

When you have a plugin with multiple smx files, for example: UMC, it is very handy to create a folder "plugins/umc" and then put related smx files there (umc-core.smx, umc-maprate.smx, etc).

Will updater still update those files?

Last edited by alongub; 02-10-2012 at 07:15.
alongub 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 08:57.


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