ULX

Author Topic: Groups.txt is not working  (Read 3103 times)

0 Members and 1 Guest are viewing this topic.

Offline YoUrWoRsTnIgHtMaRe

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Groups.txt is not working
« on: May 24, 2009, 11:46:23 PM »
Hey, I'm trying to add a new group to groups.text,but its not working. It says group does not exist. When I add the new group, it says that other groups don't exist either. Only Superadmin doesn't get affected. !menu won't bring up the menu, but when I put it back to normal, everything works. It is in Garrysmod/data/ulib/groups.txt Please review and tell me what is wrong.
Please help

Code: [Select]
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"superadmin"
{
"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"
{
"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 vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"vip"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx usermanagementhelp"
"ulx_getbans"
"ulx who"
"ulx votemap"
"rp_physgun 1"
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx usermanagementhelp"
"ulx_getbans"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"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"
"ulx debuginfo"
"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"
}
"inherit_from"
{
}
« Last Edit: May 24, 2009, 11:48:15 PM by YoUrWoRsTnIgHtMaRe »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt is not working
« Reply #1 on: May 25, 2009, 07:28:13 AM »
Your VIP "alllow" group is missing a closing bracket.
Your VIP group is missing it's inheritance portion (it doesn't _have_ to inherit from anything (see operator), but I think the inherit from key has to be there)
Your "none" group is missing its very end bracket (but you might have missed that on copy pasting)

Get Notepad++, or Context and download it's lua addition. This can help you find non closed quotes and brackets.
« Last Edit: May 25, 2009, 07:33:31 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline YoUrWoRsTnIgHtMaRe

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Groups.txt is not working
« Reply #2 on: May 25, 2009, 09:16:07 AM »
Well its still not working, I fixed everytihng you told me too, and I also downloaded Notepad ++ but I still couldn't find the LUA addon you were talking about. The same problems as above. To add groups do I just have to edit this file? Or do I have to edit multiple files?
Code: [Select]
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"superadmin"
{
"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"
{
"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 vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"vip"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx usermanagementhelp"
"ulx_getbans"
"ulx who"
"ulx votemap"
"rp_physgun 1"
}
"inherit_from"
{
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx usermanagementhelp"
"ulx_getbans"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"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"
"ulx debuginfo"
"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"
}
"inherit_from"
{

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt is not working
« Reply #3 on: May 25, 2009, 08:21:03 PM »
Well its still not working, I fixed everytihng you told me too,

Because you fixed some things, and broke others.
Brackets have to be just right.
In your latest code post, you have a closing bracket above operators, and are missing one open and two closing at the end of "none"'s inherit area.
Seriously, check your syntax.

and I also downloaded Notepad ++ but I still couldn't find the LUA addon you were talking about.
Context requires additional download, Notepad already has Lua editing, select "Lua" from the Language menu of Notepad++. It will place minus signs besides opening brackets. If you click a minus below one group name, and it takes away more than just that groups area, you're missing brackets.

To add groups do I just have to edit this file? Or do I have to edit multiple files?

Technically, you never have to touch the data/ULib/groups.txt file. Though it makes it easier (well, at least in most cases) if you're going to give an individual custom group many non-standard permissions.
We recommend using only the ULX commands for user management, or as our latest SVN readme.txt file suggests, a link to how to edit gmod/settings/users.txt - which includes Garry's default (ULX has nothing to do with it but reads it) way of administrating groups, custom or otherwise.
If you want to use the ULX method, see the "ulx usermanagementhelp" function. It has several commands you can use to add/control additional groups.

Oh, and never instant message anyone here asking "look at my updated post"
We're busy. We'll look when we have time.
« Last Edit: May 25, 2009, 08:22:45 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline YoUrWoRsTnIgHtMaRe

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Groups.txt is not working
« Reply #4 on: May 25, 2009, 08:51:50 PM »
Sorry about the PM I thought you were done with my post after the question, So do I have to learn how to edit the settings/Ulib/users.txt to make any RP commands work? I just really need to give the "vip" groupp double salary for each job, and a physgun. Also, the Notepad ++ is a great thing. Sorry for the Syntax errors, I didn't understand Notepad ++ but now I shouldn't get anymore of those. The groups.txt works now, along with the group, but it doesn't give the person the physgun while in the group. Even after rejoining.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt is not working
« Reply #5 on: May 25, 2009, 09:48:04 PM »
ULX doesn't, by default, set who has what tool and weapons. (aka loadout)
Sorry for you to go through all that trouble just to find out.

URestrict was written by Jay to control loadout and tool control.

No idea what RP does. Does it expect a group named vip?
Why did you create those groups?
Quote from: YoUrWoRsTnIgHtMaRe
So do I have to learn how to edit the settings/Ulib/users.txt to make any RP commands work?

No. Really, no. It gets even more complicated.
From game/server console, ulx adduser <player> <group> ... will add people to <group>
You really should look at "ulx help" and "ulx usermanagementhelp" from the console. It shows ulx commands to use from console. If using a game console, autocomplete will start to help fill in blanks too.

ULib groups should be read just as easily as any scripts using "IsAdmin" "IsSuperadmin" or "IsUserGroup"
Research your RP instructions more carefully, and realize in Lua that VIP, vip, V.I.P. and v.i.p. are 4 totally separate things.
Case sensitivity.

ulx who while in game console will show who's in what group.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming