Getting started building new addon #2230
-
Hi there, I'm rather new to Lua and it's ecosystem, so please bear with me. I've read through the wiki about addons but I didn't seem to get it all set up quite right. Now, how is it supposed to work? I expect VS being able to find the template' http.lua file with it's definitions and give me auto-complete suggestions, but it doesn't. I've also tried copy-pasting the template to the addons folder of the Addon Manager, applying the folder structure seen there (info.json + module/library), but trying to enable it in the manager throws an error, since it's not up in the repository yet. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello 👋 Could you share your configuration file? If you are just looking to use definition files, you can just specify the path to them using
|
Beta Was this translation helpful? Give feedback.
Ah, the http example is using Lua modules, so it creates
http
as a local table, inserts the functions into it, and returnshttp
. In other words, the given example is not global and must be required: