• Addon stopped loading on srds after last update
    5 replies, posted
Hello I've been having this problem since the latest update and I am not sure if I messed something up or it is a bug with the new update. Basically, my addon's init file in lua/autorun stopped loading on a dedicated server while still working fine on a listen server. The file structure is: lua/server.lua lua/client.lua lua/autorun/init.lua The init.lua file contains this [code] print("Initializing the addon") --Never even gets here if SERVER then include("server.lua") AddCSLuaFile("client.lua") else include("client.lua") end [/code] Am I doing anything wrong? No matter what I do it just refuses to load on a srds
Check your addon has an 'addon.txt' or whatever in the folder. Also, cross-compare with similar addons to find differences. I do this everyday :eng101:
[QUOTE=Samg381;40242824]Check your addon has an 'addon.txt' or whatever in the folder.[/QUOTE] Shouldn't be needed but there seems to be a couple of issues with it missing. For example: [url]https://github.com/wiremod/wire/issues/264[/url] Would be interesting to see if that fixes it.
[QUOTE=Samg381;40242824]Check your addon has an 'addon.txt' or whatever in the folder. Also, cross-compare with similar addons to find differences. I do this everyday :eng101:[/QUOTE] [t]http://i.imgur.com/CHj4gg0.png[/t] Addon that works on the left, addon that doesnt on the right. Both lack addon.txt It doesn't even get to print() (I tried removing it too, that's not the problem)
He's not talking about the lua but what I call the "index file". Addons don't get magically get added to Garrysmod. It searches and adds all folders that have "addon.txt" inside. Without any "indexfile", it won't run. :eng101: Therefore add a textfile: "garrysmod/garrysmod/addons/<your addon>/addon.txt Be sure it contains the following: [code]"AddonInfo" { "name" "Your awesome addon name" "version" "0.6" "author_name" "superstepa" "author_url" "your url" "info" "This addon is awesome .. get it, before your friends." }[/code]
[QUOTE=Nak;40253338]He's not talking about the lua but what I call the "index file". Addons don't get magically get added to Garrysmod. It searches and adds all folders that have "addon.txt" inside. Without any "indexfile", it won't run. :eng101: Therefore add a textfile: "garrysmod/garrysmod/addons/<your addon>/addon.txt Be sure it contains the following: [code]"AddonInfo" { "name" "Your awesome addon name" "version" "0.6" "author_name" "superstepa" "author_url" "your url" "info" "This addon is awesome .. get it, before your friends." }[/code][/QUOTE] I know what addon.txt is, it's just not needed anymore But anyways after some testing it looks like the workshop was the issue, uploading the addon directly fixed it for me. I still have no idea why doesn't it work, everything else I uploaded on workshop works fine
Sorry, you need to Log In to post a reply to this thread.