Using external LUA packages via a local luarocks tree?
Posted: Fri Jan 06, 2017 1:34 am
Hi folks,
I'm working on my first mod to allow for an SQLite console in game. I'm running into trouble with the require statements though. Is there a mechanism by which I can load a .so/.dll included in the mod distribution via the normal require command? All of my attempts have it either expecting a pure .lua file or are not apparently looking in the right place.
I've been exploring luarocks in local tree via the instructions at: http://leafo.net/guides/customizing-the ... -tree.html and by sudo luarocks installing to system lua (which matches the reported cpath when I cause the script to print it).
Are there mechanisms for loading external libraries, or should I figure out a different way of doing this (almost certainly unwise) thing?
I'm working on my first mod to allow for an SQLite console in game. I'm running into trouble with the require statements though. Is there a mechanism by which I can load a .so/.dll included in the mod distribution via the normal require command? All of my attempts have it either expecting a pure .lua file or are not apparently looking in the right place.
I've been exploring luarocks in local tree via the instructions at: http://leafo.net/guides/customizing-the ... -tree.html and by sudo luarocks installing to system lua (which matches the reported cpath when I cause the script to print it).
Are there mechanisms for loading external libraries, or should I figure out a different way of doing this (almost certainly unwise) thing?