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?
Using external LUA packages via a local luarocks tree?
Re: Using external LUA packages via a local luarocks tree?
We don't support (and disable any found methods within reason) loading external libraries.
If you want to get ahold of me I'm almost always on Discord.
Re: Using external LUA packages via a local luarocks tree?
Very reasonable. Are there any approved methods for I/O with the system?
Re: Using external LUA packages via a local luarocks tree?
Mods can write files with game.write_file or log(...). There's no system to read files.Denubis wrote:Very reasonable. Are there any approved methods for I/O with the system?
If you want to get ahold of me I'm almost always on Discord.