Closed LaserWitch closed 1 year ago
Hi I'll have a look! I was just looking at finalizing and releasing: https://github.com/makspll/bevy_mod_scripting/pull/63, so if there is an issue in that example it will be fixed on main very soon.
I think the issue is that "world" as a global has been moved into the BevyAPIProvider, which needs to be installed as in the bevy api examples
I can confirm that your latest changes on that branch make it run properly on my machine. Thanks!
lovely, thanks for letting me know and good catch!
Resolved as of the 0.11 branch merge
I've cloned the repository locally and tried to run the wrappers example from it with
cargo run --example wrappers --features="lua lua54 lua_script_api"
. I get this result after the initial startup info lineI've tried this test on both the main branch and the 0.11 branch with the same result
If I read the code correctly, I believe it's supposed to error in the second script run, but not the first. It appears that the issue comes from
I changed it to
and got
Getting access to the world like this is really the thing I need most out of the crate right now, so any help would be very appreciated.