ULX

Author Topic: LUA error after any players are added to groups  (Read 1861 times)

0 Members and 1 Guest are viewing this topic.

Offline sweetfoo

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
LUA error after any players are added to groups
« on: April 15, 2016, 04:18:59 AM »
UPDATE: I noticed UTime no longer worked and figured out that the error itself is caused by the APromote addon, but UTime is still not working and I'd still appreciate any insight as to why UTime/APromote is giving this error and not functioning properly.

I know that ULX and ULib are in stable versions, so I suppose I'm just asking for help troubleshooting.
To expand on the issue I'm having: the error below occurs every time a player joins the server, but only when players are written to usergroups. I've gone and removed addons one by one to see if it was a compatibility issue, I've deleted both ULX and ULib data folders and tried reinstalling both addons. Any ideas?


Code: [Select]
[ERROR] lua/includes/extensions/table.lua:50: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. Empty - lua/includes/extensions/table.lua:50
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:464
     4. func - addons/ulib/lua/ulib/client/cl_util.lua:22
      5. unknown - lua/includes/extensions/net.lua:32

« Last Edit: April 15, 2016, 04:46:22 AM by sweetfoo »

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: LUA error after any players are added to groups
« Reply #1 on: April 15, 2016, 05:08:56 AM »
Do you have the latest version of UTime?

Do you have the latest version of Autopromote?

I have both on my server and they work fine.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: LUA error after any players are added to groups
« Reply #2 on: April 18, 2016, 03:58:16 PM »
If you run UTime alone, do you still have issues?
Experiencing God's grace one day at a time.

Offline sweetfoo

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: LUA error after any players are added to groups
« Reply #3 on: April 20, 2016, 02:10:47 AM »
Thanks for responding! Sorry I went away for a bit.
 
I made sure everything was updated before calling it quits.
UTime doesn't seem to work on it's own but doesn't return any errors. I suppose that means UTime is what's causing this issue, since APromote runs off of it. I'll have another look over potential incompatibilities and server config, but if you guys have any clues please let me know

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: LUA error after any players are added to groups
« Reply #4 on: April 20, 2016, 08:03:45 AM »
I would suggest deleting and re-downloading the UTime addon folder (garrysmod/addons/utime) and seeing if it works after doing so.

My habit of skimming over posts has come back to bite me.

The only thing I can think of is you're not really getting the latest versions. Are you installing ULib/ULX from your host? If you are, it is likely that they are providing an outdated version.

Can you run "ulx version" in your console and post the results here?
« Last Edit: April 20, 2016, 08:12:18 AM by roastchicken »
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.