Ulysses

General => Off-Topic => Topic started by: dakilla345 on July 23, 2013, 11:37:11 AM

Title: 8 lua errors on join in my server
Post by: dakilla345 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
Title: Re: 8 lua errors on join in my server
Post by: MrPresident 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.
Title: Re: 8 lua errors on join in my server
Post by: dakilla345 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
Title: Re: 8 lua errors on join in my server
Post by: LuaTenshi 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.
Title: Re: 8 lua errors on join in my server
Post by: JamminR 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.
Title: Re: 8 lua errors on join in my server
Post by: Megiddo 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...