Tileset file optional ?

0 favourites
  • 3 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • Why when loading a tilemap using TMX and then an image file, does it say the TSX is optional with a tooltip but the 'Load' button is disabled until I use a TSX file? Maybe I'm doing it wrong, but I can't load a tilemap using only the TMX and an image.

    Tagged:

  • C3's support for TMX files was from before TSX files even existed. Before that, tileset information and tilemap information where all in the same TMX file.

    At one point it was brought up that some people were not able to load TMX files generated by the then latest version (can't remember the number now) of Tiled, and it was because TSX files were introduced and the new default was to generate separate files for maps and tilesets.

    I would need to check it to be sure because I haven't seen that part of the code in a while now, but I think that the importer checks the TMX file and if it finds tileset information in it, it uses that. If it doesn't, it needs it to be provided in a separate TSX file. That's why the tileset input is labelled as optional.

    I don't know exactly how it is in the latest version of Tiled, but last time I checked when you created a new tileset there was a check box named "Embed in map". When ticked all the tileset information is stored in the TMX file and if not it is separated to a TSX file.

    If you want to embed a tileset there is a button in the Tilesets pane to do that, I imagine that just pressing it will make it so that saving the tilemap will generate a new TMX with all the information.

    If you have an embeded tileset and want to remove it, there is a button to export the tileset into a TSX file, after exporting it you can use the option to replace an existing embeded tileset with the external one.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok thanks for the info Diego! This is just a UX problem then, in my opinion the pop up implies the TSX is always optional. There's no info that the TSX is optional because it could be part of the TMX.

    Perhaps there could be some error message when you press load, that tells the user hey you need to add a TSX because no tileset info found in the TMX. As a user I am stuck pressing a load button that doesn't work with no reason why.

    I tried with a tileset embedded TMX and yes this was working as expected, only the image required.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)