TiledExportExtensions

Tiled Export Plugins

ZLIB License

Stars
1

TiledExportExtensions

A collection of Tiled extensions to assist with exporting Tiled map data.

Extensions

The following is a list of the extensions included in this pack:

  1. Embed JSON Map Format
  2. Minified JSON Map Format

Embed JSON Map Format

The Embed JSON Map Format Tiled plugin will embed all images directly in the JSON format, Base64 encoded, as *.embed.json files. It will add the image data to a base64 encoded data URI scheme imagedata property, along add the size of the image to imagesize.

Before

{
    "image": "desert.png"
}

After

{
    "image": "desert.png",
    "imagedata": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
    "imagesize": 37830
}

Minified JSON Map Format

The Minified JSON Map Format Tiled plugin will export minified JSON files *.min.json, to decrease the output file size by removing the whitespace. This can already be accomplished by using Tiled's "Minimize output", but having the explicit file format allows you force minification if desired, despite Tiled's settings.

Before

{ "compressionlevel":-1,
 "height":40,
 "infinite":false,
 "layers":[
        {
         "data":[...

After

{"compressionlevel":-1,"height":40,"infinite":false,"layers":[{"data":[...

Installation

To install the extensions...

  1. Open Tiled and go to Edit > Preferences > Plugins and click the Open button to open the extensions directory.

  2. Download

  3. Extract the files to your extensions directory. The scripts can be directly in the extensions directory or a subdirectory. Alternatively, clone this git repository into the extensions directory:

    • Windows
      C:/Users/%USERNAME%/AppData/Local/Tiled/extensions/
    • macOS
      ~/Library/Preferences/Tiled/extensions/
    • Linux
      ~/.config/tiled/extensions/
  4. See the script itself for specific plugin usage instructions

License

Unless stated otherwise, all works are:

... and licensed under: