Skip to content
solerante edited this page Dec 15, 2022 · 15 revisions

Start Here

  1. Set the path to the current project
  2. Import a tileset
  3. Import a map or make an empty map
  4. Edit map using tiles, objects, and properties
  5. Export as cdda map

Tiled to CDDA: what goes where?

CDDA maps are stored in JSON files. Multiple maps can be defined in each file. Each map corresponds to a Group Layer (a layer folder) and the name of the group layer is the name of the om_terrain.

Anything defined as a symbol on the map is defined in a Tile Layer.

Anything defined by x and y coordinates is defined in an Object Group (a layer for objects)

Export symbols can be toggled between easy to input and therefore edit (for us-English keyboard) symbols and visually representative (questionable) unicode symbols. Symbol assignments in order of priority: Palettes > Symbol Dictionaries > Other Unicode Symbols.

CDDA data in Custom Properties

Custom Properties of the Group Layer

  • fill_ter - The 'fill_ter' layer with tiles is just cosmetic and is not exported.
  • palettes - cdda_palette_0 is pre-made, but additional palettes require additional properties of type string cdda_palette_1, cdda_palette_2, etc.
  • flags - Each flag is a separate checkbox.

Custom Properties of Tile Sprite

  • id - defined as cdda_id.

Issues

Select file for folder

When asked to select a folder select a file in a folder.

Set the path to the current project

Tiled 1.9.2 does not have path to project available to script, but Tiled 1.9.3 will. Setting path to project re-initializes the script, which may interrupt the script.

Why are some y coordinates off?

In Tiled, tiles anchor top-left while objects without tiles in them anchor bottom-left. This offset is applied when importing and exporting. Adding objects manually is already offset. Doesn't affect usage unless you are confused about why the numbers don't make sense sometimes.