ULX

Author Topic: Group rank and admin trouble.  (Read 4448 times)

0 Members and 1 Guest are viewing this topic.

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Group rank and admin trouble.
« on: August 25, 2009, 12:23:46 AM »
First off, I go into my server and into the server consol and type ulx debuginfo, so i cant show it to you guys, but it says access denied. I have added a new rank order with owner,superadmin, admin, vip, regualr, and user, which im sure is my problem but i cant understand why im not set to owner.  These are the text files thanks for reading and your help.
Quote
"Owner"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "ulx adduserid"
      "ulx removeuser"
      "ulx userallow"
      "ulx userdeny"
      "ulx addgroup"
      "ulx removegroup"
      "ulx groupallow"
      "ulx groupdeny"
      "overcomeimmunity"
   }
   "inherit_from"   
   {
      "SuperAdmin"
   }
}
"SuperAdmin"   
{
   "deny"   
   {
   }
   "allow"   
   {   "ulx adduser"
      "ulx adduserid"
      
   }
   "inherit_from"   
   {
      "Admin"
   }
}
"Admin"   
{
   "deny"   
   {
   }
   "allow"   
   {"ulib_passtime"
      "ulib_passtimeout"
      "ulx spawnecho"
      "ulx tsay"
      "ulx csay"
      "ulx gimp"
      "ulx mute"
      "ulx ungimp"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx chattime"
      "ulx welcomemessage"
      "ulx slap"
      "ulx whip"
      "ulx slay"
      "ulx sslay"
      "ulx ignite"
      "ulx unignite"
      "ulx playsound"
      "ulx freeze"
      "ulx unfreeze"
      "ulx god"
      "ulx ungod"
      "ulx noclip"
      "ulx hp"
      "ulx armor"
      "ulx cloak"
      "ulx uncloak"
      "ulx blind"
      "ulx unblind"
      "ulx jail"
      "ulx unjail"
      "ulx ghost"
      "ulx unghost"
      "ulx ragdoll"
      "ulx unragdoll"
      "ulx maul"
      "ulx strip"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx mapsmenu"
      "ulx showmotd"
      "ulx banmenu"
      "ulx exec"
      "ulx rslotsmode"
      "ulx rslots"
      "ulx rslotsvisible"
      "ulx reservedslots"
      "ulx bring"
      "ulx goto"
      "ulx send"
      "ulx teleport"
      "ulx tooldeny"
      "ulx toolallow"
      "ulx tooldenyuser"
      "ulx toolallowuser"
      "ulx tooldenyoverride"
      "ulx map"
      "ulx kick"
      "ulx ban"
      "ulx banid"
      "ulx unban"
      "ulx spectate"
      "ulx physgunplayer"
      "ulx voteban"
      "ulx veto"
      "ulx voteecho"
      "ulx votemap2successratio"
      "ulx votemap2minvotes"
      "ulx votekicksuccessratio"
      "ulx votekickminvotes"
      "ulx votebansuccessratio"
      "ulx votebanminvotes"
      "ulx votemapenabled"
      "ulx votemapmintime"
      "ulx votemapwaittime"
      "ulx votemapsuccessratio"
      "ulx votemapminvotes"
      "ulx votemapvetotime"
      "ulx votemapmapmode"
      "ulx votemapaddmap"
      "ulx seeasay"
   }
   "inherit_from"   
   {
      "VIP"
   }
}
"VIP"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx votekick"
      "ulx csay"
   }
   "inherit_from"   
   {
      "Regular"
   }
}
"Regular"   
{
   "deny"   
   {
   }
   "allow"   
   {
   "ulx vote"
   "ulx votemap2"
   "ulx votemap"
      
   }
   "inherit_from"   
   {
      "user"
   }
}


"user"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx"
      "ulx help"
      "ulx psay"
      "ulx asay"
      "ulx thetime"
      "ulx menu"
      "ulx_valueupdate"
      "ulx_cvar"
      "ulx_getgamemodes"
      "ulx motd"
      "ulx_getbans"
      "ulx usermanagementhelp"
      "ulx who"
      "ulx debuginfo"
      
   }
   "inherit_from"   
   { none
   }
}

"none"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx logecho"
      "ulx logfile"
      "ulx logevents"
      "ulx logchat"
      "ulx logspawns"
      "ulx logspawnsecho"
      "ulx logdir"
      "ulx addgimpsay"
      "ulx addadvert"
      "ulx addcsayadvert"
      "ulx addforceddownload"
      
      
   }
   "inherit_from"   
   {
   }
this is the users file from when before i changed the groups but i have changed it from superadmin to owner since in my line up superadmin is second
Quote
"[PS] rathat"   
{
   "deny"   
   {
   }
   "type"   "steamid"
   "groups"   
   {
      "owner"
   }
   "id"   "STEAM_0:1:11814400"
   "pass"   ""
   "allow"   
   {
      "ulx hasreadhelp"
   }
}

not sure if this helps but the uteams file
Quote
"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Owner"
         "group"      "Owner"
         "armor"      "2000"
         "hp"      "2000"
         "color"
         {
            "a"      "255"
            "B"      "61"
            "g"      "61"
            "r"      "61"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:500"
         }
      }
      "2"
      {
         "name"      "SuperAmins"
         "group"      "superadmin"
         "armor"      "1000"
         "hp"      "1000"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "0"
            "r"      "255"
         }
      }
      "3"
      {
         "name"      "Admin"
         "group"      "Admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "153"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "VIP"
         "group"      "VIP"
         "armor"      "250"
         "hp"      "250"
         "color"
         {
            "a"      "255"
            "B"      "204"
            "g"      "0"
            "r"      "0"
         }
      }
      "5"
      {
         "name"      "Regular"
         "group"      "Regular"
         "armor"      "175"
         "hp"      "175"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "102"
            "r"      "0"
         }
      }
      "6"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "255"
            "r"      "153"
         }
         "model"      "male1"
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

thank you so much for reading and helping me out. I have been working non stop for 2 days on this server to set it up. and sorry again that I can't get the debug info, it just wont let me, I tried putting the debug info in the user allows but it didnt help after a restart. thank you. :) :) :) :)




Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: Group rank and admin trouble.
« Reply #1 on: August 25, 2009, 02:23:15 AM »
In your group set "Owner" as "owner" since it's case sensitive. Also edit your UTeam file so that "group" is set to "owner". Try that and let me know what happens. If you type ulx debuginfo into server console it HAS to work, if it doesn't some thing is wrong with your ulx (unless you are doing it client side)... but try the first step first..

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #2 on: August 25, 2009, 02:32:58 AM »
case sensitive?...... I wish i had known that lol. also when i type it, I don't have admin so thats why it wont work.  :-\

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: Group rank and admin trouble.
« Reply #3 on: August 25, 2009, 02:35:09 AM »
Well if ulx debuginfo is run via the server console, you dont have to be an admin, you dont even need to be connected to the server ;) So i take it the groups worked fine?

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #4 on: August 25, 2009, 02:55:25 AM »
nope still the same, like its not even there

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: Group rank and admin trouble.
« Reply #5 on: August 25, 2009, 02:57:23 AM »
So in server console you type "ulx adduser rathat owner" ? Through the server console in the Game Panel, not in your garrys mod game.

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #6 on: August 25, 2009, 04:08:02 AM »
yes, it says "Invalid group!" dont know why.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Group rank and admin trouble.
« Reply #7 on: August 25, 2009, 04:25:13 AM »
"Owner" or "owner"? You you need to make the group name in the groups.txt file lower case. Idk if it still causes conflict after the recent updates, but if you running the latest stable release (not svn) you need to make it lower case.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #8 on: August 25, 2009, 01:06:16 PM »
Its all lowercase now, tripple checked. Still says invalid group is something wrong with the way the groups in the file are set up?

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #9 on: August 25, 2009, 01:18:55 PM »
also do i need to do something with this? saw it in the gmod wiki but not sure what it is

"If you wish, you may also add non-standard groups. Any group added to users.txt can be detected using Player.IsUserGroup()"

this is the users.txt from gmod settings
Code: [Select]
"Users"
{

 
"owner"
{
"[PS]rathat" "STEAM_0:1:11814400"
}
 

}

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: Group rank and admin trouble.
« Reply #10 on: August 25, 2009, 01:26:09 PM »
Make a backup of your groups.txt file. Remove the groups.txt file and misc_registered.txt from data/ulib then restart the server. Try and add your self to "superadmin" and check that works...

EDIT: The user.txt file doesn't have to be filled in.
« Last Edit: August 25, 2009, 01:38:52 PM by bennie900 »

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: Group rank and admin trouble.
« Reply #11 on: August 25, 2009, 01:47:39 PM »
After reviewing your code again, i found that there was no closing braket '}' at the end of your group file for the group "none". I fixed your file, and changed the group names to lowercase:

Code: [Select]
"owner"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "ulx adduserid"
      "ulx removeuser"
      "ulx userallow"
      "ulx userdeny"
      "ulx addgroup"
      "ulx removegroup"
      "ulx groupallow"
      "ulx groupdeny"
      "overcomeimmunity"
   }
   "inherit_from"   
   {
      "superadmin"
   }
}
"superadmin"   
{
   "deny"   
   {
   }
   "allow"   
   {   "ulx adduser"
      "ulx adduserid"
     
   }
   "inherit_from"   
   {
      "admin"
   }
}
"admin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulib_passtime"
      "ulib_passtimeout"
      "ulx spawnecho"
      "ulx tsay"
      "ulx csay"
      "ulx gimp"
      "ulx mute"
      "ulx ungimp"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx chattime"
      "ulx welcomemessage"
      "ulx slap"
      "ulx whip"
      "ulx slay"
      "ulx sslay"
      "ulx ignite"
      "ulx unignite"
      "ulx playsound"
      "ulx freeze"
      "ulx unfreeze"
      "ulx god"
      "ulx ungod"
      "ulx noclip"
      "ulx hp"
      "ulx armor"
      "ulx cloak"
      "ulx uncloak"
      "ulx blind"
      "ulx unblind"
      "ulx jail"
      "ulx unjail"
      "ulx ghost"
      "ulx unghost"
      "ulx ragdoll"
      "ulx unragdoll"
      "ulx maul"
      "ulx strip"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx mapsmenu"
      "ulx showmotd"
      "ulx banmenu"
      "ulx exec"
      "ulx rslotsmode"
      "ulx rslots"
      "ulx rslotsvisible"
      "ulx reservedslots"
      "ulx bring"
      "ulx goto"
      "ulx send"
      "ulx teleport"
      "ulx tooldeny"
      "ulx toolallow"
      "ulx tooldenyuser"
      "ulx toolallowuser"
      "ulx tooldenyoverride"
      "ulx map"
      "ulx kick"
      "ulx ban"
      "ulx banid"
      "ulx unban"
      "ulx spectate"
      "ulx physgunplayer"
      "ulx voteban"
      "ulx veto"
      "ulx voteecho"
      "ulx votemap2successratio"
      "ulx votemap2minvotes"
      "ulx votekicksuccessratio"
      "ulx votekickminvotes"
      "ulx votebansuccessratio"
      "ulx votebanminvotes"
      "ulx votemapenabled"
      "ulx votemapmintime"
      "ulx votemapwaittime"
      "ulx votemapsuccessratio"
      "ulx votemapminvotes"
      "ulx votemapvetotime"
      "ulx votemapmapmode"
      "ulx votemapaddmap"
      "ulx seeasay"
   }
   "inherit_from"   
   {
      "vip"
   }
}
"vip"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx votekick"
      "ulx csay"
   }
   "inherit_from"   
   {
      "regular"
   }
}
"regular"   
{
   "deny"   
   {
   }
   "allow"   
   {
   "ulx vote"
   "ulx votemap2"
   "ulx votemap"
   }
   "inherit_from"   
   {
      "user"
   }
}
"user"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx"
      "ulx help"
      "ulx psay"
      "ulx asay"
      "ulx thetime"
      "ulx menu"
      "ulx_valueupdate"
      "ulx_cvar"
      "ulx_getgamemodes"
      "ulx motd"
      "ulx_getbans"
      "ulx usermanagementhelp"
      "ulx who"
      "ulx debuginfo"
     
   }
   "inherit_from"   
   { none
   }
}
"none"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx logecho"
      "ulx logfile"
      "ulx logevents"
      "ulx logchat"
      "ulx logspawns"
      "ulx logspawnsecho"
      "ulx logdir"
      "ulx addgimpsay"
      "ulx addadvert"
      "ulx addcsayadvert"
      "ulx addforceddownload"
     
     
   }
   "inherit_from"   
   {
   }
}

and Uteam file:

Code: [Select]
"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Owner"
         "group"      "owner"
         "armor"      "2000"
         "hp"      "2000"
         "color"
         {
            "a"      "255"
            "B"      "61"
            "g"      "61"
            "r"      "61"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:500"
         }
      }
      "2"
      {
         "name"      "SuperAmins"
         "group"      "superadmin"
         "armor"      "1000"
         "hp"      "1000"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "0"
            "r"      "255"
         }
      }
      "3"
      {
         "name"      "Admin"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "153"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "VIP"
         "group"      "vip"
         "armor"      "250"
         "hp"      "250"
         "color"
         {
            "a"      "255"
            "B"      "204"
            "g"      "0"
            "r"      "0"
         }
      }
      "5"
      {
         "name"      "Regular"
         "group"      "regular"
         "armor"      "175"
         "hp"      "175"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "102"
            "r"      "0"
         }
      }
      "6"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "255"
            "r"      "153"
         }
         "model"      "male1"
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

Let me know what happens.


Offline [WCA]AIDS

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 7
    • PlanetWCA Forums
Re: Group rank and admin trouble.
« Reply #12 on: August 25, 2009, 02:07:21 PM »
There is an error in your superadmin group.

Code: [Select]
"superadmin"  
{
   "deny"  
   {
   }
   "allow"  
   {   "ulx adduser"
      "ulx adduserid"
     
   }
   "inherit_from"  
   {
      "admin"
   }
}
Needs to be changed to
Code: [Select]
"superadmin"  
{
"deny"  
{
}
"allow"  
{
"ulx adduser"
"ulx adduserid"
}
"inherit_from"  
{
"admin"
}
}
« Last Edit: August 25, 2009, 02:08:57 PM by [WCA]AIDS »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Group rank and admin trouble.
« Reply #13 on: August 25, 2009, 02:09:24 PM »
Yup, bennie and [WCA] are both correct on their finds :D
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline rathat

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Group rank and admin trouble.
« Reply #14 on: August 25, 2009, 03:33:32 PM »
It works! thank you guys so much for your help I really appreciate it. :) :) :) :) :) :)