#1 Members - Reputation: 182
Posted 22 May 2012 - 08:54 AM
i'm searching a way to embedd Lua scripts in java code. I've tried to compile and install LuaJava but I've had the same error message both from Mac and Linux. I've changed the config file properly. It only works with Lua 5.1.1 (i have 5.2 version) ? Any suggestions about LuaJava or other libraries? Thank you!
#2 Members - Reputation: 683
Posted 24 May 2012 - 01:45 AM
So if LuaJava was developed for 5.1, you have to downgrade your Lua to 5.1.
I didn't have experience with Lua in Java, but if you don't mind to change script language, I've ever used Rhino Javascript engine for Java, it works fine for me.
http://www.cpgf.org/
cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.
v1.5.5 was released. Now supports tween and timeline for ease animation.
#4 Members - Reputation: 683
Posted 24 May 2012 - 08:00 PM
Not about your question, but before I used Rhino Javascript, I tried to google for Lua Java binding, but I didn't get good result. That's why I had to use JS instead.Yes Lua 5.2 has many different things from 5.1 version, but i think there is a library for 5.2 version..Lua is one of the most used scripting language for video game development! Thank you for your answer!
Some Lua Java binding requires JNI, so it's not that easy to cross platform (I need cross platform, but since you are developing video game, you may not need it).
If you find any good cross platform Lua Java binding, don't forget to come to give your experience. :-)
http://www.cpgf.org/
cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.
v1.5.5 was released. Now supports tween and timeline for ease animation.
#5 Members - Reputation: 182
Posted 25 May 2012 - 02:53 PM






