two new features: export as .xml and visual cue for drawable area

41 views
Skip to first unread message

Josh Stratton

unread,
Jun 21, 2012, 6:43:41 PM6/21/12
to mape...@googlegroups.com
I just wanted to post a couple changes I'm going to hack up real quick on my machine.  

The first is to allow export of a map directly to XML.  This would look similar to the tmx format except it wouldn't be a compressed image similar to how the json output currently is formatted.  The reason I'm doing this is I don't directly use the image data the editor produces, so I export to json and then put it through a json-to-xml converter, which is laborious.  

The second feature is to add some visual box of the paintable region on the screen.  Currently if the map size is small like 2x3, one cannot see which areas of the screen are paintable until you actually try.  I'm going to try putting a simple box around the map region of paintable space.  

Thoughts?  Is this of interest to anyone else?  

Thorbjørn Lindeijer

unread,
Jun 22, 2012, 4:47:04 AM6/22/12
to mape...@googlegroups.com
On Fri, Jun 22, 2012 at 12:43 AM, Josh Stratton
<stratto...@gmail.com> wrote:
> I just wanted to post a couple changes I'm going to hack up real quick on my
> machine.
>
> The first is to allow export of a map directly to XML.  This would look
> similar to the tmx format except it wouldn't be a compressed image similar
> to how the json output currently is formatted.  The reason I'm doing this is
> I don't directly use the image data the editor produces, so I export to json
> and then put it through a json-to-xml converter, which is laborious.

Why not just choose 'CSV' as your layer data format in the
preferences, if you want to avoid compressed binary data?

> The second feature is to add some visual box of the paintable region on the
> screen.  Currently if the map size is small like 2x3, one cannot see which
> areas of the screen are paintable until you actually try.  I'm going to try
> putting a simple box around the map region of paintable space.

This feature has been implemented at some point but the patch was
still awaiting polishment / review before it could go in (I'm not sure
where it is now). I still plan to look into this at some point, but it
could be faster if you implement it yourself.

Best regards,
Bjørn

Stefan Beller

unread,
Jun 22, 2012, 4:58:07 AM6/22/12
to mape...@googlegroups.com
> The second feature is to add some visual box of the paintable region on the
> screen. Currently if the map size is small like 2x3, one cannot see which
> areas of the screen are paintable until you actually try. I'm going to try
> putting a simple box around the map region of paintable space.

Try enabling the grid, that should help in the first run.

2012/6/22 Thorbjørn Lindeijer <thor...@lindeijer.nl>:
> --
> Tiled Map Editor mailing list
> mape...@googlegroups.com
> http://groups.google.com/group/mapeditor
Reply all
Reply to author
Forward
0 new messages