flare-engine icon indicating copy to clipboard operation
flare-engine copied to clipboard

Tiled map tutorial: Import object types is different in 1.9.2

Open Ethanol6 opened this issue 2 years ago • 3 comments

I'm following along with the tutorial to create maps with Tiled. However, there is no longer a menu item under "view" for "import object types". I found no way of importing the objecttypes.xml file.

Also, it would appear that the type attribute has been replaced by class. https://doc.mapeditor.org/en/stable/manual/custom-properties/#custom-classes

Ethanol6 avatar Feb 15 '23 06:02 Ethanol6

It looks like it got renamed, but the feature is still there. Go to View -> Custom Types Editor and then click Import. In the file dialog, you'll need to change the filter from Custom Types files to Object Types XML. I added a note to the wiki page to reflect this.

Didn't know about the change from "type" to "class". The old format should still work, at least with Tiled 1.9.2.

dorkster avatar Feb 15 '23 15:02 dorkster

Yeah, I see that option but it is greyed out. Doesn't seem to change depending on what layers or objects I have selected.

Ethanol6 avatar Feb 16 '23 06:02 Ethanol6

I see. It looks like that feature only works if you're working in the context of a project. So you'll need to create project with File -> New -> New Project first, and then add the folder which contains your map to it.

dorkster avatar Feb 16 '23 16:02 dorkster