# Map exporting as an Lua file

**URL:** <https://discourse.mapeditor.org/t/map-exporting-as-an-lua-file/4647>\
**Category:** Questions\
**Created:** [July 18, 2020, 9:16am UTC](https://discourse.mapeditor.org/t/map-exporting-as-an-lua-file/4647 "2020-07-18T09:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom333064](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tom333064](https://discourse.mapeditor.org/u/tom333064)\
**Post date:** [July 18, 2020, 9:16am UTC](https://discourse.mapeditor.org/t/map-exporting-as-an-lua-file/4647/1 "2020-07-18T09:16:26Z")

</div>

I am coding my own rpg game and want to use Tiled for the maps. I got a given source code to run the maps. The maps are exported as an Lua file. This source code aspects the data sorted in a list and aspects maps from Tiled 1.1. I got version 1.4. In this version the data is stored in a single string. is there a way to export the map in a different way for lua? Or is it possible to get an older version of Tiled? I am not able to download an older version from this webside.

Thanks

---

<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:** [July 18, 2020, 7:20pm UTC](https://discourse.mapeditor.org/t/map-exporting-as-an-lua-file/4647/2 "2020-07-18T19:20:50Z")

</div>

You can [download older versions on GitHub](https://github.com/bjorn/tiled/releases), but for your needs you don’t need an older version. You just need to change the Tile Layer Format in the Map Properties to CSV (if it’s currently a single string, then it’s set to one of the base64 formats):

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/9/9484aaa2e60d824ca764274ef194709bf61e2af4.png)
