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

TiledMapObject needs "Class" string #778

Open
differenceclouds opened this issue Jul 25, 2022 · 1 comment
Open

TiledMapObject needs "Class" string #778

differenceclouds opened this issue Jul 25, 2022 · 1 comment
Milestone

Comments

@differenceclouds
Copy link

differenceclouds commented Jul 25, 2022

The new version of Tiled has changed the property "Type" to "Class" for point objects and probably other things. If you save a .tx file in the new version, it changes any "type" properties to "class." I submitted an issue over there as well.
Edit: Checking 1.8 compatibility mode in the project properties fixes this. Leaving open because the library should probably be updated.

@AristurtleDev AristurtleDev added this to the v4.0.0 milestone May 20, 2024
@tigurx
Copy link
Contributor

tigurx commented Jun 2, 2024

I think this got fixed as part of PR #818

What is interesting is that Tiled only utilized the "Class" property for version 1.9. They reverted back to Type in Version 1.10 because of all the headaches it created for people that had utilized this functionality. I think the solution in the PR above was great because it keeps compatibility with both 1.9 and 1.10.

https://www.mapeditor.org/2023/03/10/tiled-1-10-released.html -- News post describing the reasoning from changing back to "Type" from "Class".
https://www.mapeditor.org/2022/06/25/tiled-1-9-released.html -- Initial news post describing the change from "Type" to "Class".

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

No branches or pull requests

3 participants