# Java tmx loader "staggered" or "shifted"?

**URL:** <https://discourse.mapeditor.org/t/java-tmx-loader-staggered-or-shifted/1188>\
**Category:** Bugs\
**Created:** [March 22, 2016, 12:24am UTC](https://discourse.mapeditor.org/t/java-tmx-loader-staggered-or-shifted/1188 "2016-03-22T00:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codifies](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@codifies](https://discourse.mapeditor.org/u/codifies)\
**Post date:** [March 22, 2016, 12:24am UTC](https://discourse.mapeditor.org/t/java-tmx-loader-staggered-or-shifted/1188/1 "2016-03-22T00:24:43Z")

</div>

When I tried to load a map using libtiled.jar from tiled git I got the following error message

Unknown orientation ‘staggered’

in TMXMapReader.setOrientation I added

```
    } else if ("staggered".equalsIgnoreCase(o)) {
        map.setOrientation(Map.ORIENTATION_SHIFTED);

```

and it _seems_ to be working did staggered used to be called shifted?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 23, 2016, 9:36pm UTC](https://discourse.mapeditor.org/t/java-tmx-loader-staggered-or-shifted/1188/2 "2016-03-23T21:36:14Z")

</div>

> [@codifies](#):
>
> did staggered used to be called shifted?

Yes, Tiled Java called this kind of map “shifted”, and `libtiled-java` should be updated regarding this. A pull request would be welcome!

It would also need to be updated to store the stagger index and stagger axis, though. As well as the “hexagonal” orientation and its “tile side length” property.

---

<div class="post-metadata">

**Author:** ![codifies](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@codifies](https://discourse.mapeditor.org/u/codifies)\
**Post date:** [March 23, 2016, 11:22pm UTC](https://discourse.mapeditor.org/t/java-tmx-loader-staggered-or-shifted/1188/3 "2016-03-23T23:22:08Z")

</div>

> [@bjorn](#):
>
> It would also need to be updated to store the stagger index and stagger axis, though. As well as the “hexagonal” orientation and its “tile side length” property.

I clearly don’t know the internals of tiled well enough (at all for that matter)

I’ll raise an issue on GH but to bodge some solution would be counter productive…
