How to update old maps when tilesets change in size or have their layouts changed?

Hello, rookie level here. I have a completed .tmx map in front of me, with a .tsx connected linking to one png image. Everything goes well so far except that, a while ago when I was filling the map, I started to draw my pixels in my png outside the 256x256 range defined in the tsx. It worked, my png image is now 448x352, well above the range defined. I completed the map.

Issue is, the engine (game maker) is strict about the 256*256 rule, so it requires that all my tiles fit into 256x256 squares png’s, now when I move tiles in my graphic editor, to fit into a 256x256 png, they are obviously not detected anymore by the map, forcing me to attribute again the right tiles at the right place. I can do that, but doing it manually, all these tiles, by hand…is a hell of a clickworking due to the fact that the tiles I have drawn aren’t practical to use, I have to guess visually first which of the four corners possible fits where and then place it.

So, is there a shorter way or less tedious way to fill my map again, with this 256x256 constraint? Like… Telling the tmx that tile 1 is now tile 2, something like that.

1 Like

You can use the Mass Replace Tiles script to speed up this work. With this script, you make a map that maps each old tile to a new tile, and then you can apply that mapping to your other maps. This is easier to do if you still have the old 448x352 tileset image and map to a new tileset that respects your engine’s rules, but you can map with tiles from the same tileset too.

1 Like

Reading the intents of the script, it should be what I needed, thanks a lot !

1 Like