needforhint wrote:what is irrlua?
alelink wrote:Hello,
this question maybe really stupid, so forgive me:
can I build a program that set-up Irrlicht, do others, and read the lua
scripts when needed, without running tha LUA console?
This system is suitable for creation of adventure games I think.
thanks
// Generates warning message
bool ret = (bool) lua_toboolean(L, -1);
// no warning message
bool ret = lua_toboolean(L, -1) != 0; //boolean expression makes assignment boolean
MarcoTMP wrote:Hi Zenaku, IrrLua is a great project! and as you know my project (IrrGameShell) is based on it![]()
i'd like to save .lua files in .zip and then read it from IrrLua. Is there a way to do it already, or i have to create an irrlua_dofile(filename) using irrlicht I/O functions.?
require "zip"
local zfile, err = zip.open('luazip.zip')
-- print the filenames of the files inside the zip
for file in zfile:files() do
print(file.filename)
end
-- open myscript.lua and run it
local f1, err = zfile:open('myscript.lua')
dofile(f1)
zenaku wrote:I never really thought about it but 'irrlua_dofile' for IReadFile objects would be a pretty useful ability. I'll try and add it into the next release.
Return to Project Announcements
Users browsing this forum: No registered users and 0 guests