• Loading addons on Linux
    3 replies, posted
I'm creating an addon for gmod, and testing on my Windows server. After sending the plugin to the person I'm creating it for, it became apparent that the Linux installation process for addons is very different than that of Windows. For me, on Windows, all I have to do is drop the addon folder in garrysmod/addons, and then garrysmod/addons/MyAddon/lua/autorun is run automatically on the server. For him, (Ubuntu 6.x if relevant..), garrysmod/addons has no effect, even after server restart. The only addon he gets to load with this method is ULX, presumably because the autorun in ulx is called by files in garrysmod/lua/autorun? His typical addon installation process involves taking all the subdirectories out of an addon, and dropping them in the corresponding server directories. So MyAddon/lua gets dropped in garrysmod/lua, and likewise all folders inside are merged. Can someone explain to me the difference, and how I should tell my users to install addons? Is this an isolated event, or do all Linux users have to install addons this way? EDIT: Probably relevant: My server directories inside lua (autorun, vgui, etc) contain default gmod files, like ALL the derma elements, etc. His directories inside lua contain almost entirely addon lua files.
OS doesn't matter for addon installation. He either he messed something up bigtime with his server or he is not putting it in the addon folder right (it would not surprise me). Also btw ULX is in no way special.
Linux only loads files with lowercase names.
Oh that makes sense. A lot of my lua files had capitals. Fixed it now, will test tomorrow. Why does it work when he puts the lua files in garrys/mod/lua then?
Sorry, you need to Log In to post a reply to this thread.