ULX

Author Topic: Server Console adduser not working.  (Read 6371 times)

0 Members and 1 Guest are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Server Console adduser not working.
« on: June 07, 2008, 12:48:56 AM »
Code: [Select]
ulx adduser "(D.O.A.)LemmingguidedmissileTWM" "mod"
ok, I ran the code above in the server console and it returned "invalid group". I know the group exists, I created it myself, so knowing this I joined the server and pasted the code exactly and it worked.

ulx debuginfo:
Quote
ULX version: <SVN> revision 8
ULib version: 2.20
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created
Jay209015                       STEAM_0:1:13630765 1  n   336
(D.O.A.)LemmingguidedmissileTWM STEAM_0:0:8099861  2  n   17


ULib.ucl.users (#=12):
   |fp| gun reaper [zen]:
      deny:
      type   =   steamid
      groups:
         1   =   admin
      id   =   STEAM_0:0:2927536
      pass   =   
      allow:
   [xg]reco:
      deny:
      type   =   steamid
      groups:
         1   =   admin
      id   =   STEAM_0:1:14480290
      pass   =   
      allow:
   the silver raven:
      deny:
      type   =   steamid
      groups:
         1   =   respected
      id   =   STEAM_0:1:2223035
      pass   =   
      allow:
   xw.t.lxbloodhound:
      deny:
      type   =   steamid
      groups:
         1   =   mod
      id   =   STEAM_0:0:14499531
      pass   =   
      allow:
   jay209015:
      deny:
      type   =   steamid
      groups:
         1   =   superadmin
         2   =   user
      id   =   STEAM_0:1:13630765
      pass   =   
      allow:
         1   =   immunity
         2   =   ulx hasreadhelp
   yamata-no-orochi:
      deny:
      type   =   steamid
      groups:
         1   =   respected
      id   =   STEAM_0:0:18052342
      pass   =   
      allow:
   {[otc]}[lt.cmdr.] jbabyboy:
      deny:
      type   =   steamid
      groups:
         1   =   admin
      id   =   STEAM_0:1:18643851
      pass   =   
      allow:
   tor-eirik:
      deny:
      type   =   steamid
      groups:
         1   =   superadmin
      id   =   STEAM_0:0:14115173
      pass   =   
      allow:
   gore:
      deny:
      type   =   steamid
      groups:
         1   =   superadmin
      id   =   STEAM_0:0:3735956
      pass   =   
      allow:
         1   =   immunity
   johnson kane:
      deny:
      type   =   steamid
      groups:
         1   =   admin
      id   =   STEAM_0:0:6032402
      pass   =   
      allow:
   hank j. wimbleton:
      deny:
      type   =   steamid
      groups:
         1   =   respected
      id   =   STEAM_0:1:6836472
      pass   =   
      allow:
   --one--:
      deny:
      type   =   steamid
      groups:
         1   =   admin
         2   =   user
      id   =   STEAM_0:0:4234529
      pass   =   
      allow:
         1   =   ulx hp
         2   =   ulx armor


ULib.ucl.groups (#=7):
   superadmin:
      deny:
      allow:
         1   =   ulx hiddenecho
         2   =   ulx rcon
         3   =   ulx luarun
         4   =   ulx cexec
         5   =   ulx ent
         6   =   ulx adduser
         7   =   ulx removeuser
         8   =   ulx userallow
         9   =   ulx userdeny
         10   =   ulx addgroup
         11   =   ulx removegroup
         12   =   ulx groupallow
         13   =   ulx groupdeny
         14   =   overcomeimmunity
         15   =   ulx adduserid
      inherit_from:
         1   =   admin
   admin:
      deny:
      allow:
         1   =   ulib_passtime
         2   =   ulib_passtimeout
         3   =   ulx spawnecho
         4   =   ulx tsay
         5   =   ulx csay
         6   =   ulx gimp
         7   =   ulx mute
         8   =   ulx ungimp
         9   =   ulx unmute
         10   =   ulx gag
         11   =   ulx ungag
         12   =   ulx chattime
         13   =   ulx welcomemessage
         14   =   ulx slap
         15   =   ulx whip
         16   =   ulx slay
         17   =   ulx sslay
         18   =   ulx ignite
         19   =   ulx unignite
         20   =   ulx playsound
         21   =   ulx freeze
         22   =   ulx unfreeze
         23   =   ulx god
         24   =   ulx ungod
         25   =   ulx noclip
         26   =   ulx hp
         27   =   ulx armor
         28   =   ulx cloak
         29   =   ulx uncloak
         30   =   ulx blind
         31   =   ulx unblind
         32   =   ulx jail
         33   =   ulx unjail
         34   =   ulx ghost
         35   =   ulx unghost
         36   =   ulx ragdoll
         37   =   ulx unragdoll
         38   =   ulx maul
         39   =   ulx strip
         40   =   ulx adminmenu
         41   =   ulx clientmenu
         42   =   ulx mapsmenu
         43   =   ulx showmotd
         44   =   ulx banmenu
         45   =   ulx exec
         46   =   ulx rslotsmode
         47   =   ulx rslots
         48   =   ulx rslotsvisible
         49   =   ulx reservedslots
         50   =   ulx bring
         51   =   ulx goto
         52   =   ulx send
         53   =   ulx teleport
         54   =   ulx tooldeny
         55   =   ulx toolallow
         56   =   ulx tooldenyuser
         57   =   ulx toolallowuser
         58   =   ulx tooldenyoverride
         59   =   ulx map
         60   =   ulx kick
         61   =   ulx ban
         62   =   ulx banid
         63   =   ulx unban
         64   =   ulx spectate
         65   =   ulx mingekick
         66   =   ulx physgunplayer
         67   =   ulx vote
         68   =   ulx votemap2
         69   =   ulx votekick
         70   =   ulx voteban
         71   =   ulx veto
         72   =   ups_damage
         73   =   ups_vehicle
         74   =   ups_freeze
         75   =   ups_physgun
         76   =   ups_remove
         77   =   ups_tool
         78   =   ups_unfreeze
         79   =   ups_use
         80   =   ups miscdeletionaccess
         81   =   ups disableplayers
         82   =   umaps_extend
      inherit_from:
         1   =   operator
   user:
      deny:
      allow:
         1   =   ulx
         2   =   ulx help
         3   =   ulx psay
         4   =   ulx asay
         5   =   ulx thetime
         6   =   ulx menu
         7   =   ulx_valueupdate
         8   =   ulx_cvar
         9   =   ulx_getgamemodes
         10   =   ulx motd
         11   =   ulx_getbans
         12   =   ulx usermanagementhelp
         13   =   ulx who
         14   =   ulx votemap
         15   =   umotd
         16   =   umotd serverinfo
         17   =   umotd motd
         18   =   umotd helpme
         19   =   umotd rules
         20   =   ulx rules
         21   =   ulx serverinfo
         22   =   ulx helpme
         23   =   _umaps_chatprint
         24   =   umaps_timeleft
         25   =   umaps_nextmap
         26   =   umotd ulysses
         27   =   ulx ulysses
         28   =   umotd svn
         29   =   ulx svn
         30   =   ulx admins
         31   =   umotd admins
         32   =   umotd addons
         33   =   ulx addons
         34   =   umotd players
         35   =   ulx players
         36   =   umotd challenges
         37   =   ulx challenges
      inherit_from:
   respected:
      deny:
      allow:
         1   =   ulx kick
         2   =   ulx menu
         3   =   ulx clientmenu
      inherit_from:
         1   =   mod
   operator:
      deny:
      allow:
         1   =   ulx seeasay
      inherit_from:
   mod:
      deny:
      allow:
         1   =   ulx jail
         2   =   ulx unjail
         3   =   ulx teleport
         4   =   ulx menu
         5   =   ulx clientmenu
      inherit_from:
         1   =   user
   none:
      deny:
      allow:
         1   =   ulx logecho
         2   =   ulx logfile
         3   =   ulx logevents
         4   =   ulx logchat
         5   =   ulx logspawns
         6   =   ulx logspawnsecho
         7   =   ulx logdir
         8   =   ulx addgimpsay
         9   =   ulx addadvert
         10   =   ulx addcsayadvert
         11   =   ulx addforceddownload
         12   =   ulx debuginfo
         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 votemapaddmap
      inherit_from:


ULib.ucl.authed (#=2):
   Player [2][(D.O.A.)LemmingguidedmissileTWM]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   (D.O.A.)LemmingguidedmissileTWM
      acl:
         allow:
         deny:
      uniqueid   =   3200923506
   Player [1][Jay209015]:
      deny:
      type   =   steamid
      groups:
         1   =   superadmin
         2   =   user
      account   =   jay209015
      id   =   STEAM_0:1:13630765
      allow:
         1   =   immunity
         2   =   ulx hasreadhelp
      uniqueid   =   2461969730


Garrysmod default file (#=2):
   admin:
   superadmin:


Active addons on this server:
Adv Duplicator           by TAD2020, version 1.8359 (July 5th 2007)
Ajoin                    by Jay, version 2.5 (May 11th, 2008)
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)
Gas Systems              by Syncaidius, version 1.2 (Today)
hl2_ep2                  by Valve, version 1 (29th October 2007)
Life Support 2           by LS/RD/SB Team, version 1.0.2 (Today)
LS2 RTS                  by Solthar, version 1 (Today)
oilmod2                  by Terence, With code from Paradukes and Shadow25 And with help from Tad2020! And A fix by NewOutlook!, version V2.0.0 ((null))
phx3                     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)
RD2                      by TAD2020, version 2 (Sept 28, 2007)
Simple Prop Protection   by Spaceetech, version  ()
spacebuild2_modelpack    by PJB, Cheesman55, Firgof Umbra, Squad08, Omni, SnakeSVx, votekick, version 1.5b (16th October 2007)
sui_scoreboard           by Suicidal.Banana, version ? ()
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.2 (01/26/08)
ulx                      by Team Ulysses, version 3.3099 (00/00/00)
Umotd                    by JamminR - Team Ulysses, version SVN 2.A2 (04/00/08)
WeightSTool              by Spoco, version 1.21 ((null))
wire                     by Wire Team, version 0.9.6 (25st March 2007)
wire model pack 1        by Team Wire, version 0.3 (25st March 2007)
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 MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Server Console adduser not working.
« Reply #1 on: June 07, 2008, 01:50:26 AM »
It's possible that the way your server console program.. (I'm assuming HLSW) works it was mixing up the parameters for some reason. Here are a few steps to ensure that it works in the future.

1. Don't use the full name. ULX has partial name checking and you should use it to your advantage. 'Lemming' would have worked just fine.
2. Don't use quotation marks around the name and the group. they are unnecissary and however unlikely, it could cause the program to parse the info wrong.

If I had to wager a guess.. I'd say that SOMEHOW the name in it's length and use of non alpha-numeric characters was split and the later part of it was sent to the command as the group. Rather than receiving 'mod' as the group it was receiving the later part of the name. Just a theory... Try this in your console and see if it works.

ulx adduser lemming mod

I would bet that it would work perfectly. (assuming, of course, that there isnt another person on the server with lemming in their name at the time.)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Server Console adduser not working.
« Reply #2 on: June 07, 2008, 02:45:39 AM »
Quote
It's possible that the way your server console program.. (I'm assuming HLSW) works it was mixing up the parameters for some reason. Here are a few steps to ensure that it works in the future.

I ran it from srcds.exe's window itself. the server is local.

Quote
2. Don't use quotation marks around the name and the group. they are unnecissary and however unlikely, it could cause the program to parse the info wrong.

The quotes are used to make sure everything in the players name is a string. Often parenthesis can make commands fail that expect a string.

Quote
1. Don't use the full name. ULX has partial name checking and you should use it to your advantage. 'Lemming' would have worked just fine.

I know that partial names work, but I don't understand why his full name didn't in the console while it did ingame.

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 JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Server Console adduser not working.
« Reply #3 on: June 07, 2008, 05:05:27 AM »
I'm guessing it had something to do with the parenthesies also. As for why srcds didn't leave it be using double quote, no clue.
Perhaps a single quote ' , see if srcds handles that better.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
Re: Server Console adduser not working.
« Reply #4 on: June 07, 2008, 03:04:48 PM »
Code: [Select]
ulx adduser "(D.O.A.)LemmingguidedmissileTWM" "mod"
ok, I ran the code above in the server console and it returned "invalid group". I know the group exists, I created it myself, so knowing this I joined the server and pasted the code exactly and it worked.

ulx debuginfo:

its ulx rcon ulx adduser "(D.O.A.)LemmingguidedmissileTWM" mod

this is the only way i have found it to work...

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Server Console adduser not working.
« Reply #5 on: June 07, 2008, 03:15:50 PM »
its ulx rcon ulx adduser "(D.O.A.)LemmingguidedmissileTWM" mod

this is the only way i have found it to work...

AviZ, "ulx adduser <user> <group> [immune]" works fine from the server console (except for what Jay is describing).
You're having to use rcon because your trying it from your game console, not the server.
"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: Server Console adduser not working.
« Reply #6 on: June 07, 2008, 03:16:44 PM »
Hmm, yah, try matching the partial name and see if that works.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Server Console adduser not working.
« Reply #7 on: June 07, 2008, 03:18:54 PM »
Hmm, yah, try matching the partial name and see if that works.

:P Only a workaround, not a solution. :D
I'm betting srcds is killing on the brackets, even with the double quotes. I'd still be interested to know if single quotes work.
"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: Server Console adduser not working.
« Reply #8 on: June 07, 2008, 03:36:43 PM »
Workarounds are perfectly valid solutions. :P
Experiencing God's grace one day at a time.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given