Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: krooks on January 11, 2013, 01:09:31 PM

Title: Error in with ulx, possibly from deleting operator?
Post by: krooks 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: krooks 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
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: LuaTenshi 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: MrPresident 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: Megiddo 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".
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: krooks 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: Megiddo 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: Stickly Man! 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.
Title: Re: Error in with ulx, possibly from deleting operator?
Post by: krooks 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