Author Topic: Unauthed player  (Read 6207 times)

0 Members and 1 Guest are viewing this topic.

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Unauthed player
« on: September 29, 2015, 10:00:05 PM »
Hi, I've just rented a server from nfo and I'm running into trouble getting ulx to work properly.

I'm currently using the ulib/ulx from their corresponding svn links in the download section and when I try to use !menu I get

"[ERROR] Unauthed player
  1. query - [C]:-1
   2. processModules - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:235
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:189
     4. Call - addons/ulib/lua/ulib/shared/hook.lua:110
      5. fn - addons/ulib/lua/ulib/cl_init.lua:49
       6. unknown - addons/ulib/lua/ulib/shared/hook.lua:110"

I've used other variations, such as the 2.52/3.62 .zip files from the download section as well as nfo's - each time I got the same error.

I removed the different versions before trying a new one, and I've also removed the gmod/data/ULib folder and ulx folders whenever switching.

Any and all help with this matter is greatly appreciated, and thank you for reading this.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Unauthed player
« Reply #1 on: September 29, 2015, 10:22:52 PM »
This issue is always caused by the PlayerAuth hook getting aborted before ULX has a chance to use it.
This could be caused by a poorly coded addon (check for other lua errors in your startup)

I've also seen where a user had improperly setup his users.txt file in garrysmod/settings/ and that caused a problem with his loading as well.



Since I don't have access to your server, you'll need to troubleshoot this yourself.
Here are my suggested steps:

1. Remove ALL addons from your addons folder. This includes unsubscribing from workshop addons.
2. Also remove ULX/ULib from your addons folder.
3. Remove the ULX and ULib folders from garrysmod/data
4. Make sure your garrysmod/settings/users.txt file is there and that IF you have modified it, it is properly modified. (you can post the contents here if you are unsure).
5. Download the latest ULib/ULX from github and install those ONLY.
6. Start up your server in SANDBOX gamemode with ONLY ULX and ULib installed.
7. See if you get that error.


IF you get the error STILL after following ALL of my steps above, post here and we can look into it. PLEASE make sure you have the latest versions from our github.

If you do NOT get the error and things seem to be working, follow the next steps until the problem comes back or doesn't... (I've seen weirder things) ONLY GO TO THE NEXT STEP IF THERE ARE NO ERRORS. What I'm saying is you need to start up your server after each step to check.
1. Change the gamemode of your server back to whatever it was. (DarkRP, TTT, Deathrun, w/e)
2. Start adding addons back. I suggest doing this 2 or 3 at a time so that if your server does break you'll have a better idea of what is doing it and can more easily narrow it down.


I know it's a lot of work, but I assure you. The current version of ULX and ULib work just fine. I have used it recently and it works great. No errors. This means, unfortunately, that any errors you are getting are being caused by something that is breaking it, which is outside of our control.

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Unauthed player
« Reply #2 on: September 29, 2015, 10:37:39 PM »
Thanks for the quick reply, unfortunately I'm still getting the same error.


[ERROR] Unauthed player
  1. query - [C]:-1
   2. processModules - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:235
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:189
     4. Call - addons/ulib/lua/ulib/shared/hook.lua:110
      5. fn - addons/ulib/lua/ulib/cl_init.lua:49
       6. unknown - addons/ulib/lua/ulib/shared/hook.lua:110


I went to https://github.com/Nayruden/Ulysses to get both ulx and ulib, and previous to this I haven't been adding anything but these two since it's a new server and I'm trying to get this working before anything else.

To clarify that I'm adding these correctly, I can just use ftp to drag these from my computer to the garrysmod/addons folder on the hosted server, correct?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Unauthed player
« Reply #3 on: September 29, 2015, 11:57:54 PM »
Make sure there are no other errors. Keep an eye on the console while the server loads.

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Unauthed player
« Reply #4 on: September 30, 2015, 12:16:02 AM »
I had my server provider wipe everything just in case I missed something when I was removing things earlier and tried again with the github files to get the same error.

http://pastebin.com/ag5FhPsW This is from the console and from the rcon tool as well.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Unauthed player
« Reply #5 on: September 30, 2015, 12:20:35 AM »
I understand that you are getting those errors when ULib is loading. I am interested in any errors that happen BEFORE ULib tries to load. I would be willing to bet that something is erroring out early on in your server load which is causing ULib to error.

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Unauthed player
« Reply #6 on: September 30, 2015, 12:25:26 AM »
How would I go about looking through the server load? I'm using the rcon tool on nfo's server control to see if anything else is going on, but I haven't noticed any errors other than the one in that pastebin.

Sorry for being unhelpful in that regard and thank you for your patience with this matter. I appreciate it.

Edit: Here is also what happens whenever both ulx/ulib are both added.

« Last Edit: September 30, 2015, 01:12:31 AM by Rybnik »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Unauthed player
« Reply #7 on: September 30, 2015, 09:38:58 AM »
This player model is the default debug model. It's what every player has before the gamemode assigns them a player model.
Having this means something is broken and the PlayerSpawn hook is broken and not calling the player model set.
ULX and ULib do not override or call the gamemode hooks that set player model, so while it's possible that something you have is clashing with ULX and causing those hooks to not get called in your gamemode, it's not ULX that is causing it.

Since you're using NFO, make sure that they haven't put any kind of scripts in your garrysmod/lua/autorun folder. I've seen that before too.

At this point, I would suggest having someone else set up your server for you, but as one last check. Please paste the contents of your garrysmod/settings/users.txt file here.

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Unauthed player
« Reply #8 on: September 30, 2015, 11:13:51 AM »
"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //

   "superadmin"
   {
         //"garry"         "STEAM_0:1:7099"
   }
   
   "admin"
   {
         //"garry"         "STEAM_0:1:7099"   
   }

}

I haven't added anything but ulib/ulx.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Unauthed player
« Reply #9 on: September 30, 2015, 11:27:23 AM »
Did you check your autorun folder? Make sure there are no scripts in there that shouldn't be.

I'll download the latest SVN again and double check that it does in fact work, but last time I checked, it worked fine. You should be having NO issues with a fresh install of Gmod and ONLY ULX/ULib installed.

What gamemode are you running? Did you try it with just Sandbox?



I have to go to class now, but I can trouble shoot this on my end further tonight.
Sorry for the delay.
« Last Edit: September 30, 2015, 11:29:42 AM by MrPresident »

Offline Rybnik

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Unauthed player
« Reply #10 on: September 30, 2015, 12:04:21 PM »
I'm on sandbox, yeah. I looked up my previous server's files and took the ulib from there to try it out (which is v2.60) and it's now working, so I have no idea.