# Tilemap export to defold

**URL:** <https://discourse.mapeditor.org/t/tilemap-export-to-defold/4046>\
**Category:** Questions\
**Created:** [August 18, 2019, 3:07pm UTC](https://discourse.mapeditor.org/t/tilemap-export-to-defold/4046 "2019-08-18T15:07:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/pavel/32/2422_2.png) [@Pavel](https://discourse.mapeditor.org/u/Pavel)\
**Post date:** [August 18, 2019, 3:07pm UTC](https://discourse.mapeditor.org/t/tilemap-export-to-defold/4046/1 "2019-08-18T15:07:20Z")

</div>

Hi, does Tiled version 1.2.4 supports export to Defold?  
Added plugin tiled-plugin-defold, but do not see option to export to defold.  
I am using mac version.  
Also application crashes, when I try to disable defold plugin.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [August 18, 2019, 8:55pm UTC](https://discourse.mapeditor.org/t/tilemap-export-to-defold/4046/2 "2019-08-18T20:55:34Z")

</div>

With the `libdefold.dylib` plugin enabled you should see a “Defold files (\*.tilemap)” option in the dropdown in the Export As dialog.

I’m getting a crash on Linux as well when disabling the plugin. That appears to be a bug caused by using the plugin object after it has been deleted. I’ll push a fix for this soon.

Note that earlier today I’ve [merged another Defold plugin](https://github.com/bjorn/tiled/pull/2084) that exports a map to a collection file rather than a tilemap file. This will be included in the next development snapshot.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [August 21, 2019, 9:59am UTC](https://discourse.mapeditor.org/t/tilemap-export-to-defold/4046/3 "2019-08-21T09:59:55Z")

</div>

The following change takes care of the crash when unloading a plugin:

> <https://github.com/bjorn/tiled/commit/0c59eee634ca78e29b527d30ff2cdb3de4d9dc2b>
