Author Topic: ULib/ULX group access errors  (Read 5611 times)

0 Members and 1 Guest are viewing this topic.

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
ULib/ULX group access errors
« on: December 23, 2009, 09:52:31 AM »
Hmmm no luck so far, i believe i have narrowed down the error to this:

   -- First check the player's info
   if table.HasValue( playerInfo.deny, access ) then return false end -- Deny overrides all else
   if table.HasValue( playerInfo.allow, access ) then return true end
   if playerInfo.allow[ access ] then return true, playerInfo.allow[ access ] end -- Access tag
   
   -- Now move onto groups and group inheritance
   local group = ply:GetUserGroup()
   while group do -- While group is not nil
      local groupInfo = ucl.groups[ group ]
      if not groupInfo then return error( "[ULib] Player " .. ply:Nick() .. " has an invalid group (" .. group .. "), aborting. Please be careful when modifying the ULib files!" ) end
      if table.HasValue( groupInfo.allow, access ) then return true end
      if groupInfo.allow[ access ] then return true, groupInfo.allow[ access ] end
      
      group = ucl.groupInheritsFrom( group )
   end
   
   -- No specific instruction, assume they don't have access.
   return false
end

Somewhere in there is the issue i think, becuase i am still getting this error:

ULib/shared/sh_ucl.lua:281: Invalid group ()
« Last Edit: December 23, 2009, 01:06:23 PM by joe_sandwich »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib/ULX group access errors
« Reply #1 on: December 23, 2009, 02:24:38 PM »
Joe, the error showed us what line the error is occurring in. That we already known.
Which points us to the suggestion I made and the question I asked.
The error may lie in your groups.txt file.
Shut down server, Move your /data/ULib/groups.txt and misc_registered.txt to a backup location.
Restart server.
See if you still get errors.

It seems many are copying over the groups.txt from old versions of ULib after the new SVN has been installed.
Did you do that?

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

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: ULib/ULX group access errors
« Reply #2 on: December 23, 2009, 02:39:05 PM »
Still getting the error


ULib/shared/sh_ucl.lua:281: Invalid group ()

i have done all of that, i have deleted it all, redownloaded all the Ulib files, deleted the Ulib folder in /data. i even double checked.

This happens when i type ulx into the console


ULib/shared/sh_ucl.lua:58: [ULib] Player {G4C} God's_child has an invalid group (), aborting. Please be careful when modifying the ULib files!
« Last Edit: December 23, 2009, 02:42:39 PM by joe_sandwich »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib/ULX group access errors
« Reply #3 on: December 23, 2009, 02:45:52 PM »
From server console, please run a ulx debuginfo, then attach the file here.
File created will exist in \data\ulx\debug<?>.tx

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

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: ULib/ULX group access errors
« Reply #4 on: December 23, 2009, 05:14:10 PM »
well here is everything that i had(sorry for being such a pain)

Results:
Code: [Select]
KeyValues Error: LoadFromBuffer: missing { in file In
(*superadmin*),
KeyValues Error: RecursiveLoadFromBuffer: got NULL key in file In
AddonInfo,
Debug information written to garrysmod/data/ulx/debugdump.txt on server.

ULX version: <SVN> revision 80
ULib version: 2.40
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created


ULib.ucl.users (#=0):


ULib.ucl.groups (#=4):
user:
allow:
1 = ulx help
2 = ulx logecho
3 = ulx logfile
4 = ulx logevents
5 = ulx logchat
6 = ulx logspawns
7 = ulx logspawnsecho
8 = ulx logdir
9 = ulx_valueupdate
10 = ulx_cvar
11 = ulx_getgamemodes
12 = ulx_getbans
13 = ulx voteecho
14 = ulx votemap2successratio
15 = ulx votemap2minvotes
16 = ulx votekicksuccessratio
17 = ulx votekickminvotes
18 = ulx votebansuccessratio
19 = ulx votebanminvotes
20 = ulx votemapenabled
21 = ulx votemapmintime
22 = ulx votemapwaittime
23 = ulx votemapsuccessratio
24 = ulx votemapminvotes
25 = ulx votemapvetotime
26 = ulx votemapmapmode
27 = ulx psay
28 = ulx asay
29 = ulx thetime
30 = ulx menu
31 = ulx clientmenu
32 = ulx motd
33 = ulx usermanagementhelp
34 = ulx who
35 = ulx votemap
36 = umotd
37 = umotd rules
38 = umotd sass
39 = umotd g4c
40 = umotd admins
41 = umotd donate
42 = umotd help
43 = umotd motd
44 = umotd info
45 = umotd vip
superadmin:
allow:
1 = ulx hiddenecho
2 = ulx maul
3 = ulx rcon
4 = ulx luarun
5 = ulx exec
6 = ulx cexec
7 = ulx ent
8 = ulx adduser
9 = ulx adduserid
10 = ulx removeuser
11 = ulx userallow
12 = ulx addgroup
13 = ulx renamegroup
14 = ulx removegroup
15 = ulx groupallow
16 = overcomeimmunity
inherit_from = admin
admin:
allow:
1 = ulx spawnecho
2 = ulx chattime
3 = ulx welcomemessage
4 = ulx showmotd
5 = ulx rslotsmode
6 = ulx rslots
7 = ulx rslotsvisible
8 = ulx reservedslots
9 = ulx tooldenyoverride
10 = ulx physgunplayer
11 = ulx tsay
12 = ulx csay
13 = ulx gimp
14 = ulx ungimp
15 = ulx mute
16 = ulx unmute
17 = ulx gag
18 = ulx ungag
19 = ulx slap
20 = ulx whip
21 = ulx slay
22 = ulx sslay
23 = ulx ignite
24 = ulx unignite
25 = ulx unigniteall
26 = ulx playsound
27 = ulx freeze
28 = ulx unfreeze
29 = ulx god
30 = ulx ungod
31 = ulx hp
32 = ulx armor
33 = ulx cloak
34 = ulx uncloak
35 = ulx blind
36 = ulx unblind
37 = ulx jail
38 = ulx unjail
39 = ulx ragdoll
40 = ulx unragdoll
41 = ulx strip
42 = ulx adminmenu
43 = ulx mapsmenu
44 = ulx banmenu
45 = ulx bring
46 = ulx goto
47 = ulx send
48 = ulx teleport
49 = ulx map
50 = ulx kick
51 = ulx ban
52 = ulx banid
53 = ulx unban
54 = ulx noclip
55 = ulx spectate
56 = ulx vote
57 = ulx votemap2
58 = ulx votekick
59 = ulx voteban
60 = ulx veto
61 = ups_damage
62 = ups_vehicle
63 = ups_freeze
64 = ups_physgun
65 = ups_remove
66 = ups_tool
67 = ups_unfreeze
68 = ups_use
69 = ups disableplayers
70 = ups miscdeletionaccess
71 = urestrict props
72 = urestrict npcs
73 = urestrict vehicles
74 = urestrict ragdolls
75 = urestrict sents
76 = urestrict denyspawn
77 = urestrict allowspawn
inherit_from = operator
operator:
allow:
1 = ulx seeasay
inherit_from = user


ULib.ucl.authed (#=0):


Garrysmod default file (#=1):
{g4c} god's_child = STEAM_0:0:22878083


Active addons on this server:
Adv Duplicator           by TAD2020, version 1.85 (June 28th 2009)
counter-strike           by Valve, version 1 (5th August 2006)
CSS Realistic Weapons 4.0 by WORSHIPPER, version 4 (13th February 2008)
day-of-defeat            by Valve, version 1 (22nd August 2006)
default_sent_pack        by TEAM GARRY, version 1 (3rd December 2006)
derma                    by , version 0.1 (17th July 2007)
gstream                  by Spencer Henslol, version 1.2999 ((null))
HAAX_Swep                by Original by Kwigg, modified by NECROSSIn, version 1.2 ()
hl2_ep2                  by Valve, version 1 (29th October 2007)
Nuke Pack 4              by Nuke and TNT by Teta_Bonita, Atomic Bomb by Doomsday, Model Changes by Sgt.Napalm, RayFanMan (RayFan9876) and Hamster, Entities list and Spawn Icons by Sgt.Napalm and RayFanMan (RayFan9876), Nuke_effect_air, nuke_var_inits and nuke_blastwave changes by RayFanMan (RayFan9876), version 4 ()
phx                      by PhoeniX-Storms, 1/4 Life, hunter, joebloom, scragnog, x-quake, Xeon133, Squad, PelPix, Stigern, version SVN (20th May 2008)
portal                   by Valve, version 1 (29th October 2007)
Stacker STool            by -, version 2.2 (19th January 2007)
tf2                      by Valve, version 1 (29th October 2007)
Ulib                     by Team Ulysses, version 2.4 (00/00/00)
ULX                      by Team Ulysses, version 3.50 SVN (00/00/00)
Umotd_Revived            by JamminR - Team Ulysses, version SVN 2.A2 (04/00/08)
UPS                      by Megiddo (Team Ulysses), version 0.9499 (06/20/09)
Urestrict                by Jay Rivers, version 2 (3:30 PM 8/28/2009)
UTime                    by Megiddo (Team Ulysses), version 1.2999 (05/16/08)
warn2                    by MrPresident, version 2.0 Rewrite (4.2.08)
zeno_clash               by ACE Team, version 1 (May 8th 2009)

dang this is long
« Last Edit: December 23, 2009, 05:19:29 PM by JamminR »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib/ULX group access errors
« Reply #5 on: December 23, 2009, 05:30:10 PM »
Joe, attach the files using the 'additional options' link... no need to post them into the text box.
The parsing error/missing bracket in (unknown file) *superadmin* concerns me before the actual debuginfo you posted.
The second in addoninfo doesn't bother me so much, but could be causing issues.

Please attach your gmod/settings/users.txt, your gmod/data/ULib/groups.txt
I'm guessing, like Gmod says, theres a missing bracket somewhere.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: ULib/ULX group access errors
« Reply #6 on: December 23, 2009, 06:56:56 PM »
heh, i forgot a bracket after my name. I decided to just delete the contents though. Everything works now.

Thanks for all the help, not only does team ulysses have great mods they have excellent customer support too XD