It is currently April 5th, 2020, 7:27 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

Post by Masterval »

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: 20448
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Install Lua libraries

Post by jsmorley »

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.