StarArawn / bevy_ecs_tilemap

A tilemap rendering crate for bevy which is more ECS friendly.
MIT License
853 stars 189 forks source link

Update to Bevy 0.14 #516

Open rparrett opened 4 months ago

rparrett commented 4 months ago

Opening this issue so we have a central place to talk about a release that supports Bevy 0.14.

bevy_ecs_tilemap has not yet done a crates.io release that is compatible with Bevy 0.14. The latest release was compatible with Bevy 0.12.

Bevy 0.14 support has been merged into the main branch now though, and you can use bevy_ecs_tilemap in your own projects without a crates.io release by doing the following in your Cargo.toml:

bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap" }
theshortcut commented 4 months ago

Thanks @rparrett, I've used that branch to update bevy_ecs_ldtk over here https://github.com/Trouv/bevy_ecs_ldtk/pull/302 and things look good in examples at least!

nablabla commented 4 months ago

I added the above line to mein Cargo.toml. But still get these:

   Compiling wgpu v0.17.2
error[E0432]: unresolved import `web_sys::GpuTextureFormat`
   --> C:\Users\Jan\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.2\src\backend\web.rs:168:9
    |
168 |     use web_sys::GpuTextureFormat as tf;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `GpuTextureFormat` in the root

I was directed here from https://github.com/StarArawn/bevy_ecs_tilemap/issues/488 Also i did not use the 'tilemap' before

rparrett commented 4 months ago

It is likely that you have multiple versions of Bevy in your dependency tree still. (From your error message, wgpu 0.17 is associated with Bevy 0.12. Bevy 0.13 upgraded to wgpu 0.19.) Perhaps another plugin also needs to be updated?

You can use cargo tree -i bevy to figure out where those duplicates are coming from.

OwenTrokeBillard commented 2 months ago

Any plans to publish 0.13 support on crates.io?

I have been using this for a few weeks and it works fine. If there are bugs (e.g., https://github.com/StarArawn/bevy_ecs_tilemap/issues/521) a fix can be published later.

jgayfer commented 2 months ago

Looks like there's already an approved PR for #521.

OwenTrokeBillard commented 2 months ago

@StarArawn Thank you for your excellent work on this crate. Support for Bevy 0.13 appears to be ready but there has been no activity for a while.

I would really appreciate it if you published the latest changes so we don't need a git dependency and bevy_ecs_ldtk can also release.

Please let me know if I can help.