Titi
Parsing Lua files
I've tried using some of the Nlua functions but they don't return anything and are completely incomprehensible
using (Lua lua = new Lua())
{
bool filexists = File.Exists(extracted_filepath); // check if file exists
LuaFunction loadedfile = lua.LoadFile(extracted_filepath);
var outputstr = loadedfile.ToString();
var objects = lua.DoFile(extracted_filepath);
var callresult = loadedfile.Call(objects);
}
85 replies