Author Topic: The Group Tab  (Read 14662 times)

0 Members and 1 Guest are viewing this topic.

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
The Group Tab
« on: April 04, 2013, 06:24:19 PM »
So this is my first post, but I could really use some help with this.

I accidently deleted the superadmin group, thinking it wouldn't delete my newly created owner group, and the owner group doesn't have access to the Group tab, admin settings in Settings tab, or the Bans tab, so I'm asking, how do I fix this?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: The Group Tab
« Reply #1 on: April 04, 2013, 07:18:40 PM »
Quickest way would be to shut server down, delete your server gmod/data/ulib/groups.txt , then restart server and let ULX(Ulib actually through ULX) rebuild your default groups file.
Then if needed, rebuild any other custom groups.

All. Gmod has no idea what 'owner' is. It's a group made up by some mods/admin systems.
Gmod, by default, only knows 'superadmin', 'admin' and (though not officially titled), 'user'.
Don't go deleting any of the default groups, as code within Gmod (even WITHOUT any other mod) looks for those three groups to exist.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #2 on: April 04, 2013, 07:35:08 PM »
Thanks, man! You wouldn't happen to know how to change the scoreboard name of certain ranks, do you?

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #3 on: April 04, 2013, 07:40:18 PM »
This didn't help, and it ended up just removing my ranks with no powers. Is there a specific command or something I can do?

It's not creating the group file, now. Well crap.
« Last Edit: April 04, 2013, 07:43:27 PM by Duke Nukem »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: The Group Tab
« Reply #4 on: April 04, 2013, 07:52:54 PM »
When you restarted your server (not a map change, but actual shutdown, start up), it didn't recreate gmod/data/ulib/groups.txt?
I've read bug reports from Megiddo that mention odd file issues.

You 'might' try copying gmod/addons/ulib/data/ulib/groups.txt to gmod/data/ulib ... then start server back up.
You'll most likely have to rebuild any custom groups.

I've no idea how 'ranks' tie into groups.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #5 on: April 04, 2013, 07:55:33 PM »
When you restarted your server (not a map change, but actual shutdown, start up), it didn't recreate gmod/data/ulib/groups.txt?
I've read bug reports from Megiddo that mention odd file issues.

It didn't, I tried 4 times.


Quote
You 'might' try copying gmod/addons/ulib/data/ulib/groups.txt to gmod/data/ulib ... then start server back up.
You'll most likely have to rebuild any custom groups.

I've no idea how 'ranks' tie into groups.

I'll try that, and alright.

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #6 on: April 04, 2013, 08:01:00 PM »
It worked, thanks!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: The Group Tab
« Reply #7 on: April 04, 2013, 08:07:55 PM »
Don't forget about our newly introduced command, "ulx resettodefaults", JamminR! :)

Example:
Code: [Select]
> ulx resettodefaults
Are you SURE about this? It will remove ulx-created temporary bans, configs, groups, EVERYTHING!
If you're sure, type "ulx resettodefaults FORCE"
> ulx resettodefaults FORCE
Please change levels to finish the reset
(Console) reset all ULX and ULib configuration
Experiencing God's grace one day at a time.

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #8 on: April 04, 2013, 08:09:52 PM »
Don't forget about our newly introduced command, "ulx resettodefaults", JamminR! :)

Example:
Code: [Select]
> ulx resettodefaults
Are you SURE about this? It will remove ulx-created temporary bans, configs, groups, EVERYTHING!
If you're sure, type "ulx resettodefaults FORCE"
> ulx resettodefaults FORCE
Please change levels to finish the reset
(Console) reset all ULX and ULib configuration

Oh cool!

By the way, you wouldn't know how to change the color of certain groups, would you? Like if I wanted to change the color of the name of someone in the superadmin group to yellow?

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: The Group Tab
« Reply #9 on: April 05, 2013, 04:21:55 AM »
what gamemode are you trying to change the colours for?
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #10 on: April 05, 2013, 07:29:39 AM »
what gamemode are you trying to change the colours for?
TTT

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: The Group Tab
« Reply #11 on: April 05, 2013, 03:02:22 PM »
Don't forget about our newly introduced command, "ulx resettodefaults", JamminR! :)

Example:
Code: [Select]
> ulx resettodefaults
Are you SURE about this? It will remove ulx-created temporary bans, configs, groups, EVERYTHING!
If you're sure, type "ulx resettodefaults FORCE"
> ulx resettodefaults FORCE
Please change levels to finish the reset
(Console) reset all ULX and ULib configuration

Nice, but, until we add additional parameters to allow for selective resetting (groups, users, configs, adverts, motd, ...), resetting everything might actually have taken him longer.
As long as he recreates the exact same groups he originally had, all his users will (should anyway) be able to get the exact same access back since we didn't have him delete his users.txt :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: The Group Tab
« Reply #12 on: April 05, 2013, 06:01:48 PM »
TTT

Place this in lua/autorun/server

Code: [Select]
if SERVER then
   AddCSLuaFile("scoreboardcolors.lua")
else
   function MySBColors(ply)
      if ply:IsUserGroup("superadmin") then
         return Color(255, 0, 255, 255) --pink
      end
      if ply:IsUserGroup("admin") then
         return Color(31, 222, 0, 255)--green
      end
   end
   hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end

basicly its a matter choosing the colour and the group
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: The Group Tab
« Reply #13 on: April 05, 2013, 08:04:18 PM »
Place this in lua/autorun/server

Code: [Select]
if SERVER then
   AddCSLuaFile("scoreboardcolors.lua")
else
   function MySBColors(ply)
      if ply:IsUserGroup("superadmin") then
         return Color(255, 0, 255, 255) --pink
      end
      if ply:IsUserGroup("admin") then
         return Color(31, 222, 0, 255)--green
      end
   end
   hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end

basicly its a matter choosing the colour and the group
Sweet, thanks!

Offline Algea

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: The Group Tab
« Reply #14 on: June 14, 2015, 11:25:28 AM »
You 'might' try copying gmod/addons/ulib/data/ulib/groups.txt to gmod/data/ulib ... then start server back up.
You'll most likely have to rebuild any custom groups.

I did this, and also had the same problem by not having any commands, ranks, or maps to choose from. My name is orange in the tab menu as if having superadmin, but have no commands. Could you please help me?
« Last Edit: June 14, 2015, 01:49:46 PM by Algea »
Vivian