TuDee XML Exporter

TuDee now has an XML exporter that allows you to select which data to export. Get the latest version here:
http://www.diorgo.com/v1/?p=366

Supporting TDX (TuDee XML)

If anyone writes any libraries to read TDX, in any language or engine, please send me the link and I’ll add it here.

C#

  • TuDeeTdx.cs – A class to load a TDX file. This is also included in the TuDee install in the “Examples\Tdx” folder.
  • C++

  • TuDeeTdxBase64Example.cpp – Example code showing how to read the decoded Base64 data. This is also included in the TuDee install in the “Examples\Tdx” folder.
  • Monkey

  • tudeetdx_v100.zip – A module for loading and drawing a TDX map in Monkey. This is also included in the TuDee install in the “Examples\Tdx\Monkey” folder.

  • TDX file format (TuDee XML)

    Base64
    The Grid Data, Instance Entities and Paths can also be exported as Base64, and optionally compressed with zlib or gzip.
    The data is packed into an array of bytes, then compressed if compression is selected, then converted to Base64. The array is stored in little endian format.

    zlip compression
    The zlib compression is done with zlib, using the compress2 function to compress the data in memory. The data is then converted to Base64.

    gzip compression
    gzip compression is done with zlib, using the gzwrite function to write the compressed data to a temporary file. The file is then loaded into memory and converted to Base64.

    Example of an exported TDX file

    The exporter allows you to export everything into a single file, or multiple files (e.g. one file for each map). The following example contains all the data in a single file.
    demolish.tdx

    Screen shots of the user interface

    Tile Sets
    Tile Sets


    Parent Entities
    Parent Entities


    Maps
    Maps


    Layers
    Layers


    Grid Data
    Grid Data


    Instance Entities
    Instance Entities


    Paths
    Paths


    Custom Variable Names
    Custom Variable Names


    Leave a Reply

    LouiseBrooks theme byThemocracy