ULX

Author Topic: Need help with my groups  (Read 3724 times)

0 Members and 1 Guest are viewing this topic.

Offline gdavis480

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Need help with my groups
« on: December 09, 2009, 11:11:16 AM »
I'm not sure if this is the right area. But I need help with my groups. All my groups work except for one group. The groups that isn't working is the user group. It shows as Unassigned, instead of Visitor.

groups.txt
Code: [Select]
"owner"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx hiddenecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx userallow"
"ulx adminmenu"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
"ulx seeasay"
"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 votemap"
"ulx armorme"
"ulx asay"
"ulx clientmenu"
"ulx godme"
"ulx help"
"ulx hpme"
"ulx kickme"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx ragdollme"
"ulx teleportme"
"ulx thetime"
"ulx ungodme"
"ulx unragdollme"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx whipme"
"ulx who"
}
}
"superadmin"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx hiddenecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx userallow"
}
"inherit_from" "admin"
}
"admin"
{
"allow"
{
"ulx adminmenu"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
}
"inherit_from" "operator"
}
"respected"
{
   "deny"
   {
   }
   "allow"
   {
"ulx mute"
"ulx unmute"
"ulx gag"
  "ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx unignite"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx hp"
"ulx armor"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx goto"
"ulx teleport"
"ulx kick"
"ulx spectate"
"ulx vote"
"ulx armorme"
"ulx asay"
"ulx clientmenu"
"ulx godme"
"ulx help"
"ulx hpme"
"ulx kickme"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx ragdollme"
"ulx teleportme"
"ulx thetime"
"ulx ungodme"
"ulx unragdollme"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx whipme"
"ulx who"
}
}
"regular"   
{
   "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 votemap"
"ulx armorme"
"ulx asay"
"ulx clientmenu"
"ulx godme"
"ulx help"
"ulx hpme"
"ulx kickme"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx ragdollme"
"ulx teleportme"
"ulx thetime"
"ulx ungodme"
"ulx unragdollme"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx whipme"
"ulx who"
}
}
"user"
{
   "deny"   
   {
   }
   "allow"   
   {
"ulx asay"
"ulx clientmenu"
"ulx help"
"ulx kickme"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx ragdollme"
"ulx thetime"
"ulx unragdollme"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx whipme"
"ulx who"
}
}
"operator"
{
"allow"
{
"ulx seeasay"
}
"inherit_from" "user"
}


Uteam.txt
Code: [Select]
   "Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Server Owner"
         "group"      "owner"
         "armor"      "1000"
         "hp"      "1000"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "205"
            "r"      "50"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:500"
         }
      }
      "2"
      {
         "name"      "Super Admin"
         "group"     "superadmin"
         "armor"     "700"
         "hp"        "700"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "255"
            "r"      "0"
         }
      }
      "3"
      {
         "name"      "Admins"
         "group"     "admin"
         "armor"     "550"
         "hp"        "550"
         "color"
         {
            "a"      "238"
            "B"      "0"
            "g"      "178"
            "r"      "0"
         }
      }
      "4"
      {
         "name"      "Moderators"
         "group"     "operator"
         "armor"     "550"
         "hp"        "550"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "0"
            "r"      "153"
         }
      }
      "5"
      {
         "name"      "Respected"
         "group"     "respected"
         "armor"     "500"
         "hp"        "500"
         "color"
         {
            "a"      "255"
            "B"      "64"
            "g"      "125"
            "r"      "255"
         }
      }
      "6"
      {
         "name"      "Regular"
         "group"     "regular"
         "armor"     "200"
         "hp"        "200"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "69"
            "r"      "255"
         }
      }
      "7"
      {
         "name"      "Visitor"
         "group"     "user"
         "armor"     "100"
         "hp"      "100"
         "color"
         {
            "a"      "255"
            "B"      "237"
            "g"      "149"
            "r"      "100"
         }
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

Offline Tommo1590

  • Newbie
  • *
  • Posts: 37
  • Karma: 1
Re: Need help with my groups
« Reply #1 on: December 09, 2009, 12:21:54 PM »
mine have always said unassigned... never been able to fix it.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Need help with my groups
« Reply #2 on: December 09, 2009, 02:46:52 PM »
UTeam might simply not check for that case.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need help with my groups
« Reply #3 on: December 09, 2009, 05:05:21 PM »
Correct me if I'm wrong megiddo, but, does ULib/ULX even truly see a group "user"
Yes, sure, there's a 'user' in the ULib groups.txt that every person who joins a server gets assigned to the commands in the 'user' group if they aren't part of the users.txt; but, without them being entered into users.txt as part of the 'user' group, can they be "<player>:IsUserGroup("user")
I don't think they can, which is why UTeam (or any other) would fail.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline gdavis480

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Need help with my groups
« Reply #4 on: December 09, 2009, 05:08:09 PM »
It was working 2 days ago before someone crashed my server. Now it's not working.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need help with my groups
« Reply #5 on: December 09, 2009, 11:44:25 PM »
If I remember correctly... ULX assigned everyone to user. If you were a superadmin, you would be in 2 groups "superadmin" and "user"

Then UTeam would take whichever group came first. Therefore placing players in higher groups into those teams.

I always used UTeam to assign names and colors to my 'guest' group.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Need help with my groups
« Reply #6 on: December 10, 2009, 05:32:20 AM »
Mr President is right, everyone is assigned to the group user behind the scenes.
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need help with my groups
« Reply #7 on: December 10, 2009, 10:36:36 AM »
which is why ply:IsUserGroup("user") wouldn't work to detect guests over others, because everyone is a user, and not just people who have no other groups.

I always wished for an easy way to detect if a player was a user and nothing else because I always hated doing the following to restrict things from users...
Code: [Select]
if !ply:IsAdmin() and !ply:IsUserGroup("Member") and !ply:IsUserGroup("dontator") then

but I would always write a player meta to do that for me... i'd just have to remember to update the meta if I changed my group structure any...

meh!

Offline tassieboy

  • Newbie
  • *
  • Posts: 12
  • Karma: -1
Re: Need help with my groups
« Reply #8 on: December 10, 2009, 05:21:19 PM »
i managed to get my normal users to show as players on the sui score board  in my groups file i have a list of allow this the name none given to it my user allow/deny inherits that list then it just keeps going up member/admin/owner each inherits the previous one

then i just added my self to owner (edited the users.text that's in data/ulib) and made my self owner proceed in game and created the admin and member groups  easy as pie :)

if you really need help i can post my groups.txt for you to look at

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Need help with my groups
« Reply #9 on: December 10, 2009, 06:29:14 PM »
MrPresident, you might like new ULib SVN.
http://ulyssesmod.net/docs/files/lua/ULib/shared/sh_ucl-lua.html#Player:GetUserGroup
Should return 'highest' group player is a member of, even if user. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Need help with my groups
« Reply #10 on: December 10, 2009, 07:32:16 PM »
MrPresident, you might like new ULib SVN.
http://ulyssesmod.net/docs/files/lua/ULib/shared/sh_ucl-lua.html#Player:GetUserGroup
Should return 'highest' group player is a member of, even if user. :)


I should mention this is possible because a user is only allowed to a member of a single group in ULib svn, where in ULib release users can be in any number of groups... headache!
« Last Edit: December 11, 2009, 08:16:08 AM by Megiddo »
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Need help with my groups
« Reply #11 on: December 10, 2009, 09:33:38 PM »
I saw that, havnt had much time to look at the SVN though.. pretty excited to try it though.