Files
pytiled_parser/CHANGELOG.md
2021-08-28 12:02:50 -04:00

4.1 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,

[Unreleased]

[1.5.3] - 2021-08-28

Just a small bugfix in this release. Previously if a layer's offset was (0, 0), the values for it would not appear in the JSON file, so the offset value in the Layer class would be None. This can cause some unexpected behavior in engines or games, and puts the responsibility of checking if this value exists onto the game or engine using it.

This value has been changed to default to (0, 0) if it is not present in the JSON so that games can apply it easily in one line and always get the same result without error.

[1.5.2] - 2021-07-28

This release contains some re-working to properly support templates.

Previously templates were supposedly fully supported, however they were broken for tile objects. Now there should be out of the box support for auto-loading tile objects from templates. Regardless of where the tileset is defined. See Issue https://github.com/benjamin-kirkbride/pytiled_parser/issues/41 for details

There are no API changes as far as usage is concerned, these were all internal changes to properly support the feature.

This release also contains some minor fixes to docstrings and typing annotations/linting problems.

[1.5.1] - 2021-07-09

This release contains two bugfixes:

  • Pinned minimum attrs version to usage of kw_only which was introduced in 18.2.0. See https://github.com/Beefy-Swain/pytiled_parser/pull/39
  • Fixed color parsing to be correct. Tiled saves it's colors in either RGB or ARGB format. We were previously parsing RGB correctly, but if an alpha value was present it would be parsed if it were RGBA and so all the values would be offset by one.

[1.5.0] - 2021-05-16

This release contains several new features. As of this release pytiled-parser supports 100% of Tiled's feature-set as of Tiled 1.6.

As of version 1.5.0 of pytiled-parser, we are supporting a minimum version of Tiled 1.5. Many features will still work with older versions, but we cannot guarantee functionality with those versions.

Additions

  • Added support for object template files
  • Added World object to support loading Tiled .world files.
  • Full support for Wang Sets/Terrains

Changes

  • The version attribute of TiledMap and TileSet is now a string with Tiled major/minor version. For example "1.6". It used to be a float like 1.6. This is due to Tiled changing that on their side. pytiled-parser will still load in the value regardless if it is a number or string in the JSON, but it will be converted to a string within pytiled-parser if it comes in as a float.

[1.4.0] - 2021-04-25

  • Fixes issues with image loading for external tilesets. Previously, if an external tileset was in a different directory than the map file, image paths for the tileset would be incorrect. This was due to all images being given relative paths to the map file, regardless of if they were for an external tileset. This has been solved by giving absolute paths for images from external tilesets. Relative paths for embedded tilesets is still fine as the tileset is part of the map file.

[1.3.0] - 2021-03-31

[1.2.0] - 2021-02-21

Changed

  • Made zstd support optional. zstd support can be installed with pip install pytiled-parser[zstd]. PyTiled will raise a ValueError explaining to do this if you attempt to use zstd compression without support for it installed. This change is due to the zstd library being a heavy install and a big dependency to make mandatory when most people probably won't ever use it, or can very easily convert to using gzip or zlib for compression.

[1.1.0] - 2021-02-21

Added

  • Added support for zstd compression with base64 encoded maps
  • Better project metadata for display on PyPi

[1.0.0] - 2021-02-21

Initial Project Release