ULX

Author Topic: 8 lua errors on join in my server  (Read 2987 times)

0 Members and 1 Guest are viewing this topic.

Offline dakilla345

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
8 lua errors on join in my server
« on: July 23, 2013, 11:37:11 AM »
I need help

[ERROR] lua/skins/cl_init.lua:32: attempt to index global 'GM' (a nil value)
  1. unknown - lua/skins/cl_init.lua:32
   2. include - [C]:-1
    3. unknown - addons/ulx/lua/ulx/xgui/settings/client.lua:99
     4. include - [C]:-1
      5. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:119
       6. Call - addons/ulib/lua/ulib/shared/hook.lua:183
        7. fn - addons/ulib/lua/ulib/cl_init.lua:45
         8. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: 8 lua errors on join in my server
« Reply #1 on: July 23, 2013, 01:31:12 PM »
This isn't 8 errors. It's simply a stack trace of a single error. We can't help you unless you provide the code that is causing errors though. Namely the skins/cl_init.lua file.

Also, this isn't related to ULib or ULX so I'm moving this thread to off topic.

Offline dakilla345

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: 8 lua errors on join in my server
« Reply #2 on: July 23, 2013, 03:39:57 PM »
acutually it is caused by ulix or ulib cuz if I uninstall it the server works just fine

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: 8 lua errors on join in my server
« Reply #3 on: July 23, 2013, 04:42:52 PM »
acutually it is caused by ulix or ulib cuz if I uninstall it the server works just fine

Last time I checked ULX did not have a file called cl_init.lua under the skins folder. I would say its an error with a custom player model due the location of the file but I am not quite sure.
I cry every time I see that I am not a respected member of this community.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: 8 lua errors on join in my server
« Reply #4 on: July 23, 2013, 07:30:19 PM »
acutually it is caused by ulix or ulib cuz if I uninstall it the server works just fine
To give more detail on what Hellfox and MrP have already said, though you may experience the error with ULX installed, it's not directly caused by Ulib or ULX.
ULib enhances Gmod's hooks...we allow for setting a parameter along with the hook that, simplified, sets it a priority, makes it read-only if needed. Can't be overwritten.
It seems you have an addon, that uses hooks, that is probably written in such a way that flips out.
The error you're getting seems to indicate it's written in a way that's not quite right, and are lucky to have it run most times until some other addon tries to use hooks like we do.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: 8 lua errors on join in my server
« Reply #5 on: July 24, 2013, 05:23:37 PM »
Are you using a custom skin and getting this error when opening XGUI? I think Stickly Man said somewhere that XGUI doesn't support custom skins...
Experiencing God's grace one day at a time.