You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image source path is relative, but that does not work with bevy as expected:
2023-10-26T21:40:10.300148Z WARN bevy_asset::asset_server: encountered an error while reading an asset: path not found: /home/erayerdin/Projects/Trash/bvplatform/assets/levels/levels/../kings_and_pigs/Sprites/14-TileSets/Terrain (32x32).png
2023-10-26T21:40:10.300199Z WARN bevy_asset::asset_server: encountered an error while reading an asset: path not found: /home/erayerdin/Projects/Trash/bvplatform/assets/levels/levels/../kings_and_pigs/Sprites/11-Door/Idle.png
2023-10-26T21:40:10.300250Z WARN bevy_asset::asset_server: encountered an error while reading an asset: path not found: /home/erayerdin/Projects/Trash/bvplatform/assets/levels/levels/../kings_and_pigs/Sprites/14-TileSets/Decorations (32x32).png
The path defined in TMX is ../kings_and_pigs/Sprites/14-TileSets/Terrain (32x32).png. On the other hand, it is resolved as levels/levels/../kings_and_pigs/Sprites/14-TileSets/Terrain (32x32).png. levels directory is added twice for some weird reason.
The text was updated successfully, but these errors were encountered:
Since I ran into this recently as well, as pointed out by @divark, here is minimal example using their 0.12 fixes branch, but the issue should be the same with the 0.11 version of this library as well: https://github.com/mbrc12/minimal-example-for-tiled-issue.
As mentioned in my comment in #489 (comment), and then clarified by @divark subsequently, there is an issue with how the tiled crate parses paths now.
Already pointed out here but let me elaborate.
Let's assume we collect our level files under
assets/levels/level1.tmx
and such.tmx
files refer to tilesets in their XML structure like so:Image source path is relative, but that does not work with bevy as expected:
The path defined in TMX is
../kings_and_pigs/Sprites/14-TileSets/Terrain (32x32).png
. On the other hand, it is resolved aslevels/levels/../kings_and_pigs/Sprites/14-TileSets/Terrain (32x32).png
.levels
directory is added twice for some weird reason.The text was updated successfully, but these errors were encountered: