deathbeam / jua Goto Github PK
View Code? Open in Web Editor NEWLuaJIT for Java on Windows, Mac OS X, Linux, Android and iOS.
License: MIT License
LuaJIT for Java on Windows, Mac OS X, Linux, Android and iOS.
License: MIT License
Is this project dead?
How can I use different LuaJIT version (i.e. the last from git) with this?
Hi there
Just wondering if there will be 64-bit windows support for the library? The results posted in the libgdx forums looked really promising :-)
hey,
this project looks like awesome,and I have try to import it by gradle.
but some issues when I run this project:
Exception in thread "main" java.lang.UnsatisfiedLinkError: io.nondev.nonlua.Lua.jniOpen(I)Lio/nondev/nonlua/CPtr;
at io.nondev.nonlua.Lua.jniOpen(Native Method)
at io.nondev.nonlua.Lua.(Lua.java:506)
at com.rpsg.rpg.view.GameViews.(GameViews.java:55)
at com.rpsg.rpg.desktop.DesktopLauncher.main(DesktopLauncher.java:40)
my op-system is win10-64 and win7-64
So I'm currently failing at using your library. I'm using this on a 64bit Linux system (Arch Linux). I've first tried using jua in my own project but that failed, then I tried to build your example without much success
β€ (normandy) ~/P/g/j/template> ./gradlew desktop:run
Configuration on demand is an incubating feature.
:core:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:core:processResources UP-TO-DATE
:core:classes
:core:jar
:desktop:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:desktop:processResources UP-TO-DATE
:desktop:classes
:desktop:runException in thread "main" java.lang.UnsatisfiedLinkError: io.nondev.nonlua.Lua.jniOpen(I)Lio/nondev/nonlua/CPtr;
at io.nondev.nonlua.Lua.jniOpen(Native Method)
at io.nondev.nonlua.Lua.<init>(Lua.java:506)
at com.mylua.project.MyLuaProject.<init>(MyLuaProject.java:10)
at com.mylua.project.desktop.DesktopLauncher.main(DesktopLauncher.java:9)
BUILD SUCCESSFUL
Total time: 1.078 secs
It did download all the dependencies before but yea...obviously something must be missing. Any way you can fix this? Or tell me if I can fix it myself? It'd be kinda swell if a library ... you know ... worked π
Anyways, would appreciate any kind of feedback. Thanks :)
Doing the following works, but I was wondering if there was a way to do it from my Java code;
java.require = function(str)
print("Access to java package" .. str .. "has been denied.");
end
I am using this utility to create an event system. Each Java βEventβ has a corresponding script file. Each file is organized like this;
event = {
eval = function(scope, gamestate, ui)
if(self:allow(scope, gamestate))
self:effect(scope, gamestate, ui);
end
end,
allow = function(scope, gamestate)
return false;
end,
effect = function(scope, gamestate, ui)
print('effect');
end
}
I loop through the events and call event.eval for each. Is there an easy way to sandbox them? I cannot really expose the lua method of doing this to the public on my release because it would be easy foranybody to unsandbox it and start screwing with the system. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.