Author Topic: Group Targeting  (Read 4595 times)

0 Members and 1 Guest are viewing this topic.

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Group Targeting
« on: May 23, 2016, 03:36:32 PM »
Ok so I ran into a problem today
When I do ulx setgroupcantarget "SeniorAdmin" "!%SeniorAdmin" (which is what someone told me to do) they can still pick me (owner) up
Please help and its like this with every other rank.
And when I do just "SeniorAdmin" They cant do anyone

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Group Targeting
« Reply #1 on: May 23, 2016, 03:37:22 PM »
How is your group inheritance chain setup?
Experiencing God's grace one day at a time.

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #2 on: May 23, 2016, 03:44:01 PM »
It goes Owner Inherits from SuperAdmin Superadmin inherits from admin, SeniorAdmin Inherits from admin (that might be where its wrong) and then then admin inherits mod mod inharits from jrmod jrmod inherits from donator+ donator+ inherits from donator donator inherits from trusted and trusted inherits from user

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #3 on: May 23, 2016, 04:00:05 PM »
How is your group inheritance chain setup?
So u got anything?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Group Targeting
« Reply #4 on: May 23, 2016, 04:21:35 PM »
Is this DarkRP?
Have you disabled FAdmin?
Once you get to know me, you'll find you'll have never met me at all.

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #5 on: May 23, 2016, 04:29:31 PM »
Is this DarkRP?
Have you disabled FAdmin?
This is darkrp and no I have not disabled it, but thats not the problem, they can also still bring me and the groups higher then them

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Group Targeting
« Reply #6 on: May 23, 2016, 05:17:49 PM »
It goes Owner Inherits from SuperAdmin Superadmin inherits from admin, SeniorAdmin Inherits from admin (that might be where its wrong) and then then admin inherits mod mod inharits from jrmod jrmod inherits from donator+ donator+ inherits from donator donator inherits from trusted and trusted inherits from user
Branching inheritance trees like yours require specific can_target configurations to work---the !% specifier is only built to follow a linear tree. Instead, you will have to manually specify all groups that should be target-able by the group in a comma-separated list, prefixed with #.

Example:
Say you have 4 groups. You want group11 to only be able to target groups below it.
inheritance treegroup11 -
(top)    | - group2 - group3
group01 -
can_target list for group11#group2, #group3
bw81@ulysses-forums ~ % whoami
Homepage

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #7 on: May 23, 2016, 06:46:13 PM »
Branching inheritance trees like yours require specific can_target configurations to work---the !% specifier is only built to follow a linear tree. Instead, you will have to manually specify all groups that should be target-able by the group in a comma-separated list, prefixed with #.

Example:
Say you have 4 groups. You want group11 to only be able to target groups below it.
inheritance treegroup11 -
(top)    | - group2 - group3
group01 -
can_target list for group11#group2, #group3
How to i edit the tree?

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #8 on: May 25, 2016, 05:59:17 AM »
bump, someone pls help!

Offline OpticPotatOS

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 0
  • GLaDOS
    • Gaming for Everyone
Re: Group Targeting
« Reply #9 on: May 25, 2016, 10:09:42 AM »
Why have an owner group? Just use superadmin, I never understand that mentality.

You can edit in the inheritance tree in your groups.txt in garrysmod/data/ulx (I think that's the directory, not sure).
My website isn't my website, rather, it's the gaming network my sever is connected to.

ttt.gfe.nu

Unforeseen Consequences

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #10 on: May 25, 2016, 10:20:38 AM »
Why have an owner group? Just use superadmin, I never understand that mentality.

You can edit in the inheritance tree in your groups.txt in garrysmod/data/ulx (I think that's the directory, not sure).
Thats not where it is
Theres no file with the ranks in it

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Group Targeting
« Reply #11 on: May 25, 2016, 10:49:50 AM »
Thats not where it is
Theres no file with the ranks in it
Nooooo. Do not manually edit data files unless told how to!
Your inheritance tree is what you said earlier. x inherits from y, y inherits from z, and so on. If you make a linear, non-branching tree using the ULX menu, that will work, or you can do what I told you if you want to keep your inheritance format but fix targeting.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Group Targeting
« Reply #12 on: May 25, 2016, 08:10:34 PM »
This is darkrp and no I have not disabled it, but thats not the problem, they can also still bring me and the groups higher then them

That's one of the issues leaving FAdmin enabled does.
Lemme guess, they can physgun you too, right?
Once you get to know me, you'll find you'll have never met me at all.

Offline TylerPlays

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Group Targeting
« Reply #13 on: May 25, 2016, 09:00:04 PM »
That's one of the issues leaving FAdmin enabled does.
Lemme guess, they can physgun you too, right?
Ya they can

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Group Targeting
« Reply #14 on: May 26, 2016, 01:38:17 PM »
Ok, so disable FAdmin and see if it fixes your problem. If it still does, then we can look at your inheritance trees/perms/etc..
« Last Edit: May 26, 2016, 01:39:56 PM by Caustic Soda-Senpai »
Once you get to know me, you'll find you'll have never met me at all.