• Print

Author Topic: sv_groups error  (Read 4266 times)

0 Members and 1 Guest are viewing this topic.

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
sv_groups error
« on: January 29, 2014, 02:25:12 pm »
I believe that this is the error I have been searching for, can anyone solve it? Does this have anything to do with setting permissions in xgui?

Code: Lua
  1. 17:20:21 Lua Error: ULib queue error: addons/ulx/lua/ulx/xgui/server/sv_groups.lua:292: bad argument #1 to 'KeyValuesToTable' (string expected, got nil)

The function the line is in

Code: Lua
  1. function groups.postinit()
  2.         --Get user information from Garry's users.txt
  3.         groups.garryUsers = {}
  4.         for group, users in pairs ( util.KeyValuesToTable( ULib.fileRead( "settings/users.txt" ) ) ) do
  5.                 for user, steamID in pairs( users ) do
  6.                         groups.garryUsers[steamID] = { name=user, group=group }
  7.                 end
  8.         end

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: sv_groups error
« Reply #1 on: January 29, 2014, 03:04:24 pm »
Your gmod/settings/users.txt likely has a bad/corrupt entry in it.
XGUI and ULib do not edit that file, but read it as part of Gmod's default permissions file.
Please see our FAQ regarding 'having trouble with access?"
One of it's steps has you provide us more information after checking items on your side.
« Last Edit: January 29, 2014, 03:06:04 pm by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: sv_groups error
« Reply #2 on: January 31, 2014, 04:16:10 pm »
I can't find a garrysmod/settings/users.txt or even a /settings anywhere. I find users.txt in data/ulib. This is kind of troubling. Is it possible to be over the allowed amount of commands/categories.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: sv_groups error
« Reply #3 on: January 31, 2014, 05:06:50 pm »
No clue re: commands.
However, it sounds like a server installation issue. Even my recently installed dev server created a /settings folder within it, along with several folders inside of it.
At least, I think it did. It's possible I copied it when copying some information after steampipe update I did.

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

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: sv_groups error
« Reply #4 on: January 31, 2014, 05:11:29 pm »
The server is hosted by NFO, and I believe that they included all of the vanilla stuff, could you upload a folder with stuff that is in a /settings folder?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: sv_groups error
« Reply #5 on: February 04, 2014, 06:51:26 pm »
You should be able to create an empty file for users.txt and be fine. Though we should also check for the presence of that file...
Experiencing God's grace one day at a time.

  • Print