ULX

Author Topic: Still need help with adding users...  (Read 3791 times)

0 Members and 1 Guest are viewing this topic.

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Still need help with adding users...
« on: March 18, 2011, 10:02:29 PM »
Hello,
I have been using ULX for about a year now. Everything used to work great, but when I had my computer upgraded to Win 7, I wiped my computer, only keeping a disk with my old users.txt, ulxmotd.txt, and autoexec.cfg files. For some reason the motd and the users file do not seem to be working. When I type !menu, I get a message saying, "You don't have access to that command" or something like that.

I am running ulx 3.4 now and I don't remember which one I used to run.

I have read through all of these threads and tried all of the steps for each one. (Yes. Including "Step 4".):
http://forums.ulyssesmod.net/index.php?topic=4195.0
http://forums.ulyssesmod.net/index.php/topic,383.0.html
http://forums.ulyssesmod.net/index.php/topic,3068.0.html
http://wiki.garrysmod.com/?title=Player_Groups

I don't know if this matters, but right now I have users.txt in the settings folder and in the data\Ulib folder.

And one more thing, is it user.txt or users.txt?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Still need help with adding users...
« Reply #1 on: March 19, 2011, 09:50:03 AM »
First things first. Garry's /setting/users.txt is totally different than ULib's format stored under /data/ULib
Don't mix and match. It sounds like that's what you may have done.
Since you may not have gotten all the necessary user files backed up, or have overwritten incorrect ones with the other, OR, went from our old release version of ULX to newest SVN beta version, I'd recommend the following.
Shutdown server.
If you ever edited/overwrote any files in your gmod/addons/ulib or ulx folders, stop it..never edit those. Delete those two folders, and get them again from how you got them first time. Once you have clean install, continue.
Delete gmod/data/ulib and ulx
Edit your gmod/settings/users.txt to make sure it's the standard Gmod default - See http://wiki.garrysmod.com/?title=Player_Groups
Place yourself in that users.txt file without //, and only in the superadmin area.
Start up your server. Join it. Garry's mod should say welcome and  it sees you as superadmin
If not, then come back after trying all the steps http://forums.ulyssesmod.net/index.php/topic,383.0.html

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

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #2 on: March 19, 2011, 01:28:53 PM »
Well, I put the users.txt into settings after trying everything. I did that because I thought that that was where is used to be and that was why it wasn't working, but apparently not. I have not changed any other files other than that and changing the name of groups.txt and the other one in "Step 4". I can try it all again, and if it doesn't work I'll delete my srcds server and start again from scratch.

Also, I am not running the svn version. I am running the 3.4 version that I downloaded from the ulx homepage. I also know that the version that I used to run was not svn.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Still need help with adding users...
« Reply #3 on: March 19, 2011, 05:04:45 PM »
Though you're welcome to try, a total clean install of Gmod shouldn't need to be done (with exception of getting/correcting the /settings/users.txt file if you overwrote it with ULibs from data/ULib).
Following the steps from above post should get you up and working again, if not, we really need to know any errors you're getting in server console, and the information we ask for in the particular FAQ I pointed you to.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #4 on: March 19, 2011, 06:48:43 PM »
OK. While looking through the server console I found this error:

[LS ULIB ERROR] FATAL: Unable to load users.txt and/or groups.txt

Right now I am going to quadruple check that my SteamID did not somehow magically change.
Then I am going to try to delete the groups.txt and the other one again.
I have also attached the debug file to this reply.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Still need help with adding users...
« Reply #5 on: March 19, 2011, 06:55:40 PM »
OK. While looking through the server console I found this error:

[LS ULIB ERROR] FATAL: Unable to load users.txt and/or groups.txt

Right now I am going to quadruple check that my SteamID did not somehow magically change.
Then I am going to try to delete the groups.txt and the other one again.
I have also attached the debug file to this reply.

It's saying that you don't have a users.txt and/or groups.txt file anywhere, which means your installation has been modified. You should never touch anything under addons/ulib. The easiest would be to remove the ulib and ulx folders and redownload.
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: Still need help with adding users...
« Reply #6 on: March 19, 2011, 07:11:53 PM »
It's saying that you don't have a users.txt and/or groups.txt file anywhere, which means your installation has been modified. You should never touch anything under addons/ulib. The easiest would be to remove the ulib and ulx folders and redownload.

Indeed, I even stated that already (not pointed at Megiddo, but at you RT_Charger)
Since you may not have gotten all the necessary user files backed up, or have overwritten incorrect ones with the other, OR, went from our old release version of ULX to newest SVN beta version, I'd recommend the following.
Shutdown server.
If you ever edited/overwrote any files in your gmod/addons/ulib or ulx folders, stop it..never edit those. Delete those two folders, and get them again from how you got them first time. Once you have clean install, continue.
Delete gmod/data/ulib and ulx
Edit your gmod/settings/users.txt to make sure it's the standard Gmod default - See http://wiki.garrysmod.com/?title=Player_Groups
Place yourself in that users.txt file without //, and only in the superadmin area.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #7 on: March 19, 2011, 08:21:49 PM »
Now I wiped my harddrive of my srcds server and reinstalled it. I have added no addons. I ran the server once without ulx installed, and got an error about "srcds.exe Entry point not found" or something. I found this link to fix it:
http://forums.srcds.com/viewtopic/15997

I did what they told me to do and renamed steamclient.dll, then ran the server again with no errors.
I then closed the server and installed ulx to:
c:\program files (x86)\valve\hlserver\gmod1\orangebox\garrysmod\addons

I then ran the server to write any necessary files and received this error in the console:
Unable to remove c:\program files (x86)\valve\hlserver\gmod1\orangbox\garrysmod\data\ULib\misc_registered.txt!

I thought that it just didn't write the files and I closed and restarted the server again. Same error. I tried closing and restarting again, and still have the error.

I have not even copied in my users.txt file yet. I will wait for assistance from ya'll because you know what your talking about.

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #8 on: March 19, 2011, 08:27:48 PM »
Sorry, I forgot to about the debuginfo.
Here it is.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Still need help with adding users...
« Reply #9 on: March 19, 2011, 08:44:44 PM »
Not sure why you got that error, unless it was because a gmod update causes that error since the 'release' version your using is old.
May also be because the Windows 'user' that the game is running as doesn't have write/modify access to the gmod subfolders.
(Not sure how Windows 7/Vista work now in regards to that)
Debug looks normal, but you weren't connected.

Ok, this next step really has nothing to do with ULX, (but ULib will import from it), add yourself to Gmod's users.txt file so ULib knows you will be superadmin, AND, all other mods that require superadmin access will know.
http://wiki.garrysmod.com/?title=Player_Groups
Shutdown serve, add yourself.
Though that example uses player in both super and admin, don't place yourself in both, and, don't use // in front of your username (just like that article says)
Just put yourself in the file garrysmod/settings/users.txt as superadmin with no //

If after you start server up and still ULX still won't allow you superadmin commands or status, though Gmod does (Gmod will give you a 'welcome RT, you're a superadmin on this server' in the chat window when you join.
Bring back another debuginfo file while you are connected to server, run it from server console.
You can attach or paste in your /settings/users.txt file too so we can verify you've added yourself.
« Last Edit: March 19, 2011, 08:52:21 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #10 on: March 19, 2011, 11:37:22 PM »
Ok, just a few checks before I start that.
When you say the 'release' version I'm using is old, your talking about ulx right? If so, should I use an svn version instead?
You also said to add myself to Gmod's users.txt file. Is that the one in the \settings folder or the \data\ULib folder?

I am going to try all this tomorrow. Its too late tonight.
Here is my old users.txt file if it helps any.

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #11 on: March 20, 2011, 09:04:00 AM »
OK, this is pretty weird.
I did what you told me and put my users.txt into the settings folder only, not data\ULib, and it is now letting me use my admin commands for ulx. Problem solved I guess? As I said before, I thought that users.txt always went in the settings folder, but everything online says to put it in data\ULib.
Oh well I guess. Here is my debuginfo anyway, just in case.

Edit: It also took care of that 'Unable to remove c:\program files (x86)\valve\hlserver\gmod1\orangbox\garrysmod\data\ULib\misc_registered.txt!' error.
« Last Edit: March 20, 2011, 09:10:37 AM by RT_Charger_69 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Still need help with adding users...
« Reply #12 on: March 20, 2011, 10:32:26 AM »
Glad to see everything is working.
ULib's users.txt is a totally different format than Gmod's, and therefore Gmod can't understand ULib's, ULib's can't understand Gmod's.
Looks like you had Garry's backed up and had placed it in ULibs.

Perhaps in the future we can talk Megiddo into renaming ULib's.
Though not too often, I've seen this confusion before.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RT_Charger_69

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Still need help with adding users...
« Reply #13 on: March 20, 2011, 12:09:57 PM »
Well thanks for everything. I think I got confused on which one goes where. Maybe there should be a web page similar to this one, http://wiki.garrysmod.com/?title=Player_Groups , that explains how to write the one for Ulib.
Anyway, thanks for the help!