Git Product home page Git Product logo

Comments (3)

gilzoide avatar gilzoide commented on June 29, 2024

Hmm, I've never used effil, but we can look at the error message to get some info.

  • Error loading script metadata: Thr the error is happening when running your script and Thr is the error message, which is weird, since it's the string you're passing to the created thread. If you change the text, does the error message change to the same thing?
  • [string "res://Nodeee.lua"]:14: in main chunk: the error occurs on the "main chunk" of the script, so it's outside of any functions when the error occurs. Error is in line 14, which exactly is line 14 there?

So, somehow it seems the string Thr is involved in the error, so the call to the thread must be happening. Maybe it is erroring right there, but maybe it's the wait, whichever line is 14 might be the culprit.

The effil.dll file is located inside the res:// folder.

If effil = require("effil") didn't error, your setup should be fine and the problem is probably somewhere else.

from godot-lua-pluginscript.

gilzoide avatar gilzoide commented on June 29, 2024

As a side note, be careful when using effil with Godot related stuff.

Since effil creates a brand new Lua state per thread, these new states will probably not have defined global stuff like the GD table and types like Vector2, Array, etc. This could be dealt with by making a way to require Godot definitions, the functionality used to open the plugin's lua_State can be reused to open new states as well, but it is not possible right now.

Also, effil says here that:

Userdata and Lua threads (coroutines) are not supported.

All Godot objects are LuaJIT's C data, so I don't know how effil deals with them. Maybe it will be able to pass such data to threads, maybe it will not.

from godot-lua-pluginscript.

kunrii avatar kunrii commented on June 29, 2024

I think it's not effil, since I can run the same script with my version of luajit just fine. I tried both Godot 64 bit windows and 32 bit windows with both versions of the effil library and it fails to run with the same error, error "loading script metadata" on the call to the thread method.

from godot-lua-pluginscript.

Related Issues (20)

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.