Author Topic: Need !menu help on ULX!  (Read 9176 times)

0 Members and 1 Guest are viewing this topic.

Offline Unlimited

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Need !menu help on ULX!
« on: June 28, 2011, 06:10:14 AM »
Hey guys, i didnt want superadmins to be as powerful as they are coming straight out of ulx. I made a new group called "owners" and moved myself into it. I tried to delete the superadmins permission to modify group settings. It said doing this will remove this power from you and you will not be abl to grant yourself this power back without console use. I did it anyways thinking it was a glitch because i wasnt in the superadmin class anymore. Now my ULX !menu only has 3 tabs on it instead of all the things. Can someone please tell me what to type to fix this? :3

PS: I tried uninstalling it but it seemed to have saved the info in a different database because it still had all of my information saved.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need !menu help on ULX!
« Reply #1 on: June 28, 2011, 08:40:40 AM »
Superadmin is a default group that many addons use to recognize you as an administrator of the server. Here is the deal...

If you want to have an owner group you need to set the permissions you want for every superadmin to have and then create your 'owner' group. You MUST inherit superadmin in your owner group. Simply giving the owner group all the permissions is not enough. Most addons will not know that your owner group is an admin unless it inherits admin or superadmin.



Your best option yet... (this is what i do) is to keep superadmin as your top level. Rename it Owner using UTeam or whatever, but keep superadmin as the group. Create a group right under it that inherits admin and have that be your 'second in command' group.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Need !menu help on ULX!
« Reply #2 on: June 28, 2011, 08:42:18 AM »
Firstly, when you created the owner group and had it inherit permissions from superadmin, all of the permissions in your owner group are reflected in the superadmin group-- therefore, if you remove accesses from superadmin, then it removes them from owner too. If you want to delete your superadmin group entirely and keep the permissions in a higher group, you'll have to grant access to each command ON TOP of the access inherited from superadmin (this can be done by right-clicking on a permission that has a grayed out checkbox, and then click "Grant access on top of <inherited group>").


To give you back your access to these commands, you must use the following command from the server console:
Code: [Select]
ulx groupallow owner "ulx groupallow"Alternatively, you can reset all of the groups to default, which you can do by deleting the garrysmod/data/ulib/groups.txt file (and maybe the garrysmod/data/ulib/users.txt file if you need to reset the users too), then complete a changelevel.


Also, it's really not recommended to delete your superadmin group because I believe some non-ULX addons only check the admin and superadmin groups for access, so those could break. Plus you don't have to mess with permissions as much if you keep it ;)


EDIT: Ninja'd!  :o
« Last Edit: June 28, 2011, 08:44:04 AM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need !menu help on ULX!
« Reply #3 on: June 28, 2011, 12:16:05 PM »
You gotta be quick Stickly. Lives depend on fast customer support!!!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need !menu help on ULX!
« Reply #4 on: June 28, 2011, 04:11:28 PM »
So, basically Unlimited, what we're all saying is in simplest form.
1) Don't delete superadmin. Superadmin IS Owner as far as 99% of gmod scripts go, not just ULX.
2) If you have a custom scoreboard that shows 'team' names, ULX allows for tying team names to group names. Make a team called owner, tie it to superadmin

3) Welcome to the Ulysses community. Glad to meet you.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need !menu help on ULX!
« Reply #5 on: June 28, 2011, 06:30:26 PM »
^^ What he said...

Is it just me or do you find that as a programmer or technical expert it's hard to convey your ideas to the end user sometimes? In my head I will say something that to me makes perfect sense but it sometimes takes someone with a little more literal prowess to make it able to be understood. Oh well.. that's what PR guys are for.. ehh ehh?! ;)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need !menu help on ULX!
« Reply #6 on: June 28, 2011, 06:41:55 PM »
I can read code like no tomorrow.
Write, meh, not as quick (only when inspired)

Good thing. Most devs here speak code even when trying to convey an answer. :P
Someone has to translate. :D

Unlimited, any more questions? We really don't mean to hijack your help requests.
We're just a chatty bunch.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given