hx-lua
hx-lua copied to clipboard
lua.loadLibs(["base", "math"]) - Main.exe has stopped working.
Including any kind of lua.loadLibs() makes the exe to stop working - any solutions to this? (or am I just being dumb?) Really excited to get this working :)
Otherwise the basic examples work fine!
Oops, using lua.setVars() also does this!
Neko target works fine, these issues are on Cpp target! (The TestLua example itself stops working on my machine. Windows 7 64-bit, but using the 32-bit ndll, will try building the 64-bit one)
I got the similar problem.
I compiled the ndll with haxelib (on win7 64), I got only one window ndll generated. With this ndll, I can execute simple lua, but will crash if use setVars()
Like I mentioned, it seems this extension has been programmed exclusively for the Neko target. I was able to start getting the Cpp target working for a few things with a few modifications. I might get back to this, and make a PR.
Though the CFFI seems buggy since there are strange differences between Neko and Cpp implementations which don't make sense.
Even the example won't work on cpp
var lua = new Lua();
lua.execute("function add(a, b) return a + b end");
var result = lua.call("add", [1, 5]); // returns 6
I have fixed the whole bunch of thing in this fork. Also added flash support.
@kevinresol :+1:
@kevinresol : Please see https://github.com/MattTuttle/hx-lua/pull/4 . PDeveloper has left some comments for you , on the Pull Request(PR) of yours for fixing this bug. Please reply to him. I am personally very much interested in getting your PullRequest to be merged back into main repository of hx-lua
That's already fixed in my fork. Feel free to use. On 3 Apr, 2015 10:35 am, "zaxebo1" [email protected] wrote:
@kevinresol https://github.com/kevinresol : PDeveloper has left some comments for you , on the Pull Request(PR) of yours for fixing this bug. Please see #4 https://github.com/MattTuttle/hx-lua/pull/4 Please reply to him. I am personally very much interested in getting this PR merged.
— Reply to this email directly or view it on GitHub https://github.com/MattTuttle/hx-lua/issues/2#issuecomment-89128777.