Author Topic: My adduser command is not working.  (Read 6526 times)

0 Members and 1 Guest are viewing this topic.

Offline aaronm1004

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
My adduser command is not working.
« on: September 29, 2009, 01:30:20 AM »
Hello, I have recently started a dedicated server that I run on my home computer.
I started the server and joined it and in the server prompt I typed in
Code: [Select]
ulx adduser Aaron superadminAfter I hit enter it says
Code: [Select]
ULib/server/ucl.lua:246: attempt to index local 'users' (a nil value)I disconnect from the server rejoin and I try the various admin abilities and it simply says I do not have permission to do that.
I'm sure I've added myself as admin correctly, because my
C:\srcds\orangebox\garrysmod\data\ULib\users.txt says:
Code: [Select]
}
"Aaron"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"superadmin"
"admin"
"respected"
"user"
}
"id" "STEAM_0:0:17531275"
"allow"
{
}
"pass" ""
}
My C:\srcds\orangebox\garrysmod\data\ULib\groups.txt says:
Code: [Select]
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"respected"
}
}
"respected"
{
"deny"
{
}
"allow"
{
"ulx votekick"
"ulx goto"
"ulx noclip"
}
"inherit_from"
{
}
I am using ULib version 2.30
and using ULX version 3.40
 ??? Can anyone please help me fix this ???

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: My adduser command is not working.
« Reply #1 on: September 29, 2009, 12:09:36 PM »
Is that your full groups.txt?
If so, delete it and your misc_registered.txt and restart the server.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: My adduser command is not working.
« Reply #2 on: September 29, 2009, 05:38:33 PM »
You'll want to delete your users.txt as well. All look as if they were badly modified by hand.
Experiencing God's grace one day at a time.

Offline Brandon

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
  • Minge tested, Brandon approved.
    • Steam
Re: My adduser command is not working.
« Reply #3 on: October 01, 2009, 10:38:01 AM »
Correct me if i'm wrong, ULX Team, but this:
Code: [Select]
ULib/server/ucl.lua:246: attempt to index local 'users' (a nil value)

means that the UCL process can't find the "users" group in groups.txt?

I'm doing my best to learn how ULX operates. I'm having some of these problems myself, most of them having to do with SWEPS or other entities.

Also, Aaron, if you want to hand modify your users.txt and groups.txt, get in touch with me. I have done so and my ULX works flawlessly [thanks to JamminR for seeing my idiot mistake (missing "ulx" in users group)].
Just a nice helping hand.
Professionals have standards:
-Be polite.
-Be efficient.
-Have a plan to kill everyone you meet.
(yeah its off tf2 so what)

Offline OneUnluckySrcdsOwner

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: My adduser command is not working.
« Reply #4 on: October 19, 2009, 05:13:01 PM »
I have the same problem. I run a srcds, which works perfect. When I made myself admin, it said I don't even have permission to use the !menu command. I need some help.
Quote
ULX version: 3.40
ULib version: 2.30
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created


ULib.ucl.users (#=0):


ULib.ucl.groups (#=0):


ULib.ucl.authed (#=0):


Garrysmod default file (#=2):
   admin:
      ninjaofpancakes   =   STEAM_0:0:25202755
   superadmin:


Active addons on this server:
counter-strike           by Valve, version 1 (5th August 2006)
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)
DoorSTool                by High6, version v1.6b (December 19th 2006)
hl2_ep2                  by Valve, version 1 (29th October 2007)
Phoenix-Storm            by PhoeniX-Storms, 1/4 Life, hunter, joebloom, scragnog, x-quake, Xeon133, PelPix, version SVN (20th May 2008)
portal                   by Valve, version 1 (29th October 2007)
propcannons              by Duncan Stead, version 1.1 (18th December 2006)
PropProtection           by Chaussetteā„¢, version 1.46 (10 mai 2007)
raveball                 by _Kilburn, version 0.8999 (12 December 2007)
Shoop da Whoop           by Sylph, version 1 ()
Spartan Kick             by Lune66, version 1 (September 29 2008)
Stacker STool            by -, version 2.2 (19th January 2007)
tf2                      by Valve, version 1 (29th October 2007)
Uclip                    by Megiddo (Team Ulysses), version 1.12 (12/04/07)
ulib                     by Team Ulysses, version 2.2999 (00/00/00)
ulx                      by Team Ulysses, version 3.4 (00/00/00)
Unbreakable              by Chaussetteā„¢, version 1.1 (28th January 2007)
wire                     by Wire Team, version SVN ((null))
wire model pack 1        by Wire Team, version SVN ((null))

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: My adduser command is not working.
« Reply #5 on: October 19, 2009, 06:51:01 PM »
OneUnluckySrcdsOwner,
1) Move yourself from admin to superadmin in gmodroot/settings/users.txt
As a server owner, default access of superadmin is best.

2)  Did you edit /addons/ULib/data/ULib/groups.txt? and users.txt
Yes? Delete your addons/ULib folder, re-install. (Don't ever edit /addons/ULib/data/ULib/groups.txt (or any file there in that folder) )
No? Something is wrong. No files exist, or can be read, from gmod/data/ULib/*
 Does the 'user' running Srcds/Gmod have permissions to write to/read from <gmod root>/data/ULib/?
The ULib.ucl.groups and ULib.ucl.users portion of your debug file are empty. Even when things are totally broken, the groups area shouldn't be empty.

Check\correct those few items.
Check for console errors at server startup regarding ULib/ULX. Report them if corrections didn't work.

Also, make sure you're connected to your server (or the player having access problem is connected) the next time you run a debug.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: My adduser command is not working.
« Reply #6 on: October 21, 2009, 06:52:34 AM »
Correct me if i'm wrong, ULX Team, but this:
Code: [Select]
ULib/server/ucl.lua:246: attempt to index local 'users' (a nil value)

means that the UCL process can't find the "users" group in groups.txt?

I'm doing my best to learn how ULX operates. I'm having some of these problems myself, most of them having to do with SWEPS or other entities.

Also, Aaron, if you want to hand modify your users.txt and groups.txt, get in touch with me. I have done so and my ULX works flawlessly [thanks to JamminR for seeing my idiot mistake (missing "ulx" in users group)].
Just a nice helping hand.

I'm not sure why I didn't see this earlier, but no, it means that for some reason the users file is returning nil, not that it can't find the group 'users'.
Experiencing God's grace one day at a time.