gurkenlabs / litiengine

LITIENGINE 🕹 The pure 2D java game engine.
https://litiengine.com/
MIT License
725 stars 93 forks source link

Support Tiled snapshot build versions #456

Closed mmbi-glitch closed 7 months ago

mmbi-glitch commented 2 years ago

Hiya, this is @mmblah2022 from discord. Sorry if there's anything wrong with this bug report. Still learning how github works.

Describe the bug The LITIEngine UtiLITI tool does not support Tiled map versions that are denoted in date format, e.g. 2021.03.23.

Stack Trace "Caused by: de.gurkenlabs.litiengine.environment.tilemap.xml.UnsupportedMapVersionException: 2021.03.23 at de.gurkenlabs.litiengine.environment.tilemap.xml.TmxMap.checkVersion(TmxMap.java:583) at de.gurkenlabs.litiengine.environment.tilemap.xml.TmxMap.afterUnmarshal(TmxMap.java:484) ... 74 more"

To Reproduce Steps to reproduce the behavior:

  1. Load any TiledMap from recent versions of Tiled that generate maps with version in date format into Utiliti editor.

Expected behavior

The map to load correctly.

Screenshots If applicable, add screenshots to help explain your problem.

Your System:

Additional context Add any other context about the problem here.

github-actions[bot] commented 2 years ago

Thank you for your reporting your first LITIENGINE issue! We are looking forward to your further contributions.

nightm4re94 commented 2 years ago

Snapshot versions of the Tiled editor produce map versions that defy the usual versioning scheme. tiledversion: The Tiled version used to save the file (since Tiled 1.0.1). May be a date (for snapshot builds). (optional) It remains to be discussed whether we need to support this, or just make the error handling and information process more insightful.