Hello, I am somewhat new to openComputers and need a little help with how libraries work.
I have read the library tutorial and that was very helpful.
My library is structured like so
local lib = {}
function lib.fun1() {
print("It worked!")
}
return lib
I placed the lib in the /lib folder under the name libname.lua, and made a program that used the lib like so:
local l0 = require("libname")
l0.fun1()
But I am getting the error:
/lib/test.lua:2: attempt to index local 'libname' (a boolean value)
I am not sure what I am doing wrong and would love some help.
Thanks,
t