Author Topic: [Resolved] ULX Group Ordering Question (By inheritance?)  (Read 5982 times)

0 Members and 1 Guest are viewing this topic.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
[Resolved] ULX Group Ordering Question (By inheritance?)
« on: September 24, 2016, 03:12:58 PM »
ULib v..2.6 // ULX v..3.70 // Game mode: TTT

I'm curious how the ULX groups are ordered in the xgui. I see some groups are ordered according to inheritance, but some groups are sitting above even the highest group.

My hierarchy goes:
owner > superadmin > admin > respected (and respected ID's) > members (and respected ID's > user

Problem:


Sample inheritance:


« Last Edit: October 05, 2016, 09:06:05 AM 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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ULX Group Ordering Question (By inheritance?)
« Reply #1 on: September 24, 2016, 04:40:54 PM »
It is, as you guessed, based on inheritance. XGUI gets the data from this function and then flattens it. The only guarantee is that a group will never be below what it's inheriting from.
Experiencing God's grace one day at a time.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX Group Ordering Question (By inheritance?)
« Reply #2 on: September 24, 2016, 04:45:44 PM »
But in my image, the top Steam ID is sitting WAY above a group it inherits from (respected). And this is the case for several other groups too, that are randomly listed
"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: 6213
  • Karma: 394
  • Project Lead
Re: ULX Group Ordering Question (By inheritance?)
« Reply #3 on: September 24, 2016, 05:22:14 PM »
Yes, a group will always be above what it inherits from.
Experiencing God's grace one day at a time.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX Group Ordering Question (By inheritance?)
« Reply #4 on: September 24, 2016, 06:56:21 PM »
Yes, a group will always be above what it inherits from.

if thats the case, then why is owner underneath it... that steam ID at the top doesn't inherit from owner.
"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: 6213
  • Karma: 394
  • Project Lead
Re: ULX Group Ordering Question (By inheritance?)
« Reply #5 on: September 24, 2016, 06:58:45 PM »
A group will always be above what it inherits from, but there is no information conveyed other than that. E.G., everything that inherits from "user" will always be above user, but that doesn't mean that "user" can't be above other groups (as long as they don't inherit from "user").
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ULX Group Ordering Question (By inheritance?)
« Reply #6 on: September 24, 2016, 07:16:27 PM »
I realize it may be confusing, but there's no great way to display tree-based information in a flat list. Nor was this list really intended to be used to determine that information.
Experiencing God's grace one day at a time.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: ULX Group Ordering Question (By inheritance?)
« Reply #7 on: October 04, 2016, 07:18:59 AM »
I realize it may be confusing, but there's no great way to display tree-based information in a flat list. Nor was this list really intended to be used to determine that information.

Understandable. I'll close this out. Thank you!
"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 Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #8 on: October 05, 2016, 01:09:02 AM »
The real question is why do you have groups with steam ids.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #9 on: October 05, 2016, 09:45:15 AM »
The real question is why do you have groups with steam ids.

That's a good question. I had originally used unique names for groups, but as time passed on, there were users who hadn't joined the server in some time, and there were users who changed their names. So it was hard to track which ulx group was associated with which user. Especially when I'm in my addons giving permissions to models, weapons, etc. So for me, tracking a user down in game and in addons is easier by ID than it is by name. For me it's a cleaner naming convention.
"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 roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #10 on: October 05, 2016, 05:42:44 PM »
I think Apple's question extends to "Why do you have groups for single users?"
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #11 on: October 05, 2016, 08:10:03 PM »
I think Apple's question extends to "Why do you have groups for single users?"

As a perk, members can win/earn custom ranks to give themselves some flair at certain times. They were once able to buy them, but given I recently brought back the server, and I had wiped out the 70+ previous groups, I was giving some out.
"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 roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #12 on: October 06, 2016, 03:31:58 PM »
What's the point in creating a whole group for it though? Why not just 'ulx adduser'? Seems like bad practice to me.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #13 on: October 07, 2016, 07:57:50 AM »
Don't get us wrong - we're not saying you're going to server admin <-censor-bad place-censor-> for using ULX* the way you want.
(* really, this wouldn't even have to be ULX, it could be straight gmod group control through /settings/users.txt)
It's just not efficient management.
Grouping is meant to allow a..wait for it... group of users to have different access than some other group.
As roastchicken alludes to, efficiency would dictate, if giving access perks higher than one group, but below another, you give that middle group the standard perks and add the user to it.
If you wanted to give command perks to those in that group different than the others in that same group, but didn't have enough members to make a whole new group above that one, then you simply use userallow to give that user access to whatever command. Or, if you decided after 2 or 3 people starts getting that access, and thought the rest of the group deserved the access too, then groupallow.

ULX is meant to make what can be a challenging job easier.
It seems your current group decisions still remain complicated.
« Last Edit: October 07, 2016, 08:01:29 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: [Resolved] ULX Group Ordering Question (By inheritance?)
« Reply #14 on: October 07, 2016, 08:57:11 AM »
Don't get us wrong - we're not saying you're going to server admin <-censor-bad place-censor-> for using ULX* the way you want.
(* really, this wouldn't even have to be ULX, it could be straight gmod group control through /settings/users.txt)
It's just not efficient management.
Grouping is meant to allow a..wait for it... group of users to have different access than some other group.
As roastchicken alludes to, efficiency would dictate, if giving access perks higher than one group, but below another, you give that middle group the standard perks and add the user to it.
If you wanted to give command perks to those in that group different than the others in that same group, but didn't have enough members to make a whole new group above that one, then you simply use userallow to give that user access to whatever command. Or, if you decided after 2 or 3 people starts getting that access, and thought the rest of the group deserved the access too, then groupallow.

ULX is meant to make what can be a challenging job easier.
It seems your current group decisions still remain complicated.

Ohhhhhhhhhhhhhhh you just blew my mind. I've used userallow before but never too much. But you're right. Only reason I was using groups was because I could assign a user unique configurations for specific packages they donate for. But right now, I'm literally just making groups for custom name/color configs, which can be done by ID anyway, and not by group.

You just made my life so much easier lol

The addons I was concerned about were:
-- pointshop-master
-- TTT-EasyScoreboard-master
-- TTTDamagelogs-master
-- WeaponSelectionMenu

Pointshop isn't affected because members still get the same access. EasySB isn't affected because I can still apply unique stuff by ID. DMG logs isn't affected because everyone can access logs anyway. Weapon selection isn't affected because members can access certain weps anyway.

The only time I could see myself crating a unique group would be for donors who want access to certain weps, but not models. And vice versa. But even then, that would decrease the amount of editing by a lot lol Not that I had to do much, but it's always a hassle having to go into different files every time.

The only issue I can think of for user allow is IF I were to hand out some extra fun commands (^ only), then how would i know down the line who has access to said command? Or would I just need to personally track them? I guess I could use ulx warn, but that's pointless. Suggestions for this situation?
"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