Re: Steam Group Admins (HTTP Prefetch)
I don't want to make it do that, but you're welcome to do as you please with the code.
|
Re: Steam Group Admins (HTTP Prefetch)
Magotchi, wanted to thank you for the plugin, this is a great option and a life saver for those who do not run Source 2009 servers.
For those of you who are wondering it works, and admin.cfg or admin-groups.cfg is not changed by this plugin, instead use sm_who in rcon to check if it worked or not. It works great ty again :D |
Re: Steam Group Admins (HTTP Prefetch)
I have been using this plugin for quite a while with very good results.
lately however it stopped working for me. im getting the following in the logs coincident with server map change (which I believe would be the expected time) (note I replaced the last couple digits with xx): 2013 - 06:13:25: [admin\steam-group-admins-http.smx] Error replacing cache with fresh XML content temp. file. Steam Group ID: 34241XX L 12/27/2013 - 06:13:25: [admin\steam-group-admins-http.smx] Error reading XML data from local cached file for Steam group ID: 34241XX. L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error replacing cache with fresh XML content temp. file. Steam Group ID: 40999XX L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error reading XML data from local cached file for Steam group ID: 40999XX. L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error replacing cache with fresh XML content temp. file. Steam Group ID: 40321XX L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error reading XML data from local cached file for Steam group ID: 40321XX. L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error replacing cache with fresh XML content temp. file. Steam Group ID: 39040XX L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error reading XML data from local cached file for Steam group ID: 39040XX. L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error replacing cache with fresh XML content temp. file. Steam Group ID: 41503XX L 12/27/2013 - 06:13:26: [admin\steam-group-admins-http.smx] Error reading XML data from local cached file for Steam group ID: 41503XX. L 12/27/2013 - 07:15:15: Error log file session closed. I checked the data/steam_group_admins_http directory, and there is a single temp.xml file, with a time stamp roughly map change time, but with only one steam group id included, 41503XX. but that group has errors also, see above. any ideas? |
Re: Steam Group Admins (HTTP Prefetch)
The biggest problem in general that anybody ever mentions about this plugin is exactly what you're describing, and it comes down to file locking. Sadly, I've never figured out an elegant solution.
Basically, after it downloads the data to temp.xml, it deletes the <groupid>.xml file and then renames temp.xml to <groupid>.xml. Sometimes either the <groupid>.xml is locked and its deletion fails, or the temp.xml is locked and renaming it fails. I've only ever had this happen on Windows, and for me, it was only on a CS:GO server. Linux is pretty forgiving about letting you mess around with in-use files. That's not to say it doesn't work on Windows; I've been using it for years now on a Windows server. As for why the file gets locked for some people/servers and not for others, I'm not sure; for all I know, it could even be antivirus software scanning it or something. The moment the data is successfully written to temp.xml, I immediately close the handle to it and then try to rename it, so something is locking it in the meantime, or I'm not successfully closing the game's access to the file. I have some ideas, including one involving randomly-named temp files, copying instead of renaming, and cleaning old temp files; hopefully there's something I can do that doesn't mean rewriting the whole thing. It's a good plugin, and I hate to see people having issues with it. |
Re: Steam Group Admins (HTTP Prefetch)
just to help you troubleshoot;
this is on a vps, windows 2008 R2, running Team Fortress 2, with NO antivirus software whatsoever. I can also get you whatever other info that might help - just ask. [edit] I just remoted in and tried to delete the temp file, got an error message: "The action can't be completed because the file is open in srcds.exe Close the file and try again." if I stop the server I can erase the file (no surprise there), and then on restart it recreates the temp file, then the other xml files. so the locking file thing isn't consistent, but when it does lock, that's it until server restart. |
Re: Steam Group Admins (HTTP Prefetch)
I've updated the plugin to hopefully fix these issues (and another longstanding issue).
Now, it does the following:
EDIT: I accidentally left a debugging line in there which logged some raw XML data to the SourceMod log. Fixed. |
Re: Steam Group Admins (HTTP Prefetch)
installed, ill let you know how it goes
Thanks!! |
Re: Steam Group Admins (HTTP Prefetch)
Please do. Since I don't ever see the problem on my current servers, I'm interested to get feedback on it.
|
Re: Steam Group Admins (HTTP Prefetch)
I've updated the plugin:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
I've updated the plugin:
Quote:
|
All times are GMT -4. The time now is 07:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.