flareteam / flare-engine

Free/Libre Action Roleplaying Engine (engine only)
http://flarerpg.org/
GNU General Public License v3.0
1.11k stars 187 forks source link

Tiled map tutorial: Import object types is different in 1.9.2 #1845

Open Ethanol6 opened 1 year ago

Ethanol6 commented 1 year ago

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

dorkster commented 1 year ago

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.

Ethanol6 commented 1 year ago

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

dorkster commented 1 year ago

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.