Averice Posted January 12, 2015 Share Posted January 12, 2015 I don't know if this is on purpose or not but whenever I require a non-lua library it crashes before launching, I can just ffi the C versions of these libs but that's not what I want to do. Is there any ideas on why this is? It's not the libraries themselves as they run perfectly with the lua interpreter outside leadwerks. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 12, 2015 Share Posted January 12, 2015 I think you have to use import instead of require. Not sure though. Quote Link to comment Share on other sites More sharing options...
Averice Posted January 12, 2015 Author Share Posted January 12, 2015 I think you have to use import instead of require. Not sure though. import tries to read it as lua and gives me lua errors on the symbols inside the file. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 12, 2015 Share Posted January 12, 2015 Are you inside the Lua sandbox mode? Via the options menu you can disable this. Quote Link to comment Share on other sites More sharing options...
Averice Posted January 12, 2015 Author Share Posted January 12, 2015 No I've disabled sandboxing so I can use require, and require works fine except when I try to require .dll Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.