Lua Rocks + Customized Environment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Lua Rocks + Customized Environment

Alysson Cunha
Someone has already integrated LuaRocks into a custom, isolated and protected Lua environment (sandbox)?

I have a RPG online software which the users can make plugins written in Lua, which:
1 - Each plugin is self contained in a single zip file
2 - Each loaded plugin have its own Lua State Instance
3 - Each plugin have its own isolated system directory and they can only access that folder. They do not have full access of the host File System.
4 - The same compiled plugin zip-file can be installed on Windows, macOS, Android and iOS without changes and recompilation.

I am studying in the possibility of integrating pure-lua LuaRocks modules in this customized enviroment. Have someone did this before?

I am wondering a good way to embed LuaRocks modules in this compiled single-zip plugin so the users of software could program plugins with the avaliable LuaRocks pure-lua modules.

--
Alysson Cunha / AlyssonRPG
http://www.rrpg.com.br - Jogue o tradicional RPG de mesa online
Reply | Threaded
Open this post in threaded view
|

Re: Lua Rocks + Customized Environment

Alysson Cunha
Additional Info:
5 - Each plugin zip-file has no external dependencies. Everything the plugin needs it is also contained in the same zip-file.

On Sat, Jul 7, 2018 at 3:58 PM Alysson Cunha <[hidden email]> wrote:
Someone has already integrated LuaRocks into a custom, isolated and protected Lua environment (sandbox)?

I have a RPG online software which the users can make plugins written in Lua, which:
1 - Each plugin is self contained in a single zip file
2 - Each loaded plugin have its own Lua State Instance
3 - Each plugin have its own isolated system directory and they can only access that folder. They do not have full access of the host File System.
4 - The same compiled plugin zip-file can be installed on Windows, macOS, Android and iOS without changes and recompilation.

I am studying in the possibility of integrating pure-lua LuaRocks modules in this customized enviroment. Have someone did this before?

I am wondering a good way to embed LuaRocks modules in this compiled single-zip plugin so the users of software could program plugins with the avaliable LuaRocks pure-lua modules.

--
Alysson Cunha / AlyssonRPG
http://www.rrpg.com.br - Jogue o tradicional RPG de mesa online


--
Alysson Cunha / AlyssonRPG
http://www.rrpg.com.br - Jogue o tradicional RPG de mesa online