Importing tile maps from Tiled as JSON

Hello everyone!
I know this thread is still an old one, but I figured out how to prevent the error “Blacop” got.
My first test yesterday also runs into a blank screen after I imported the json file.
It seems to me the Unreal Editor can’t read the compressed array data of tiles. (It’s base64 encoded and zlib compressed)
So, how to fix this? It’s simple, but you have to manage some things by hand!

Note:
Maybe there is a better way to do this but this worked for me!

-Tiled version 0.13.0

-UE Editor 4.11.2

-No need of Texture Packer

-I used only 2 normal layers for this test (no animations) and 1 terrain layer (see image below)

  1. create your map like you normaly do inside Tiled :slight_smile:
  2. after you finished it, export your map as JSON.
  3. export the same map as “Flare” .txt
  4. open the created json- and .txt file inside notepad or your favorite editor.
  5. search inside json for “compression”, “data” and “encoding” and delete all this three lines
  6. at the spot where you deleted before you have to insert “data”:[ ], (include ")
  7. you need to copy the part from the .txt file after “data=” (numbers only) and paste it between the two brackets from part 6 (step 5, 6, 7 see image below)

'8. for my import I had to fix this line (search for “image”): “image”:“D:/Game_Assets/Sprites/terrain_atlas.png”,
(path depends on your system :wink: )
I copied the tile image into the same folder like my json file and edited the line above to: “image”:“terrain_atlas.png”,

'9. now save the json file and drag and drop it into the Unreal Editor content browser
You may now see a folder called “Textures”, a TileSet and a TileMap (all created by Unreal magic :wink: )
If you now open the TileMap you should see something like below… your’e done!

I will create a converter app for this, but I don’t have much time at the moment.

Maybe the json import will be fixed in future version of Unreal Editor :slight_smile:

Good luck and sorry for my bad grammar :slight_smile:

Greetings – David