Help with Ctrl+C/Ctrl+V between different maps

Hello, Tiled begginer here. I have an old map which I would like to use as a sketch to construct a new one. Currently I have two Tiled windows opened: one with Map A (old), one with Map B (new).

Map A and Map B have pratically the same tilesets, but with different names, in different orders, etc. When I copy/paste something from Map A to Map B, the tileset goes with it, adding itself to the new map and breaking the right – and functionable – order from Map B.

What I would like to know: is it possible to copy content from Map A and paste it on Map B forcing Tiled to use the tileset present on Map B?

I’ve done a small research and saw some people commenting on the “Substitute Tileset” option, but when I try to do something like this, it became impossible because the .png used firstly now is not “Valid Tileset files”.

How do you recomend me to proceed? Sorry for the noob question, by the way. Wish you all the best!

For this to work, the target map should have all the referenced tilesets already included. The easiest way to make this work is to use external tileset files (.tsx, in case you’re using the XML format) and refer to the same file from both maps (the “Replace Tileset” action might help to work towards such a situation).

If you’re using embedded tilesets, then Tiled still tries to reuse them, but then they have to basically match exactly (except name, this isn’t checked because it’s irrelevant). They have to have:

  • The same number of tiles.
  • Refer to the same image.
  • Have matching tile size, spacing, margin and drawing offset.
  • In case of image collection tilesets, each tile needs to refer to the same external image.

Note that Tiled does not check the pixels on the images, so they must refer to the same file. Anyway using external tilesets it is much easier to make sure the maps are using the same ones and then Copy/Paste should work without your tilesets getting duplicated.