Skip to content

feat: Use handles with Bevy 0.16 support #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

shanecelis
Copy link
Contributor

@shanecelis shanecelis commented Jul 2, 2025

I felt bad about leaving you with a conflicted merge situation with my "use-handles" #427 with and @alexparlett's #422 "Update to Bevy 0.16", which I also want to see accepted, so I went ahead and merged @alexparlett's work on top of mine in this PR.

I think it'd be nice to have one last BMS release for Bevy 0.15 that includes #427 but that's your call.

I've intentionally left the code in a rough state. I haven't run cargo format or cleaned up the warnings because I wanted to make the issue of merging and rebasing less fraught. I wouldn't want to clean up #427 if a Bevy 0.15 release is not going to happen.

So what is your release plan? Will another BMS for Bevy 0.15 be cut? Which PRs will go into it?

shanecelis and others added 30 commits June 26, 2025 22:44
This introduces a serde dependency though. :(
We don't need them since asset's know their language.
It's a duplicate with Script::id now.
I fought with HandlerContext trying to add a Query to it for the longest
time.
Log is flooded with these two lines:
```log
2025-06-28T11:46:54.321715Z ERROR bevy_mod_scripting_core::handler: Rhai: Failed to query entities with scripts: Cannot claim access to base type: Global. The base is already claimed by something else in a way which prevents safe access. Location: "/Users/shane/Projects/bevy_mod_scripting/crates/bevy_mod_scripting_core/src/extractors.rs:337". Context: Could not claim exclusive world access
2025-06-28T11:46:54.322046Z ERROR bevy_mod_scripting_core::handler: Lua: Failed to query entities with scripts: Cannot claim access to base type: Global. The base is already claimed by something else in a way which prevents safe access. Location: "/Users/shane/Projects/bevy_mod_scripting/crates/bevy_mod_scripting_core/src/extractors.rs:337". Context: Could not claim exclusive world access
```
* Move from utils::HashMap to platform::collections::HashMap
* Change to IntoSchedules vs IntoSystems
* Change in namespaces

Fix compile issues not seen when using as branch

Update bevy_console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants