Commit Graph

466 Commits

Author SHA1 Message Date
Darren Eberly
248050ce74 Changelog and Version change for 2.2.2 2023-03-10 18:08:58 -05:00
Darren Eberly
ae2ab80d5d Test case and fix for object template overrides 2023-03-10 18:04:53 -05:00
Darren Eberly
481bf3e71c Actually fix world tests 2023-02-26 23:26:27 -05:00
Darren Eberly
afa36a1824 Fix world tests 2023-02-26 23:16:06 -05:00
Darren Eberly
8a31bf701d Remove old version import 2023-02-19 17:41:25 -05:00
Darren Eberly
6668b0889c Fix setuptools package find 2023-02-19 17:40:24 -05:00
Darren Eberly
6f3e903ba6 Re-run black formatting 2023-02-19 17:38:39 -05:00
Darren Eberly
117ef785ec Switch to pyproject.toml, and to ruff from flake8 2023-02-19 17:36:07 -05:00
Darren Eberly
5a9d215ec3 Fix typo in metadata classifiers 2023-01-16 17:02:28 -05:00
Darren Eberly
683e077497 Update version to 2.2.1 2023-01-16 16:58:15 -05:00
Darren Eberly
64b0eb3382 Add 3.11 as supported version and update metadata 2023-01-16 16:54:38 -05:00
Darren Eberly
9bdd7693c1 Merge pull request #65 from rl-starbound/support-legacy-starbound
Add support for pre-1.0 Tiled JSON formats
2023-01-16 11:05:59 -05:00
rl-starbound
186ecd90d3 Add support for pre-1.0 Tiled JSON formats
While attempting to parse Starbound dungeons in Tiled JSON format, I
encountered a number of parse errors. These errors appear to be due to
pre-1.0 differences in the Tiled JSON map and tileset formats. As far as
I can tell, most Starbound dungeon files were created and/or last edited
with Tiled 0.15.2.

* Map object `properties` were dictionaries rather than lists, with the
  key being the property name and the value always a string.
* Tileset `tiles` were dictionaries rather than lists, with the key
  being the tile id (integer cast as a string) and the value being a
  dictionary containing the remainder of the tile definition.
* Some map and tileset properties did not exist, or were optional.

This patch introduces minimal changes to the code to allow the Starbound
files to be parsed. There may be other legacy quirks, but these are the
only ones I've noticed in these files.
2023-01-16 10:36:46 -05:00
Darren Eberly
5635f50146 xfail world tests for now 2022-12-27 21:28:38 -05:00
Darren Eberly
f4350f8c3c Add test for single image tileset tile properties 2022-12-27 21:25:36 -05:00
Darren Eberly
390537f423 Final changelog for 2.2.0 2022-08-13 16:49:12 -04:00
Darren Eberly
f8a0a81b8d Update version and changelog for 2.2.0 2022-08-13 01:31:08 -04:00
Darren Eberly
1fed4df85f Add missing attribute to dosctring of TiledMap 2022-08-13 00:51:33 -04:00
Darren Eberly
995a6e2ff0 Make mypy happy 2022-08-13 00:49:06 -04:00
Darren Eberly
3c94bc7f16 Add support for repeatx and repeaty on layeres 2022-08-13 00:46:54 -04:00
Darren Eberly
9a92a32661 Add support for parallax origin in maps 2022-08-13 00:35:43 -04:00
Darren Eberly
83ee2c420a Formatting fixes 2022-08-13 00:17:04 -04:00
Darren Eberly
58deab5f78 Add support for image tile sub-rect 2022-08-13 00:13:19 -04:00
Darren Eberly
95ed454e95 Support for tilerendersize and fillmode on tileset 2022-08-12 23:24:39 -04:00
Darren Eberly
75049e3152 Fix more tests 2022-08-11 02:16:35 -04:00
Darren Eberly
4897117ae0 Fix CI test job 2022-08-11 02:12:19 -04:00
Darren Eberly
6e335a7fc3 More CI test fixes 2022-08-11 02:11:31 -04:00
Darren Eberly
daf522b85d Add rounding to world tests 2022-08-11 02:03:45 -04:00
Darren Eberly
471ea06e02 Add pytest actions workflow 2022-08-11 01:58:19 -04:00
Darren Eberly
b42dfcfcff Add linting actions job 2022-08-11 01:52:35 -04:00
Darren Eberly
e48c1374dc Mypy cleanup 2022-08-11 01:45:27 -04:00
Darren Eberly
b023baa6d8 Flake8 cleanup 2022-08-11 01:15:43 -04:00
Darren Eberly
e0e25f0eef Ran black formatting 2022-08-11 01:07:43 -04:00
Darren Eberly
0903e672eb Remove development pypi, only publish releases 2022-08-11 00:38:34 -04:00
Darren Eberly
f208b9b504 Final pypi publishing job 2022-08-11 00:28:52 -04:00
Darren Eberly
74ed4aedaf Fix typo in actions file 2022-08-11 00:24:32 -04:00
Darren Eberly
2950b1a86f Updates for automated pypi publishing 2022-08-11 00:23:06 -04:00
Darren Eberly
51406226de Update version and changelog for 2.1.1 2022-08-10 17:27:53 -04:00
Darren Eberly
eb8058406c Add content type to description 2022-08-10 17:22:18 -04:00
Darren Eberly
c7c9e3ef6d Merge pull request #60 from laqieer/development
Fix KeyError: 'value' for parsing TMX Map Format
2022-08-10 10:54:55 -04:00
laqieer
a0f9cf226a Fix KeyError: 'value' when parse TMX 2022-08-10 00:59:20 +08:00
Darren Eberly
17700e8146 Fix for JSON object template loading new tilesets 2022-08-02 21:06:55 -04:00
Darren Eberly
fe75327365 Update version and changelog for 2.1.0 2022-08-02 20:46:18 -04:00
Darren Eberly
54ad83245f Tiled 1.9 Compatibility Update 2022-08-02 20:28:19 -04:00
Darren Eberly
ddf314e4f0 API Reference docs update 2022-07-07 01:54:44 -04:00
Darren Eberly
25067b276f Fix readthedocs format 2022-07-07 00:27:32 -04:00
Darren Eberly
c7d5f35bd0 New docs structure 2022-07-07 00:24:52 -04:00
Darren Eberly
62202b300b Remove unnecessary check for template tileset loading 2022-06-01 01:52:14 -04:00
Darren Eberly
0213a8467d More test coverage improvements 2022-06-01 01:34:58 -04:00
Darren Eberly
4de08767e3 Bunch of test coverage improvements 2022-06-01 01:15:35 -04:00