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:
Here’s a minimal script that will load a file, then selectively export only a few of the tiles.
In order, we:
Load a file
Modify the enabled tiles for export. the tileset default=0 section turns all tiles off. Then,
We selectively enable tile 0,0 and 1,1. When a location is specified without the enabled attribute, it defaults to on.
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"/>
<modify>
<tile>
<tileset default=0>
<loc>0,0</loc>
<loc>1,1</loc>
</tileset>
</tile>
</modify>
<build mode="tiled"/>
</section>
</automation>