Raised This Month: $32 Target: $400
 8% 

Steam Group Admins (HTTP Prefetch)


Post New Thread Reply   
 
Thread Tools Display Modes
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 05-01-2012 , 15:03   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #51

Is the temp.xml the only contents, then, of that cache folder?

The first error you were seeing, "Error replacing cache with fresh XML content temp. file.", as I did two operations at once at that point in the code, could mean either than the permanent cache file (like 1576325.xml) existed but couldn't be deleted, or the temp. cache file (temp.xml) couldn't be renamed to the permanent name (like 1576325.xml).

Basically, on each iteration (each Steam group), cURL grabs the XML for the group, saving it to temp.xml. If it successfully gets some data, it's supposed to delete the old cache file stored for the group (like 1576325.xml), and then rename the temp.xml to that name.

In your case, cURL is certainly successful in getting data, but there's a problem in that operation, and my main guess is that something I'm not aware of is keeping the temp.xml file locked. If it were a problem deleting the other cache file (like 1576325.xml), then you wouldn't be seeing the second error you were seeing ("Error reading XML data...").

If you manually try to rename the temp.xml file while the server is running, does Windows allow you to, or is the file locked?
Mister_Magotchi is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 05-01-2012 , 15:43   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #52

Quote:
Originally Posted by Mister_Magotchi View Post
Is the temp.xml the only contents, then, of that cache folder?
yes
Jоnny is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 05-01-2012 , 15:45   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #53

0.9.6 works for me w/o any errors
Quote:
If you manually try to rename the temp.xml file while the server is running, does Windows allow you to, or is the file locked?
file is not blocked, can rename

Last edited by Jоnny; 05-01-2012 at 15:48.
Jоnny is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 05-01-2012 , 17:22   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #54

I will get back to you on this. It just takes a bit of thinking to troubleshoot something I can't directly test.

In the meantime, 0.9.6 will get you by, but if you delete people from your Steam groups, they are likely to not lose their admin unless you wipe the contents of the cache folder.

EDIT:
I added you on Steam. Maybe we can work through things a little better there, if you're interested.

Last edited by Mister_Magotchi; 05-01-2012 at 19:24.
Mister_Magotchi is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 06-20-2012 , 03:48   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #55

There is currently a problem (or possibly just a change) with the Steam Community XML data.

Once I know what's going on, I'll either fix this plugin to work with the update, or it will fix itself once the API goes back to normal.
Mister_Magotchi is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 06-20-2012 , 16:30   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #56

The API is back to normal, so the plugin is working again.
Mister_Magotchi is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-22-2012 , 07:56   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #57

Quote:
Originally Posted by Mister_Magotchi View Post
I will get back to you on this. It just takes a bit of thinking to troubleshoot something I can't directly test.
It can take a significant amount of time for file operations to actually commit on Windows.
We had similar issues with the AlliedModders build system, where renaming/removing a temp file didn't actually remove it, so when the next stage wrote to it it failed as it was in a locked state.
__________________
asherkin is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 08-22-2012 , 13:01   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #58

Yeah. That seems to be the kind of problem I'm now having with it on CS:GO on Windows. It seems to work fine if you restart the plugin once after the server is restarted, but until then, it really seems to hate the various file operations.
Mister_Magotchi is offline
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 09-19-2012 , 16:09   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #59

Is possible to make this plugin works only for those using the tag group?

Last edited by AlfredSpain; 09-19-2012 at 16:09.
AlfredSpain is offline
markg
Senior Member
Join Date: Jan 2009
Old 09-24-2012 , 20:17   Re: Steam Group Admins (HTTP Prefetch)
Reply With Quote #60

One request:

you based this one on Psychonics plugin which does not precache, so we cant use it for reserved slot.

but he has the ability to have different permissions for group Admins vs group Members.

can you possibly add that? it would make for a major improvement

thanks
markg 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 14:14.


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