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
csueiras
changed the title
Use TileMapLayer for Godot exports as opposed to deprecated TileMapLayer
Use TileMapLayer for Godot exports as opposed to deprecated TileMap
Dec 1, 2024
Just to note, this would be a breaking change for anyone that is using Godot 4.0-4.2. Not sure if the plugin can read the project file and determine the project version or not.
Yeah I did a good amount of digging into this and even started writing my own export plugin purely in javascript but decided to abandon and use YATI instead. Its easier to make sure things all work well if its an import flow in Godot as opposed to this export mechanism.
Either way the current export plugin can generate the necessary things to then have Godot itself migrate it to a TileMapLayer so that perhaps is wnough of a workaround for the time beinf for most people.
Describe the bug
Tiled exports to Godot using the
TileMap
node which has been deprecated (https://docs.godotengine.org/en/stable/tutorials/migrating/upgrading_to_godot_4.3.html#id4).I think the change on the plugin is small-ish, it currently produces this:
We want:
So the primary complexity is implementing the change from the int32 array into the data format in the byte array.
I'm not sure if the specs are documented anywhere, but the Godot code is easy enough to follow as a spec (https://github.com/godotengine/godot/blob/9aed9eca40127bcf21ecd71d25fe8809f345d9e3/scene/2d/tile_map_layer.cpp#L2844) and the marshaling functions are defined here https://github.com/godotengine/godot/blob/9aed9eca40127bcf21ecd71d25fe8809f345d9e3/core/io/marshalls.h.
To Reproduce
Steps to reproduce the behavior:
TileMap
nodeExpected behavior
The export should not produce a deprecation warning.
Specifications:
Not exactly sure if this is a bug or a feature request, please feel free to re-label.
The text was updated successfully, but these errors were encountered: