Steam Group Admins (HTTP Prefetch)
2 Attachment(s)
Steam Group Admins (HTTP Prefetch)
This plugin reads all players from Steam Community group XML member lists (via HTTP), based on a config file, and adds them to the admin cache whenever the admin cache is refreshed (manually or at map start). It should work in any game that SourceMod supports. I've currently used it on a Windows CS:S server, a Linux CS:S server, a Windows TF2 server, and a Windows CS:GO server. Setup:
When manually reloading the admin cache via sm_reloadadmins, players currently authenticated as admins via this plugin will lose their admin authentication until they reconnect to the server or the map changes. Steam Community group XML member lists are paginated after 1,000 members, so in order to prevent excessive server load and hammering of the Steam Community XML API, only the first page, and therefore only the first 1,000 listed members, are processed. Special Thanks: psychonic - He made the original Steam Group Admins plugin. As there is a slight delay after a user connects to the server before they are authenticated by their Steam groups, it doesn't work properly for reserved slots, and that's why I made this plugin. His plugin, however, supports groups of any size, while mine only handles groups with 1,000 members or less. Compiling: This plugin requires the include files for the cURL extension to compile correctly. Download Options:
|
Re: Steam Group Admins (HTTP Prefetch)
You need to account for groups that have >1000 people. Even the xml version gets paginated.
The nextPageLink node has the link to the next page if applicable. Plus, you're only mapping admin to users when the admin cache is refreshed. Users late-joining won't get admin until map change. |
Re: Steam Group Admins (HTTP Prefetch)
I don't want to account for groups that have > 1000 people. A non-threaded approach really shouldn't be handling that many anyway.
If a player joins the server any time after this plugin has been loaded and the admin cache has been refreshed (the map has changed or sm_reloadadmins has been run), they will get admin. |
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Thanks for the pointers. I had already done all that in the description I was writing. The reason I posted the thread before finishing the description was that I wanted to put the thread's URL in the "url" thing in the plugin source. Sorry for the confusion. I didn't expect anyone to see that since I was finished in a few more minutes from the initial post.
By the way (and I was going to ask you in IRC or something, but I didn't want to bug you), if you have any idea what I'm missing on that first "Known Issue" I list, let me know. |
Re: Steam Group Admins (HTTP Prefetch)
Nice Nice But it is not walk... :|
If I want compielen the sp file itself does this error fatal error 120: cannot read from file: "socket" Plz Can you give me a ready made package for this group http://steamcommunity.com/groups/dreist-reserver-slot Group ID: 103582791431649758 end this frags Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Oh ok the neu
steam-group-admins-http.txt is PHP Code:
|
Re: Steam Group Admins (HTTP Prefetch)
It seems to be fine, but if you're only trying to give the members of that groups reserved slots, you only need the "a" flag.
|
Re: Steam Group Admins (HTTP Prefetch)
Englisch
Oh very nice everything is going perfectly ... But please tell me how do you still have the number 2128350 ????? Germany Oh sehr schön es geht alles perfekt... Aber bitte sag mir noch woher hast du die nummer 2128350 ????? |
Re: Steam Group Admins (HTTP Prefetch)
Did the number 2128350 work for you in your config?
I got it this way: GroupID64 - 103582791429521408 = GroupID Therefore: 103582791431649758 - 103582791429521408 = 2128350 This should also be the same number you see when you try to edit the group profile. |
Re: Steam Group Admins (HTTP Prefetch)
Englisch
oh ok always 103582791431649758 - GroupID = Number Deutsch oh ok also immer 103582791431649758 - GroupID = Number |
Re: Steam Group Admins (HTTP Prefetch)
Hi Mister,
I would like to have a little bit more infos about your plugin please :) 1) Actually, there's a bug in psychonic's version wich causes that whenever the map is changed, the plugin or w/e does not load the admins properly and they need to reconnect to have their powers. Does your plugin fixes that? 2) If I choose to manually refresh the admin cache, all the admins wich already have their power will lose it? |
Re: Steam Group Admins (HTTP Prefetch)
1. This plugin doesn't have that problem. It's one of the reasons I made this plugin.
2. When you manually refresh the cache, all the admins that already have it will lose it until they reconnect to the server or the map changes. This only applies to admin stuff they got through this plugin. If they are also admin through something else, that won't be affected. It's something I'm missing in my plugin that probably all the other admin-cache plugins (including the stock ones) have taken care of, but I had trouble finding out what to do to fix it, and it wasn't a big enough deal for me to worry about for my own purposes, but if somebody knows how to fix it, feel free to let me know. |
Re: Steam Group Admins (HTTP Prefetch)
This plugin works perfectly, but i have an idea for an little upgrade.
Make it so there is members in the group that will be in one group, and the officers in the group also have another group, i mean most people don't give the same admin to all of the same group, it would make it the most awsome, ultimate plugin ive ever ever seen. Like this plugin: https://forums.alliedmods.net/showth...=1#post1390989 the only problem about the linked plugin is just that it's bugged, if you change map all admins that have been add'ed by the plugin from the steamgroup have to rejoin to make it work.. EDIT: And just so you people(inclusive plugin maker) knows it, this plugin works perfectly, if you can't make it work, it's not the plugin that is bugged! Quote:
remove the files that you have installed, and download this plugin instead, works mutch better ! |
Re: Steam Group Admins (HTTP Prefetch)
Thank you for the compliment on my plugin.
Quote:
Also, Minez was asking me if my plugin had the same bug as Psychonic's plugin or not. He was not asking irrelevant questions. |
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Anyways, thank you for the answers, I am switching to this plugin now :) |
Re: Steam Group Admins (HTTP Prefetch)
This plugin slow down the server on map change. Actually, all players are dropped, just like a crash, but the map changes normally after 1 minute and server comes back online like if it had never crash.
|
Re: Steam Group Admins (HTTP Prefetch)
It's never happened on my server to my knowledge.
What game are you running it on? Is it Windows, Linux, or Mac? What is in your "steam-group-admins-http.txt" file? What other details can you give me? |
Re: Steam Group Admins (HTTP Prefetch)
Quote:
Counter-Strike Source - Linux server hosted on gameservers.com |
Re: Steam Group Admins (HTTP Prefetch)
The plugin works fine on my Linux Counter-Strike: Source server, so that shouldn't be the issue. What are the contents of the config file?
Also, are you getting any errors in your SourceMod error logs? |
Re: Steam Group Admins (HTTP Prefetch)
Hi, this plugin causes server crashes on map change, when connection to steam is lost (I think). Anyone else gets crashes too?
Code:
L 11/03/2011 - 20:55:09: [SM] Plugin encountered error 11: Invalid memory access |
Re: Steam Group Admins (HTTP Prefetch)
I've actually been seeing the same error on my server on map change, but the plugin still works, and it has never caused a crash that I've seen. I've been looking into the cause of that error, though.
Also, this plugin only connects to Steam in the sense that it grabs an XML file via HTTP from the Steam Community website. Does your server crash on every map change, or does it only crash on certain map changes? |
Re: Steam Group Admins (HTTP Prefetch)
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
I'll try to do some testing tonight where I make the connection fail on purpose and see what happens. Maybe I'll get that error worked out too. Again, I hadn't bothered with it too much originally, since it's been working for me non-stop since I published it.
|
Re: Steam Group Admins (HTTP Prefetch)
I've done some testing just now (on a CS:S listen server on Windows), and I can't get mine to crash on a connection failure or put that "Invalid memory access" error in the error log. Everything works as I meant it to work.
My test:
As I don't know that I'll be able to reproduce your problem, I can't properly help you with it. There might be some difference on a dedicated server or on Linux, but again, the CS:S server I use it on normally is dedicated and Linux, and it works fine. |
Re: Steam Group Admins (HTTP Prefetch)
Ok thanks, I will try some tests too, also I will update to latest stable plugin releases.
|
Re: Steam Group Admins (HTTP Prefetch)
Installed plugin, restarted server, connected, kicked with this message:"Server not able to authenticate user with Steam"
|
Re: Steam Group Admins (HTTP Prefetch)
This plugin wouldn't/shouldn't produce that kind of error. That is actually a very common error in general, though. Also, are you sure it still happens when you have just the base install of MM:S, SourceMod, and this plugin?
|
Re: Steam Group Admins (HTTP Prefetch)
Could you add function to generate admins_simple.ini from Steam Group users?
|
Re: Steam Group Admins (HTTP Prefetch)
I am capable of it, but I won't, and I think that kind of a system might be better written in a different language (maybe a PHP/Perl script that, on cron, updates the admins.cfg or admins_simple.ini, optionally via FTP), although it's of course possible with SourceMod.
|
Re: Steam Group Admins (HTTP Prefetch)
Let's say I was to make a Steam Group for my admins, and I was a member.
Seeing as I'm set as the RCON admin in admins-simple.ini, would this overwrite that setting and cause me to only be a basic admin? |
Re: Steam Group Admins (HTTP Prefetch)
No. The flags are additive between this and other admin plugins. In my admins.cfg, I have 3 admins in a group with the "z" (root) flag, and then they're also added to a group with lesser privileges via this plugin, and they still have the "z" flag.
|
Re: Steam Group Admins (HTTP Prefetch)
I have some problems with using Sourcebans and CbaseServer Reserved Slots ( http://forums.alliedmods.net/showthr...=72322&page=93 ) and it would be great, if your plugin could write admins_simple.ini, or if someone could write a plugin that will create admins_simple.ini from admins.cfg+admin_groups.cfg.
|
Re: Steam Group Admins (HTTP Prefetch)
Again, I have no intention of adding that functionality.
|
Re: Steam Group Admins (HTTP Prefetch)
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Plugin updated:
Quote:
|
Re: Steam Group Admins (HTTP Prefetch)
Wow, this looks really neat.
May I make a request that's kinda-sorta based on this plugin? Would it be possible for you to create a similar plugin, but instead of making anyone in the steam group an admin, it would kick any client who attempted to connect who is not a member of the group? The reason is that while I'm okay with my friends joining my friends-only game, I'm not okay with my friends' friends joining. Only allowing steam group members to join would solve that problem pretty easily. |
Re: Steam Group Admins (HTTP Prefetch)
I do not want to make a new plugin to do what you're saying, but technically, it can already be done with this.
Instructions (assuming a 24-slot server):
|
Re: Steam Group Admins (HTTP Prefetch)
Unfortunately, I don't think the reserve slots stuff works in L4D2. :(
I may try my hand at using your plugin as a base for writing my own. |
All times are GMT -4. The time now is 14:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.