Addons Not Working [Help]
- ren3gade
- This is my homepage
- Posts: 87
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Tue Jun 05, 2012 5:43 pm
- Location: USA
Addons Not Working [Help]
Okay, so I wiped my GMOD TTT Server tonight, and started to work on it. I had this same problem before with certain addons, and it's back again..
About 50% of my addons aren't working when installed under /garrysmod/addons
Before wiping I had this same problem, and the only way to get them to work was by placing them right into /garrysmod and letting them go into their correct folders under lua, materials, sounds, all over the place. But they worked that way. But this time around, I don't want to do that. I want a clean install, that is easy to manage.
Majority of my scripts are from Coderhire. I know people who have the same scripts, and use them in the /garrysmod/addons folder and they work fine. Loads of people on the pages for these scripts on Coderhire say it works great and installation is easy. I am installing all of these scripts exactly how they all say: unzip and put it in addons folder. Thats it. But about 50% of them wont ever work when just put into addons.
Console: http://pastebin.com/Guj9wpRH
condebug: http://pastebin.com/RvZiRKpu
So I've wiped the server twice now, and even when I just did a fresh install. Those console errors are already there. I don't know if they're anything major, but yea.
ModernMOTD wont work.
TTT Chickens weapon wont work.
Advanced TTT Equipment Menu wont work.
TTT Statistics MySQL wont work.
Any idea on how to get this fixed?
About 50% of my addons aren't working when installed under /garrysmod/addons
Before wiping I had this same problem, and the only way to get them to work was by placing them right into /garrysmod and letting them go into their correct folders under lua, materials, sounds, all over the place. But they worked that way. But this time around, I don't want to do that. I want a clean install, that is easy to manage.
Majority of my scripts are from Coderhire. I know people who have the same scripts, and use them in the /garrysmod/addons folder and they work fine. Loads of people on the pages for these scripts on Coderhire say it works great and installation is easy. I am installing all of these scripts exactly how they all say: unzip and put it in addons folder. Thats it. But about 50% of them wont ever work when just put into addons.
Console: http://pastebin.com/Guj9wpRH
condebug: http://pastebin.com/RvZiRKpu
So I've wiped the server twice now, and even when I just did a fresh install. Those console errors are already there. I don't know if they're anything major, but yea.
ModernMOTD wont work.
TTT Chickens weapon wont work.
Advanced TTT Equipment Menu wont work.
TTT Statistics MySQL wont work.
Any idea on how to get this fixed?
Re: Addons Not Working [Help]
Unless you want to go into each addons LUA files and change the file locations around a bit you're just gonna have to move them to their prospective locations. The addons LUA most likely is trying to find the addons files in those folders rather than the addons folder

Re: Addons Not Working [Help]
Hmm that's weird. I don't understand though, because some of them work fine in the garrysmod/addons folder. But then handful of them dont. And the coders instructions on them is all is to just unzip them into /addonsAeternal wrote:Unless you want to go into each addons LUA files and change the file locations around a bit you're just gonna have to move them to their prospective locations. The addons LUA most likely is trying to find the addons files in those folders rather than the addons folder
Re: Addons Not Working [Help]
yeah I don't understand why that is so. But some addons (seems to be most) need to be extracted to their correct folder due to the LUA coding looking for the files in that folder. So if an addon's LUA code would have to look for a world model for a weapon it would look like:
It would look for the files there and not garrysmod/addons/weaponfolder
Code: Select all
SWEP.ViewModel = "models/weapons/v_rif_ak47.mdl"
SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl"

Re: Addons Not Working [Help]
It's weird though.. because I looked into the .lua files of the addons that do work in /addonsAeternal wrote:yeah I don't understand why that is so. But some addons (seems to be most) need to be extracted to their correct folder due to the LUA coding looking for the files in that folder. So if an addon's LUA code would have to look for a world model for a weapon it would look like:It would look for the files there and not garrysmod/addons/weaponfolderCode: Select all
SWEP.ViewModel = "models/weapons/v_rif_ak47.mdl" SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl"
and their directories in the code are just like this: SWEP.ViewModel = "models/weapons/v_rif_ak47.mdl"
So Idk :O
Re: Addons Not Working [Help]
Hmm odd. I really don't know how that works :/ sorry. I'd still move the files to their folders

Re: Addons Not Working [Help]
Yeah, this is strange. 

Re: Addons Not Working [Help]
I dont understand what I'm doing wrong.
I wipe the server. (managed linux 6 core VDS)..
Install ULX. Set the gamemode to terrortown. Then install an addon just like it says in the /addons folder. And it doesn't work.
Gahhh...
I wipe the server. (managed linux 6 core VDS)..
Install ULX. Set the gamemode to terrortown. Then install an addon just like it says in the /addons folder. And it doesn't work.
Gahhh...
Re: Addons Not Working [Help]
The coder of ModernMOTD replied to me with this, which makes sense why half of my addons wont work in the addons folder:
and this is what that command in RCON gave me:Hi Ren3gade,
In this case it sounds like the addon has not even loaded on your server. To see if the addon has loaded you can try running this command from your RCON: lua_run PrintTable(MODERN); If you receive an error then the addon has not even been loaded; otherwise can you please send me the results and I will investigate this issue for you.
In any case users who message me about their addons not loading at all usually are seeing filesystem permission problems to the addon folder in Linux based operating systems. If you're not sure which OS your server runs on try deleting the addon then recreating the ModernMOTD folder manually with a lowercase name "modern_motd" and then re-upload the other files inside of it.
If you're still stuck after trying this I'll be happy to help you in more detail, you can add me on Steam or Skype as chuteuk.
Thanks!
Code: Select all
> PrintTable(MODERN)...
L 01/09/2014 - 04:34:15: Lua Error:
[ERROR] lua/includes/util.lua:54: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. PrintTable - lua/includes/util.lua:54
3. unknown - lua_run:1
[ERROR] lua/includes/util.lua:54: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. PrintTable - lua/includes/util.lua:54
3. unknown - lua_run:1
04:34:15 Lua Error: [ERROR] lua/includes/util.lua:54: bad argument #1 to 'pairs' (table expected, got nil) 1. pairs - [C]:-1 2. PrintTable - lua/includes/util.lua:54 3. unknown - lua_run:1
04:34:15 rcon from "206.253.195.193:33227": command "lua_run PrintTable(MODERN);"
Re: Addons Not Working [Help]
Hmm. Could you show some of the code? Especially line 54 because there seems to be a bad argument

Re: Addons Not Working [Help]
Well I did what he said. Created the folder first with the lowercase, and it worked with all of my addons that werent working!Aeternal wrote:Hmm. Could you show some of the code? Especially line 54 because there seems to be a bad argument
So it mustve really been an issue with Linux Permissions. Im working on finding out from him which linux permissions it is, then passing them on to NFO.
Re: Addons Not Working [Help]
It may be so. Garrysmod likes being specific with its files. Though I still suggest you look at line 54 in that LUA file.

Re: Addons Not Working [Help]
lua/includes/util.luaAeternal wrote:It may be so. Garrysmod likes being specific with its files. Though I still suggest you look at line 54 in that LUA file.
line 54:
Code: Select all
for key, value in pairs (t) do
Re: Addons Not Working [Help]
I believe it is missing the k*v pair. In fact it has no pair but t which is not a pair. Ask the coder about this. Tell him about the error
