ULX

Author Topic: ULX adduser  (Read 5865 times)

0 Members and 1 Guest are viewing this topic.

Patrick_

  • Guest
ULX adduser
« on: July 06, 2006, 07:13:56 PM »
I have been using ulx on my server for a few weeks now. However, when I decided to go dedicated, it stopped working. I added myself right.

addUser( "STEAM_0:0:6148446","abcdefghijklmnopqrstuvwxyz" )

(inside ulx_users)

Why won't it work? This is really making me mad... Even armpit couldn't get it to work.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX adduser
« Reply #1 on: July 06, 2006, 08:03:16 PM »
Wrong format.
Experiencing God's grace one day at a time.

Offline Patrick_

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ULX adduser
« Reply #2 on: July 06, 2006, 08:13:00 PM »
What do you mean wrong format?

Code: [Select]
// Add users here, in the following format:
// "<steamid>" "<access flags>" //Optional comment ( You could say who this steamid belongs to in this comment )
//
// Example:
// "STEAM_0:1:1234567" "abcdefghijklmnopqrstuz"
// DO NOT INCLUDE THE '//' before the steamid, IT DENOTES A COMMENT
//
// Access flags:
// a - immunity (can't be kicked/banned/slayed/slapped and affected by other commmands)
// b - reservation (can join on reserved slots)
// c - ulx_kick command
// d - ulx_ban and ulx_unban commands
// e - ulx_slay and ulx_slap commands
// f - ulx_map command
// g - ulx_cvar command (not all cvars will be available)
// h - ulx_cfg command
// i - ulx_chat and other chat commands
// j - ulx_vote and other vote commands
// k - access to sv_password cvar (by ulx_cvar command)
// l - access to ulx_rcon command and rcon_password cvar (by ulx_cvar command)
// m - spawned props will be "protected", only other users with this access will be able to delete or move them ( ALSO UNAFFECTED BY PROP ANTI SPAM )
// n - ulx_ent command - CAUTION, PLAYERS MAY BE ABLE TO CRASH THE SERVER WITH THIS ACCESS
// o - custom level A
// p - custom level B
// q - custom level C
// r - custom level D
// s - custom level E
// t - custom level F
// u - custom level G
// z - custom level H
//
//
// TUTORIAL:
// Go to your server, type "status" without the quotes in either your console, or the server console
// Example output:
//
//] status
//hostname:  The Hut
//version   : 1.0.1.0/7 2707 insecure (secure mode enabled, disconnected from Steam3)
//udp/ip  :  192.168.0.51:27015
//map     :  gm_construct at: 1015 x, 21 y, -79 z
//players :  1 (16 max)
//
//# userid name uniqueid connected ping loss state adr
//#  2 "Joe" STEAM_0:1:123456 12:31 70 0 active 127.0.0.1:27005
//<end>
//
// Take your steamid. In this example, Joe's steamid is "STEAM_0:1:123456" without the quotes. Use this id as part of your access line.
// In this example, the server admin wants to grant Joe access to the slay-related and kick-related commands ONLY ( the admin looks at the access table listed above and sees that the wanted accesses respond to c and e, respectively ), so the following line ( without the '//' is added to users.ini )
// "STEAM_0:1:123456" "ce"

//"STEAM_ID_LAN" "bcdefghijklmnopqrstuz" //Uncomment this if you want to give people on LAN access, or if you're using the listen server fix

addUser( "STEAM_0:0:5743964","abcdefghijklmnopqrstuvwxyz" )
addUser( "STEAM_0:0:9037962","abcdefghijklmnopqrstuvwxyz" )
addUser( "STEAM_0:0:6148446","abcdefghijklmnopqrstuvwxyz" )

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX adduser
« Reply #3 on: July 06, 2006, 09:08:23 PM »
Try reading the file.
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: ULX adduser
« Reply #4 on: July 06, 2006, 09:10:12 PM »
Patrick

1) Make sure you have the latest version of ULX.
v1.13 no longer reads/uses ulx_users.ini, and I'm not sure where versions previous to v. 1.13 break at reading it.
(I know 1.12 ulx_adduser command added to ulx_users.lua, even though it shouldn't have)

2) Go to your ulx/configs directory, add your user lines to users.ini but make them look like the example in it.
"STEAM_0:0:5743964" "abcdefghijklmnopqrstuvwxyz"
"STEAM_0:0:9037962" "abcdefghijklmnopqrstuvwxyz"
"STEAM_0:0:6148446" "abcdefghijklmnopqrstuvwxyz"

v1.12 and 1.13 read users.ini, even if 1.12 added to the old file.



Megiddo, your sticky post at http://forums.ulyssesmod.net/index.php/topic,176.0.html has instructions that refer to the older versions ulx_users.ini , which aren't used anymore. Might want to update it until the new version comes out.
 (edit: Now that I think of it, I haven't used ulx_adduser since 1.13, does it add users in the proper format, or does it add to users.ini using the old adduser("steamid","access rights a-z") format, and, would that be incorrect for users.ini?)

« Last Edit: July 06, 2006, 09:17:01 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Patrick_

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ULX adduser
« Reply #5 on: July 06, 2006, 10:31:59 PM »
OMG Thank you! Finally.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX adduser
« Reply #6 on: July 07, 2006, 04:46:15 AM »
v1.13 adds users to users.ini correctly.  :)

Thanks for telling me about the error in the sticky!
Experiencing God's grace one day at a time.