Author Topic: Banmenu not working  (Read 3128 times)

0 Members and 1 Guest are viewing this topic.

Offline GLaDOS

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Banmenu not working
« on: October 25, 2009, 04:05:31 AM »
When I try to open my ban menu I get that I dont have access to a command then it gets stuck at loading the menu. I am set as owner.

Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulib_passtime"
"ulib_passtimeout"
"ulx banid"
"ulx rcon"
"overcomeimmunity"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx usermanagementhelp"
"xgui_changeserversettings"
}
"inherit_from"
{
"admin"
}
}
"supermoderator"
{
"deny"
{
}
"allow"
{
"ulx ban"
}
"inherit_from"
{
"moderator"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx motd"
"ulx votekick"
"ulx voteban"
"ulx votemap"
"ulx godme"
"ulx ungodme"
"ulx help"
}
}
"officer"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"superadmin"
}
}
"moderator"
{
"deny"
{
}
"allow"
{
"ulx ragdoll"
"ulx unragdoll"
"ulx strip"
"ulx cloak"
"ulx uncloak"
"ulx gag"
"ulx slap"
"ulx bring"
"ulx whip"
"ulx clientmenu"
"ulx slay"
"ulx mapsmenu"
"ulx freeze"
"ulx jail"
"ulx unjail"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx ghost"
"ulx unghost"
"ulx unfreeze"
"ulx unmute"
"ulx map"
"ulx kick"
"ulx showmotd"
"ulx hp"
"ulx spectate"
"ulx blind"
"ulx maul"
"ulx ignite"
"ulx menu"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"respected"
}
}
"owner"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx banmenu"
}
"inherit_from"
{
"officer"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"elite"
{
"deny"
{
}
"allow"
{
"ulx teleportme"
"ulx vote"
}
"inherit_from"
{
"mega"
}
}
"super"
{
"deny"
{
}
"allow"
{
"ulx ragdollme"
"ulx unragdollme"
}
"inherit_from"
{
"user"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx chattime"
"ulx welcomemessage"
"ulx sslay"
"ulx armor"
"ulx exec"
"ulx send"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx unban"
"ulx physgunplayer"
"ulx votemap2"
"ulx voteban"
"ulx ghost"
"ulx unblind"
"ulx banmenu"
"ulx adminmenu"
"ulx ungag"
"ulx teleport"
"ulx rocket"
"ulx godme"
"ulx ungodme"
"ulx hpme"
"ulx cloakme"
"ulx uncloakme"
"ulx ragdollme"
"ulx unragdollme"
"ulx teleportme"
}
"inherit_from"
{
"supermoderator"
}
}
"uber"
{
"deny"
{
}
"allow"
{
"ulx cloakme"
"ulx uncloakme"
}
"inherit_from"
{
"super"
}
}
"respected"
{
"deny"
{
}
"allow"
{
"ulx unignite"
"ulx goto"
}
"inherit_from"
{
"elite"
}
}
"mega"
{
"deny"
{
}
"allow"
{
"ulx playsound"
"ulx hpme"
}
"inherit_from"
{
"uber"
}
}
"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: Banmenu not working
« Reply #1 on: October 25, 2009, 10:14:30 AM »
Let's take one problem at a time..first, the hang when you run the command.

How large is your \data\ulx\bans.txt? (or, i forget, it might be \data\ulib\bans)
If ~64mb... it's corrupted with known bug in ULX 3.4.
Players with \\ in names corrupt ban file (and adduser would do same)
You can find a text editor that edits large files and remove the slashes.
Or, rename bans.txt to something else (oldbans.txt)
You won't lose permanent bans, only temporary ones.

If it's not large...how big is it?
Open it, see if there's a whole bunch of \\\\\\\\\ somewhere.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline GLaDOS

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Banmenu not working
« Reply #2 on: October 25, 2009, 01:59:23 PM »
My ban file is 670 bytes (0.65KB) and has no slashes or anything.

Code: [Select]
"STEAM_0:1:27206393"
{
"unban" "1256999559"
"admin" "»??« | GLaDOS [AUS] [Sim](STEAM_0:1:20359225)"
"time" "1256459499"
"reason" "MINGE"
}
"STEAM_0:1:13774038"
{
"time" 1256468429
"unban" 1256470229
"admin" "[NG]xXDr.FeelgoodXx(STEAM_0:1:13774038)"
"name" "[NG]xXDr.FeelgoodXx"
"reason" "(glados is controlling me!)"
}
"STEAM_0:0:22108237"
{
"unban" "1256986345"
"admin" "»??« | GLaDOS [AUS] [Sim](STEAM_0:1:20359225)"
"time" "1256446285"
"reason" "minge"
}
"STEAM_0:0:22927216"
{
"time" "1256378363"
"unban" "0"
"admin" "»??« | GLaDOS [AUS](STEAM_0:1:20359225)"
"name" "|TTG| Spiritbomb"
"reason" ""
}

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Banmenu not working
« Reply #3 on: October 25, 2009, 10:15:34 PM »
You only have 4 temporary bans on your server?
Seems nominal.
Anyway, ban file doesn't seem to be the problem.
In a notepad++ of my own, I've ordered your groups from top to bottom in order of inheritance.
(Wow, you have a mess of groups. My opinion of course, it should all work. I just consider having so many groups, especially one called superadmin, and one called super, a bit... overdone?)
Anyway, on to troubleshooting.
Though it shouldn't matter, you have some commands in multiple groups that, in theory, could cause oddities.
I don't know how you edited your group access. If you did it manually through a file editor... fine... be careful editing again. If you used ULX commands, you should know how to remove commands just like you edited them.
If manually, make sure server isn't running.

These steps are not guaranteed to fix your problem... but they shouldn't hurt.
Many are oddities you may not be aware of within your (imo, messy) groups.txt.

1) Does ULX see you as 'owner'... can you perform those actions listed within your owner allow list?

2) Do you realize no groups you've created can see your '@' /asay chat? (Even know what that is?)
"@hello" in chat, or "ulx asay hello" would say hello to anyone you wish
It's like being able to talk among your privledged members without general users seeing it.
You're operator group has "ulx seeasay", but no group inherits operator.

3) You have "ulx banmenu" in both owner and admin group allows.
Pick one instead of both. Correct which you actually want to have it.

4) You have "ulx ban" and "ulx banid" in lower groups than banmenu... why?
Are you wanting to prevent lower groups from having a GUI, but still be able to ban?
If you wish ban access only to those who also have banmenu access... move "ulx ban", "ulx banid" and "ulx unban" to the same group's allow list you have banmenu in. If you DO wish GUI to be separate from the actual ability to ban... at least place those three (ban, banid, and unban) in the same group instead of spread among three.

5) "Super" group inherits "user". Though, this shouldn't matter, remove the "user" line and try anyway.
"user" is inherited by default for any group not specified otherwise (see operator group for example)

Thats all I remember for now. I've been distracted and it's taken me ~hour to write the above.
Family's in town visiting..sorry. Start with those, see if you have other duplicate allow permissions in more than one group.



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

Offline GLaDOS

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Banmenu not working
« Reply #4 on: October 25, 2009, 11:48:09 PM »
1) Yes ULX does see me as owner and I can do those commands.

2)Fixed that, well I actually got rid of the operator group entirely because I dont use it.

3)Fixed, banmenu was in owner cause I was experimenting trying to get it to work.

4)The reason I have them all apart is because I want the supermoderator to be able to ban but I dont want them to have "ulx unban" and "ulx banid" because then they could go has some fun banning random ids (or some not so random) and unbanning people. And I thought that the banmenu just listed all the bans and gave you an option to unban them.

5)Fixed

I also reorganized my groups.txt properly.
Owner (owner)
Clan Officer (officer)
Super Admin (superadmin)
Admin (admin)
Super Moderator (supermoderator)
Moderator (moderator)
Respected (respected)
Elite Players (elite)
Mega Players (mega)
Uber Players (uber)
Super Players (super)
Players (user)

Offline GLaDOS

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Banmenu not working
« Reply #5 on: October 26, 2009, 12:07:34 AM »
Well I found the problem you need the "ulx_getbans" command. Thanks for the help anyway, cleaned up my groups.txt for easier use.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Banmenu not working
« Reply #6 on: October 26, 2009, 12:22:46 AM »
Glad I could help a bit, even if not directly
Here was what I was going to post before you added on.
Quote from: What I was going to say
Banmenu allows adding/deleting of bans..not just shows them.
I understand the concern of allowing some but not all ban functions, but, I'm not sure how well it would work split up like you have. Try placing them all in one of your trusted member groups, and see if that helps the 'no access' error.

As for getting rid of operator, that's fine, but make sure to add "ulx seeasay" to your "lowest" group you'd want to be able to see "@ whatever" discussion. Then, you can add to any group below/above that the ability to USE the actual command by adding "ulx asay"
(note to those using SVN ... the above has totally changed in svn/ULX 3.5)

The editing of your groups file may not stay the way you edited it. This isn't a ULib issue as it is the way Lua tables often get placed out of 'expected' order. If it does stay that way though, it will be easier for you to follow when tweaking manually since you have so many groups.

So, with all the changes you made, before and after these suggestions... does banmenu still hang?
If so, even though you want different levels to have different ban access, at least place them all in the same group and try again.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming