TheXYZNetwork / xAdmin

A free and basic administration system for Garry's Mod.
The Unlicense
28 stars 6 forks source link

RegisterCategory (a nil value) #24

Closed theepicsaxguy closed 4 years ago

theepicsaxguy commented 4 years ago

You are releasing good shit as ussual Owain! Just have a issue currently where some addons like perma prop, awarn3 and some more wont work with your addon. Is there a solution to this or do i need to find replacements?

Kindest Regard SaxGuy.

[ERROR] addons/thirdperson/lua/thirdperson/sh_thirdperson.lua:164: attempt to call field 'RegisterCategory' (a nil value)
1. v - addons/thirdperson/lua/thirdperson/sh_thirdperson.lua:164
2. unknown - lua/includes/modules/hook.lua:84
VCMod: Sent API key to player LT Sax 1C58. 99 keys left.
VCMod: Initializing player LT Sax 1C58.
[The Epic Sax Guy|2|STEAM_0:0:79946296] Lua Error:
[ERROR] addons/awarn3/lua/includes/sh_awarn3.lua:89: attempt to call field 'RegisterPermission' (a nil value)
1. RegisterAdminModPermissions - addons/awarn3/lua/includes/sh_awarn3.lua:89
2. unknown - addons/awarn3/lua/includes/sh_awarn3.lua:102
0wain commented 4 years ago

Hey Sax! xAdmin should work with things like PermaProp, aWarn and all that other ULX native stuff by default. It uses the same classes as ULX so there should be (For the most part) backwards compatibility. Your issue might be with another addon, that is stopping xAdmin from loading and as a result upsetting the whole flow of your server's load process. Are there any other errors your server is getting on start? Try booting the server and watching the console for the first error to pop up, that is normally the culprit.

theepicsaxguy commented 4 years ago

The only issues in my console is the ones above. Seems like it is my thirdperson script that scuffs it all. https://www.gmodstore.com/market/view/thirdperson-an-advanced-third-person-suite

However awarn still wont read the usergroup

`[ERROR] addons/awarn3/lua/includes/awarn3_permissions.lua:34: attempt to call method 'xAdminHasPermission' (a nil value)
1. CheckPermission - addons/awarn3/lua/includes/awarn3_permissions.lua:34
2. DrawElements - addons/awarn3/lua/includes/awarn3_vgui.lua:212
3. OpenMenu - addons/awarn3/lua/includes/awarn3_vgui.lua:105
4. func - addons/awarn3/lua/includes/awarn3_vgui.lua:163
5. unknown - lua/includes/extensions/net.lua:32`
schneidernicholas commented 4 years ago

This isn't actually an issue with this admin mod/addon.

This is happening because this script has the exact same name and global variable as xAdmin, a premium script that is completely unrelated on gmodstore. Any scripts that add support for xAdmin and don't have a workaround for this specific admin mod will encounter this error as the addon will mistake this script for the gmodstore one.

This issue is now fixed in the !ThirdPerson addon (v1.3.2). I've also mentioned it to the author of AWarn 3, but that's at his discretion if he wants to add compatibility. Perhaps open a ticket with AWarn 3 if you want a definite answer on that.

theepicsaxguy commented 4 years ago

That explains it! Thank you guys for the help.