hx-lua icon indicating copy to clipboard operation
hx-lua copied to clipboard

lua.loadLibs(["base", "math"]) - Main.exe has stopped working.

Open PDeveloper opened this issue 11 years ago • 9 comments

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!

PDeveloper avatar Oct 29 '14 18:10 PDeveloper

Oops, using lua.setVars() also does this!

PDeveloper avatar Oct 29 '14 18:10 PDeveloper

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)

PDeveloper avatar Oct 29 '14 20:10 PDeveloper

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()

guoboism avatar Dec 26 '14 04:12 guoboism

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.

PDeveloper avatar Dec 30 '14 11:12 PDeveloper

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

kevinresol avatar Feb 25 '15 10:02 kevinresol

I have fixed the whole bunch of thing in this fork. Also added flash support.

kevinresol avatar Apr 01 '15 03:04 kevinresol

@kevinresol :+1:

zaxebo1 avatar Apr 01 '15 04:04 zaxebo1

@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

zaxebo1 avatar Apr 03 '15 02:04 zaxebo1

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.

kevinresol avatar Apr 03 '15 02:04 kevinresol