@hfpop
As far as I know, lua is the same no matter where it is run. KPV/Librerator acutally use LuaJIT. You might want to compile your own lua or luajit, since I think it gets statically linked with some other stuff in KPV/Librerator. (I don't really know, it changed a few times over time, and as I always say - I'm just a noob. I just modified some things. I never even read lua manual - I just looked at KPV code

)
You probably know this, but... lua docs:
http://www.lua.org/docs.html
Regards,
Kai771