Skip to content
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

Tilemaps made in 3.x are lost when opening in 4.x #64006

Closed
and3rson opened this issue Aug 6, 2022 · 7 comments · Fixed by #72173
Closed

Tilemaps made in 3.x are lost when opening in 4.x #64006

and3rson opened this issue Aug 6, 2022 · 7 comments · Fixed by #72173

Comments

@and3rson
Copy link
Contributor

and3rson commented Aug 6, 2022

Godot version

3.5-rc8, 4.0.dev

System information

ArchLinux

Issue description

Tileset data as well as tilemap itself loses all tile configurations and renders a blank tilemap when using Godot 4.x to open project with tilemap made in 3.x.

Steps to reproduce

  • Create project with tilemap in Godot 3.5-rc8
  • Open project in Godot 4.0.dev
  • Observe blank tilemap. Textures are still in the list, but no configured tiles are visible.

3.x:
image

4.x:
image
(nothing in "Patterns" and "Terrains" as well)

Minimal reproduction project

test.zip

@Calinou
Copy link
Member

Calinou commented Aug 7, 2022

Is there any tilemap converter in place yet? cc @qarmin

@Calinou Calinou added this to the 4.0 milestone Aug 7, 2022
@and3rson
Copy link
Contributor Author

@qarmin Is this something I could help with? Tilemap migrations are probably the only thing that prevents us from fully witnessing all the beauty of 4.0.

@qarmin
Copy link
Contributor

qarmin commented Aug 17, 2022

I checked tilemaps in both 3.x and 4.0 version, but looks for me that converter cannot really handle such differences between this two versions.

I think that better and easier would be to add compatibility mode when loading tilemaps.

@and3rson
Copy link
Contributor Author

and3rson commented Sep 2, 2022

@qarmin Would that be doable? I think there are really many games that use 3.x TileMap (including our ongoing projects) and it would be a real blocker to migrate to 4.x. Another solution would be to port entire 3.x's TileMap as some sort of LegacyTileMap to preserve full backward compatibility since TileMaps in 4.x seem very incompatible with 3.x.

@groud
Copy link
Member

groud commented Sep 2, 2022

The conversion should be more or less automatic already, I implemented a few things to make sure at least atlases gets converted correctly.
Though to make it clear, don't expect full retro-compatibility from 3 to 4. There will be a lot of situations where automatic conversion is not possible.

@and3rson
Copy link
Contributor Author

@groud Sounds awesome! Are autotiles converted as well?

@groud
Copy link
Member

groud commented Jan 27, 2023

I checked the MRP, and it seems like the only tile present is an autotile one. Sadly, autotiles cannot be converted automatically from 3.x to 4.x, and thus require manual work. Could you confirm the tiles in your original project were using autotiles too ?
Otherwise, I think we can close this issue with #72173.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants