Comments (6)
FWIW, I'm not a maintainer of this crate, but I've been experimenting with adding Teal/Lua scripting to a Bevy 0.10 project of mine.
It took a decent amount of effort to switch this project over, and in the process I fixed a couple of bugs with the game_of_life_lua example (turns out it wasn't working on master, at least not on Windows 11 anyway).
I won't claim it's bug-free, but Lua 5.4 / Teal scripting is functional on my Bevy 0.10 fork right now, so feel free to check it out if you're impatient like me: https://github.com/awestlake87/bevy_mod_scripting
Just so you know:
- I haven't touched Rhai at all yet, so my fork is probably still broken if you enable the Rhai features
- It's bare-bones, meaning it the lua/teal tests and examples work, but I haven't updated any of the docs or taken the time to tidy up what I wrote for it
- The game_of_life fix involves a small patch to the tealr project so that's why it's pointing to another fork of mine. Doesn't matter if you want plain Lua, but I like types so I figured I'd give Teal a try.
- It'll work without you having to change anything, but if this turns into a PR we'd probably have to open a PR over there too.
from bevy_mod_scripting.
@makspll sure! I created #46 for it and listed out the remaining tasks as I see it. I also noticed that you updated bevy-console to 0.7, so I updated the console_integration_lua example.
from bevy_mod_scripting.
Hey all!
@ChrisPWill thanks and yes I will be updating as soon as I can!
@awestlake87 thanks so much, these sorts of contributions help out a tonne! Some great catches there, feel free to start a PR, I can work off of it to make sure your improvements get credited back to you!
from bevy_mod_scripting.
Any more progress on this?
from bevy_mod_scripting.
This should be covered by #47. Apologies for the long delay, I am looking for maintainers, to reduce the delay in the future if any of you are interested!
Before I release I'll need to look into the bug in the upstream tealr crate, I am considering divorcing the two crates in the generation phase, and keeping the doc generation from that crate only to reduce these issues in the future.
For everyone using this library in non crates.io released projects, do pin the commit: 75b2ded in your Cargo.toml file in the meantime
from bevy_mod_scripting.
I've managed to hotfix this directly on our side, 0.3.0 just got released, should be good to go!
from bevy_mod_scripting.
Related Issues (20)
- Bevy 0.12 HOT 2
- Can't compile with mlua anymore HOT 4
- Rune - Proxy macros HOT 2
- Luajit feature does not build. Other build issues as well. HOT 2
- lua globals are not registered until callback function. HOT 16
- tealr macro does not play nice with re-exported bevy_mod_scripting_lua crate
- Request: More exaustive tealr docgen example would be nice HOT 1
- REQUEST: Add instructions to readme on how to use bevy api gen HOT 2
- Registering a Bundle for Lua HOT 5
- Improved trait system
- Unified documentation Frontend + Backend
- Support for pre-processing HOT 1
- Feature for shared context
- Panic when mutating world from proxied raw method HOT 4
- Support for bevy 0.13.2 HOT 2
- Consider adding a WebAssembly interpreter as a host HOT 1
- Indexing the `Children` component always yields `nil` HOT 3
- Expose the proxy types for Bevy builtins HOT 10
- Support for bevy 0.14 HOT 3
- luau?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy_mod_scripting.