Posted June 27, 2024 by Thorbjørn Lindeijer
#Release
Tiled 1.11 brings many scripting API additions, automapping enhancements, export plugin improvements, and various quality-of-life changes and bug fixes.
Notable additions to the scripting API include support for working with worlds, conveniently setting nested object properties, accessing tile images, creating color values, and modifying tileset margin and spacing.
Additionally, a --project command-line parameter was added to allow project extensions to be loaded when using the --export-map, --export-tileset or --evaluate parameters.
A host of small but useful usability improvements have been made. The “Move Object to Layer” menu now displays group layer names. The Ctrl+Shift+S shortcut is now “Save As” by default, to match most other applications. Duplicating layers no longer adds “Copy” to the name by default.
To move rectangular areas of tiles, you can now hold Shift while right-click dragging to “cut” the captured tile stamp. This can provide a quick alternative to switching to the tile selection or eraser tools.
When a read-only file is opened, a lock icon is now shown in its tab. This is particularly useful for people using file locking in the context of version control.
The Godot 4 export plugin now supports exporting objects. Objects you wish to export need to have a custom resPath property set on them, in the form of res://<object path>.tscn, indicating the Godot object you wish to replace the object with. Also, the support for exporting flipped tiles has been updated to use the new tile transformation flags added in Godot 4.2. Finally, the positioning of collision objects was fixed.
If this export option doesn’t fit your needs, the Tiled Importer for Godot 4 remains a good alternative with a very extensive feature set.
The Python plugin now supports implementation of custom tileset formats. Also, the Windows 10+ release of Tiled now uses Python 3.12 (previously 3.8 was used). It is however recommended to extend Tiled with JavaScript instead, which has more features and better availability.
The positioning of objects on isometric maps when exporting to GameMaker 2 was fixed.
While not technically an exporter, the tmxrasterizer utility shipping with Tiled provides a way to quickly turn a map (or an entire world) into an image. For this release, it gained --hide/show-object arguments for fine-grained control over object visibility. It also gained --frames and --frame-duration arguments to export animated maps as multiple images. The --hide/show-layer arguments now work on group layers.
Also, the loading of object templates in .tx format was fixed, allowing tmxrasterizer and tmxviewer to render template instances.
The Automapping feature has been made more convenient with three behavioral changes:
Ignore empty outputs per-rule: This is useful when your rules have multiple output variations, but not all of them have the same amount of variations. Now, only those output indices with actual output for a given rule are considered. The special “Ignore” tile can be used if you need an empty variation.
Ignore flip flags: There are now per-input-layer options to ignore flip flags, which can greatly reduce the amount of needed input patterns.
Always apply output sets with empty index: When a rule has multiple variations, but part of its output should always be applied, now you can just leave out the “index” part of the relevant output layers. Previously this counted as a variation of its own.
Finally, the Automapping feature no longer fails add new tilesets used by applied changes.
The way maps are reloaded when they are changed externally was rewritten to fix issues with reloading maps in the context of worlds. Also, loaded maps and tilesets which are currently not opened for editing, are now also reloaded when they change on disk.
With the “Resolve object types and properties” export option enabled, members of custom classes used as properties are now also exported with their default values.
When changing the type of a terrain set, remaining labels that are only relevant for a different type are now hidden and ignored by the Terrain Tool.
Many other small improvements could not be mentioned, so check out the full changelog below.
Object.setProperty overload for setting nested valuesTile.image for accessing a tile’s image dataImage.copy overload that takes a rectangleTileset.imageFileName and ImageLayer.imageFileNameFilePath.localFile and FileEdit.fileName (string alternatives to Qt.QUrl properties)tiled.color to create color valuesTileset.margin and Tileset.tileSpacing writable--hide-object and --show-object arguments (by Lars Luz, #3819)--frames and --frame-duration arguments to export animated maps as multiple images (#3868)--hide/show-layer to work on group layers (#3899)tiled.activeAssetContinued Tiled development is made possible by monthly donations through Patreon, GitHub Sponsors and OpenCollective as well as many people choosing to pay for Tiled on itch.io. This way, hundreds of people have contributed to the release of Tiled 1.11, thank you!
If you haven’t donated yet, please consider setting up a small monthly donation to support further improvements. Let’s make this tool even better!