4.5 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.4] - 2021-10-12
Previously if only one parallax value(x or y) on a layer had been set, it would fail because pytiled-parser was assuming that if one was set then the other would be. This is not actually the case in the Tiled map file.
The value for them now defaults to 1.0 if it is not specified in the map file(This is the Tiled default value).
[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_onlywhich 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
Worldobject to support loading Tiled.worldfiles. - Full support for Wang Sets/Terrains
Changes
- The
versionattribute ofTiledMapandTileSetis now a string with Tiled major/minor version. For example"1.6". It used to be a float like1.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
-
Added support for Parallax Scroll Factor on Layers. See https://doc.mapeditor.org/en/stable/manual/layers/#parallax-scrolling-factor
-
Added support for Tint Colors on Layers. See https://doc.mapeditor.org/en/stable/manual/layers/#tinting-layers
[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