ULX

Author Topic: Users.txt and groups.txt not loading... HELP!  (Read 9561 times)

0 Members and 3 Guests are viewing this topic.

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Users.txt and groups.txt not loading... HELP!
« on: February 23, 2011, 03:01:26 PM »
Need help with my server....
I have users.txt groups.txt copied from <garrysmod root>/addons/ulib/data/
                                                     into   <garrysmod root>/data/ulib/
and when i update and start up my server (i use the console version, i could't get the steam GUI to work) it shows the ULX/ULIB startup and install things, and when it try's to load user.txt and groups.txt and it won't do it... Help me please?
I have most of the files set up like my previous server, but i had a lot of help with the old one which got wiped when my dad did a hard drive wipe on my computer, so i just got my new one up and running, do i need to edit my users.txt in the <garrysmod root>/settings?
« Last Edit: February 23, 2011, 03:07:44 PM by norm555 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Users.txt and groups.txt not loading... HELP!
« Reply #1 on: February 23, 2011, 04:05:03 PM »
you shouldn't need to copy anything. Delete it from your data folder. Then do the following.

1. From HLDS console, run
Code: [Select]
ulx adduser <yourname> <superadmin>
2. Check your garrysmod/data/ULib folder.. it will have created a new file for you.


Now you can add more people in game since you are an admin.

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Users.txt and groups.txt not loading... HELP!
« Reply #2 on: February 23, 2011, 04:29:01 PM »
okay, thanks  :)
But then how do i add a group?
When i add myself as a superadmin, that should give me rights to add more groups, right?
Whats the command to add a new group?
EDIT: I'm using the direct download from the ulx homepage for both ulx and ulib, does that make any difference?
EDIT 2: Okay, i tried doing
Code: [Select]
ulx adduser <your name> <superadmin>it didnt work, and i tried it with both steam names, The Gunslinger and Nilt
Trying both of my steam usernames with that code, and trying with and without the brackets, it didnt work. And the error (sorta) it gave me was "Invalid target!" do i have to be connected to my server for it to work?
« Last Edit: February 23, 2011, 05:05:39 PM by norm555 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Users.txt and groups.txt not loading... HELP!
« Reply #3 on: February 23, 2011, 05:25:39 PM »
You have to be connected for the command to work, you're correct. I can't remember if we had ulx adduserid in the last release or not, but if we did, that's what you use to add steamids.
Experiencing God's grace one day at a time.

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Users.txt and groups.txt not loading... HELP!
« Reply #4 on: February 23, 2011, 05:43:26 PM »
Yeah, in the console i typed
Code: [Select]
ulx help and
Code: [Select]
ulx adduserid popped up in the help, and i added my steam userID as:
Code: [Select]
adduserid The Gunslinger superadmin STEAM_0:1:5811840and it didnt work, it gave me the error that the group was invalid, and when i checked my groups.txt in my server files (without closing my server, just opened the folders) and checked it, and it had the group "superadmin", so i don't see anything else that went wrong with how i entered that into the console. so when i do the adduserid, do i put this into console?
Code: [Select]
adduserid The Gunslinger superadmin 0:1:5811840

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Users.txt and groups.txt not loading... HELP!
« Reply #5 on: February 23, 2011, 06:36:25 PM »
you are doing the command wrong.


do
Code: [Select]
ulx adduserid STEAM_0:1:5811840 superadmin

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Users.txt and groups.txt not loading... HELP!
« Reply #6 on: February 23, 2011, 06:50:22 PM »
Ah, i see
In the help under ulx adduserid it said
Code: [Select]
ulx adduser <name> <group> <steamID> <immunity>okay, so when i did
Code: [Select]
ulx adduserid STEAM_0:1:5811840 superadmin 1It gave me an error that said i entered an invalid steamID.
Any thoughts on that error? I was connected to my server, too. And does it matter that i give myself immunity with
Code: [Select]
ulx adduserid STEAM_0:1:5811840 super admin 1or does it nt matter, i don't think it does considering superadmins immunity overrides any other admin/player immunitys, right?
« Last Edit: February 23, 2011, 07:12:55 PM by norm555 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Users.txt and groups.txt not loading... HELP!
« Reply #7 on: February 23, 2011, 07:12:06 PM »
enclose the steamid in quotes. The console naturally truncates at : unless it's wrapped in quotes.

Code: [Select]
ulx adduserid "STEAM_0:1:5811840" superadmin 1should do the trick.

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Users.txt and groups.txt not loading... HELP!
« Reply #8 on: February 23, 2011, 07:20:18 PM »
okay, i tried
Code: [Select]
ulx adduserid "STEAM_0:1:5811840" superadmin and it didnt work at all, it gave me an invalid steamID error, let me check and see what my steamID is, i might have it wrong.
okay, in the console when i typed (this is on the game) "status" it gave me my steam account info, steamID and username.
Here is what it says:
Code: [Select]
#6 "The Gunslinger" STEAM_0:1:5811840 05:09 35 0 activeIs all i need for my steamID "STEAM_0:1:5811840"?
« Last Edit: February 23, 2011, 07:27:11 PM by norm555 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Users.txt and groups.txt not loading... HELP!
« Reply #9 on: February 23, 2011, 07:54:16 PM »
I'm not sure what your problem could be, but it's really much easier to use the "ulx adduser" command when you're connected.
Experiencing God's grace one day at a time.

Offline norm555

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Users.txt and groups.txt not loading... HELP!
« Reply #10 on: February 23, 2011, 08:10:18 PM »
yeah, i know :-\ I've always had this problem with gmod, someone does something, i do it the EXACT same way they do it, and it ends up messed up or broken, and my buddy i was chatting with says my uTeam file is broken... How do i fix that, he said the reason i can't add users is because my uTeam is broken. So I'll try finding a new uTeam file
edit: Okay, good. I got i new uTeam file and all the commands work now for adding and subtracting users.
Thanks for all the help!  :)
« Last Edit: February 23, 2011, 10:41:59 PM by norm555 »