Giter VIP home page Giter VIP logo

jua's People

Contributors

deathbeam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jua's Issues

Sandboxing each script?

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.

Example is broken

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

64-bit windows support

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

canot start this engine...

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.