ULX

Author Topic: ULX who by Steam ID?  (Read 5161 times)

0 Members and 1 Guest are viewing this topic.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
ULX who by Steam ID?
« 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?
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX who by Steam ID?
« Reply #1 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
Experiencing God's grace one day at a time.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX who by Steam ID?
« Reply #2 on: May 06, 2015, 07:48:19 PM »
<Snip>Entire Post Censored<snip>
* JamminR says "Watch the adult oriented language and attitudes".
Post deleted, so many not nice for all ages things.
« Last Edit: May 06, 2015, 08:25:13 PM by JamminR »
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX who by Steam ID?
« Reply #3 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)
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX who by Steam ID?
« Reply #4 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

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. ;)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX who by Steam ID?
« Reply #5 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.
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX who by Steam ID?
« Reply #6 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.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX who by Steam ID?
« Reply #7 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.


Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX who by Steam ID?
« Reply #8 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?
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX who by Steam ID?
« Reply #9 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.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX who by Steam ID?
« Reply #10 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 :)
« Last Edit: May 07, 2015, 09:41:40 PM by allofmywutsteam »
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server