Author Topic: Error in with ulx, possibly from deleting operator?  (Read 3953 times)

0 Members and 4 Guests are viewing this topic.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Error in with ulx, possibly from deleting operator?
« on: January 11, 2013, 01:09:31 PM »
Code: [Select]
[ERROR] addons/ulx/lua/ulx/xgui/groups.lua:818: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. DoClick - addons/ulx/lua/ulx/xgui/groups.lua:818
3. unknown - lua/vgui/dlabel.lua:206

I removed all the addons/ changes that I've made since noticing this bug, the only other thing that I can think of is that I deleted the operator user group. Could this be the cause of my errors?

The errors happen when I try to restrict access to a command.
Also, admin say (asay) no longer broadcasts.
My TTT server. Join the fun!

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Error in with ulx, possibly from deleting operator?
« Reply #1 on: January 11, 2013, 03:34:32 PM »
Well I re-installed ulx/ulib from svn, that seemed to have solved the lua error, but still getting issues with asay not showing up. My groups are still the same, and look like this:
Code: [Select]
"locals"
{
"allow"
{
"ulx votekick"
"ulx votemap2"
}
"inherit_from" "user"
}
"mod"
{
"allow"
{
"ulx kick"
"ulx slay"
"ulx spectate"
}
"inherit_from" "user"
}
"admin"
{
"allow"
{
"ulx asay"
"ulx ban"
"ulx banid"
"ulx bring"
"ulx chattime"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx jailtp"
"ulx kick"
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx map"
"ulx mute"
"ulx physgunplayer"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx savecurvid"
"ulx savevid"
"ulx seeanonymousechoes"
"ulx showmotd"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx tsay"
"ulx unban"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx unmute"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx votekick"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx welcomemessage"
}
"can_target" "!%superadmin"
"inherit_from" "user"
}
"user"
{
"allow"
{
"ulx debugvid"
"ulx help"
"ulx motd"
"ulx music"
"ulx playvidcl"
"ulx psay"
"ulx stopvid"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votemap"
"ulx who"
}
}
"dk"
{
"allow"
{
}
"inherit_from" "superadmin"
}
"superadmin"
{
"allow"
{
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx asay"
"ulx banid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx freeze"
"ulx god"
"ulx goto"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx hp"
"ulx ignite"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx luarun"
"ulx maul"
"ulx noclip"
"ulx playvid"
"ulx ragdoll"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx removevid"
"ulx renamegroup"
"ulx renamevid"
"ulx respawn"
"ulx send"
"ulx setgroupcantarget"
"ulx slap"
"ulx stopvidall"
"ulx teleport"
"ulx ungod"
"ulx unragdoll"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"ulx voteecho"
"ulx whip"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
}
"inherit_from" "admin"
}
I may just need to update gmod, I'm guessing, because from what I can tell my groups.txt looks right
« Last Edit: January 11, 2013, 03:36:33 PM by krooks »
My TTT server. Join the fun!

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Error in with ulx, possibly from deleting operator?
« Reply #2 on: January 12, 2013, 12:36:04 AM »
I may just need to update gmod, I'm guessing, because from what I can tell my groups.txt looks right

Are you sure your ranks are settup correctly? Because to me it looks like your making locals, mod, and admin inherit from user.
I cry every time I see that I am not a respected member of this community.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Error in with ulx, possibly from deleting operator?
« Reply #3 on: January 12, 2013, 01:37:18 AM »
He can do that Hellfox. So long as each group has its own permissions added to the allows section.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Error in with ulx, possibly from deleting operator?
« Reply #4 on: January 12, 2013, 06:57:10 AM »
When they use asay, it doesn't throw an error but doesn't appear to admins?

This is because the operator group had the permissions to see those, and was being inherited by the other groups. When you deleted the operator group, you removed that permission from the other groups, too. (This is why there are big warnings when you delete a group, asking if you're really sure you want to do that).

The permission string necessary to see asay's is conveniently enough, "ulx seeasay".
Experiencing God's grace one day at a time.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Error in with ulx, possibly from deleting operator?
« Reply #5 on: January 12, 2013, 10:21:26 AM »
Thanks Meg, that was the issue.
It's odd, ulx seeasay is missing from xgui (unless I'm just not finding it), so I never knew it existed.
My TTT server. Join the fun!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Error in with ulx, possibly from deleting operator?
« Reply #6 on: January 12, 2013, 10:52:45 AM »
Thanks Meg, that was the issue.
It's odd, ulx seeasay is missing from xgui (unless I'm just not finding it), so I never knew it existed.

It's not a command, so it's probably in a different part of XGUI than you expected? I believe I've seen it in there before.
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Error in with ulx, possibly from deleting operator?
« Reply #7 on: January 12, 2013, 11:36:21 AM »
Code: [Select]
[ERROR] addons/ulx/lua/ulx/xgui/groups.lua:818: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. DoClick - addons/ulx/lua/ulx/xgui/groups.lua:818
3. unknown - lua/vgui/dlabel.lua:206

Line 818 for me:
Code: [Select]
if panel:GetExpanded() then
Have you made any changes to that file and are you sure it's up-to-date?

EDIT: lol, nvm, I see you got that fixed. ulx seeasay is in XGUI permissions menu, under the "Other" Category.
« Last Edit: January 12, 2013, 11:49:11 AM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Error in with ulx, possibly from deleting operator?
« Reply #8 on: January 13, 2013, 12:11:12 PM »
Yeah that was fixed, don't know how it went bad, but I just checked out again and all was better ;)
Thanks stickly, I'll look in that section and become more familiar with whats there.

I was just afraid I messed something up with the ULX addons I've been creating like a hack. :P
My TTT server. Join the fun!