Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: allofmywutsteam on May 06, 2015, 01:47:29 PM

Title: ULX who by Steam ID?
Post by: allofmywutsteam on May 06, 2015, 01:47:29 PM
I use ulx who when in Console to see how many users in my server are members, and whatnot.

I also find out what group some users fall under. The reason I often check this is because I have over 50 custom groups that I keep track of (users can buy custom tags and what not).

QUESTION: Is there a way to find out what group a Steam ID is in my server without them being in the server? For instance, I'd like to grant a user access to a playermodel. but I'd like to simply go into console, check his Steam ID and reference what group, and then add to the model.

Adding access to a playermodel is simply one example, but I'm sure you get the idea. Is this possible?
Title: Re: ULX who by Steam ID?
Post by: Megiddo on May 06, 2015, 06:58:06 PM
Great idea -- we've added it to our todo list: https://github.com/Nayruden/Ulysses/issues/462
Title: Re: ULX who by Steam ID?
Post by: allofmywutsteam on May 06, 2015, 07:48:19 PM
<Snip>Entire Post Censored<snip>
/me says "Watch the adult oriented language and attitudes".
Post deleted, so many not nice for all ages things.
Title: Re: ULX who by Steam ID?
Post by: allofmywutsteam on May 06, 2015, 07:50:04 PM
anyway looking forward to this being added. thanks for the taking the stime to read this (insert smioley)
Title: Re: ULX who by Steam ID?
Post by: MrPresident on May 06, 2015, 09:57:19 PM
I already wrote a function to do this. :)

http://forums.ulyssesmod.net/index.php/topic,8499.msg43608.html#msg43608 (http://forums.ulyssesmod.net/index.php/topic,8499.msg43608.html#msg43608)

Check out my reply in that thread. If you have any questions on how to utilize this, let me know.
Maybe when they give me access to GIT I'll officially add it to the code. ;)
Title: Re: ULX who by Steam ID?
Post by: Megiddo on May 07, 2015, 05:26:05 AM
Oops, I never did give you access. Fixed. This user is asking for it to be added to the command though, not a way to access the table information in Lua.
Title: Re: ULX who by Steam ID?
Post by: MrPresident on May 07, 2015, 12:38:52 PM
Oops, I never did give you access. Fixed. This user is asking for it to be added to the command though, not a way to access the table information in Lua.

Re-Read his OP. He's asking for a way to get the group of a user who isn't on the server by providing a Steam ID.
That could probably be done using ulx who and passing a parameter to it.

ulx who - returns table of online players as normal
ulx who <steamid> - returns information about the player who's steamid you passed.
Title: Re: ULX who by Steam ID?
Post by: MrPresident on May 07, 2015, 01:22:11 PM
I added this to the ULX/ULib SVN version.
You can now pass a steamid parameter to the ulx who command and it will return information about any user with that id stored in the ULib users file.
This works for both online and offline players.

(https://dl.dropboxusercontent.com/u/5982978/ForumLinks/ulxwho.png)
Title: Re: ULX who by Steam ID?
Post by: allofmywutsteam on May 07, 2015, 01:55:23 PM
Looking forward to testing this out. Thanks!

Quick question. is it possible to simply download the github ulx folder, and then replace the util.lua file with the one I download? Or do i need to re-download my ulx?

So basically I just download this:
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/sh/util.lua

Side note: utime addon.txt and readme.txt were updated as well, do I need to even download this update?
Title: Re: ULX who by Steam ID?
Post by: MrPresident on May 07, 2015, 03:48:25 PM
I made a change to the ULib\lua\ulib\server\ucl.lua file too so you would need to update that one as well.
Title: Re: ULX who by Steam ID?
Post by: allofmywutsteam on May 07, 2015, 09:33:03 PM
Thanks! Works great!

EDIT: Possible to include a column in the ulx who steamid response to show the inheritance? For example, right now I see Steam Name and ID. What I'd like to see is see who that group inherits from so people can see what rank that person is (staff, user, member, etc). Again this goes back to the fact that I have a butt load of custom tags that people can buy, so this would be a neat feature to also include. If not, no biggie. great work :)