[help] tileset tag in automation script


I’m looking for a way to ouput a specific tile from an extend in a automation xml script. I’ve found that post here:

But I don’t see the tag in question I need to use ?:

tag: is a child of
attribute: enabled=‘1|0’ defaults to 1. Set the tile to export or not export
body value: text in the form ‘x0,y0’. Specify a single tile location to set.

Here is an example of a very simple xml I’m using:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

Could you provide an example of the tag I have to use to output just a tile from that file and not all of them ?

Thanks a lot,

1 Like

Hi there,

sorry for the delay getting back to you on this!

Here’s a minimal script that will load a file, then selectively export only a few of the tiles.

In order, we:

  1. Load a file
  2. Modify the enabled tiles for export. the tileset default=0 section turns all tiles off. Then,
  3. We selectively enable tile 0,0 and 1,1. When a location is specified without the enabled attribute, it defaults to on.
  4. We build the world (which for a tiled build also exports the tiles)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<automation version="WMP2.0A">

<!-- The echo tag lets you echo text from the script to the automation reporting dialog -->
<echo text="Beginning Tiled Build Script"/>

<section name="Tiled Build">
<!-- Load the TMD file into WM again. Obviously, this could be a different file!-->
  <load file="example_script.tmd"/>
		<tileset default=0>
  <build mode="tiled"/>

Running the script above produces this output:

(The neighbor tiles are still built because their information is needed for blending. However, only the specified two are exported.)


Awesome, thanks a lot ! It works like a charm :slight_smile: Cheers !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.