Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1151

Lua Scripting • Re: How to install a module?

$
0
0
I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.
But rainmeter only support loading external library in lua script and it is impossible to use the module.
How to solve it?
When I've used a (standalone) Lua module I just replaced the following syntax:

Code:

someModule = require "someModule"
With the following within the opening `Initialize()` function of a script (where the `@` represents the root 'Resources' directory of the skin):

Code:

someModule = dofile(SKIN:GetVariable('@')..'someDir\\someFile.lua')
(These are all just placeholder names but you hopefully get the idea)

Statistics: Posted by Crest — Yesterday, 1:48 pm



Viewing all articles
Browse latest Browse all 1151

Trending Articles