It is currently April 19th, 2019, 7:18 pm

Install Lua libraries

Discuss the use of Lua in Script measures.
Masterval
Posts: 1
Joined: April 5th, 2019, 9:28 pm

Install Lua libraries

Masterval » April 5th, 2019, 9:51 pm

Hi everyone, I've been wondering if it's possible to install libraries for lua 5.1 and what is the procedure to install them for rainmeter?
User avatar
jsmorley
Developer
Posts: 19178
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Install Lua libraries

jsmorley » April 5th, 2019, 10:08 pm

It is not possible to use compiled Lua libraries with the Rainmeter implementation of Lua. You can use external .lua files as a library, by simply calling it with dofile in the Initialize() function of your script, but you can't use compiled libraries or the require function.