FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

新版Tilde地图编辑器1.9.0 对象层类名由type更改为class,导致加载失败

Open 17722797729 opened this issue 3 years ago • 5 comments

image

image

17722797729 avatar Jul 09 '22 09:07 17722797729

Hi,

不好意思,我的汉语不好。我觉得 Tiled 1.9.0- 用了 "type",但是 1.9.0+ 现在用 "class" 。我要看看,谢谢。

If I understood correctly, it seems "type" has now been replaced with "class" in Tiled 1.9.0+. To adapt to this, whilst maintaining backwards-compatibility, I think the fix could be rather simple:

in TMXLevelLoader:

put("type", tiledObject.type)

// ++ put("type", tiledObject.typeClass)

I'll take a look at 1.9.0, thanks.

AlmasB avatar Jul 09 '22 16:07 AlmasB

To get the latest build, you can use this:

<dependencies>
    <dependency>
        <groupId>com.github.almasb</groupId>
        <artifactId>fxgl</artifactId>
        <version>17+dev-SNAPSHOT</version>
    </dependency>
</dependencies>

<repositories>
    <repository>
        <id>oss.sonatype.org-snapshot</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
</repositories>

See if it works for your use case.

AlmasB avatar Jul 21 '22 09:07 AlmasB

understand correctly

17722797729 avatar Jul 25 '22 06:07 17722797729

感谢老铁

17722797729 avatar Jul 25 '22 07:07 17722797729

爱你

17722797729 avatar Jul 25 '22 07:07 17722797729

Done in 17.2

AlmasB avatar Aug 20 '22 17:08 AlmasB