# How to set another starting tile ID than 0?

**URL:** <https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833>\
**Category:** Questions\
**Created:** [November 15, 2017, 2:48am UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833 "2017-11-15T02:48:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dunkelfussel](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Dunkelfussel](https://discourse.mapeditor.org/u/Dunkelfussel)\
**Post date:** [November 15, 2017, 2:48am UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833/1 "2017-11-15T02:48:41Z")

</div>

Hi,

for standard when creating a new tileset, it starts counting tile IDs from 0 on.  
I already have a big one up to 799 and like to have a second tileset as an extention, so the first tile ID of it mustn’t start with 0 again, but with 800. Is that possible somehow? I mention to read a fortnights time ago about that somewhere but cannot find it again or how to do…

Many thanks,  
Ruben

---

<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:** [November 15, 2017, 7:49am UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833/2 "2017-11-15T07:49:10Z")

</div>

The TMX and JSON map formats already assign a `firstgid` (first global-ID) to each used tileset so that the tile references can be mapped back to the right tileset. Are you talking about the CSV export? This export currently doesn’t support that, but it could be implemented based on a custom property.

---

<div class="post-metadata">

**Author:** ![Dunkelfussel](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Dunkelfussel](https://discourse.mapeditor.org/u/Dunkelfussel)\
**Post date:** [November 15, 2017, 1:12pm UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833/3 "2017-11-15T13:12:44Z")

</div>

Hi bjorn,

nice to meet and read the developer of that great tool. I’m not using it for making RPGs, but an Emerald Mine-based game. It’s even great to use for that with its lots of easy to explore feautures. Better than every editor I could ever code on my own.

Yes, I’m using the CSV export and it would be kinda hard for me to change the export format. I did add such a properity now and found it in the tmx-saved file, but the CSV-exported file is still the same. Have I to change any settings to get custom properities into CSV file?

---

<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:** [November 15, 2017, 1:34pm UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833/4 "2017-11-15T13:34:32Z")

</div>

> [@Dunkelfussel](#):
>
> nice to meet and read the developer of that great tool. I’m not using it for making RPGs, but an Emerald Mine-based game. It’s even great to use for that with its lots of easy to explore feautures. Better than every editor I could ever code on my own.

It’s great if it meets your needs, and of course I try to make sure it does that for a wide range of uses. 🙂

> [@Dunkelfussel](#):
>
> Yes, I’m using the CSV export and it would be kinda hard for me to change the export format. I did add such a properity now and found it in the tmx-saved file, but the CSV-exported file is still the same. Have I to change any settings to get custom properities into CSV file?

The only thing you can currently do with custom properties in the CSV export is to set a `name` property on each tile, and then those tiles will export as the value of their `name` property _instead_ of their ID.

What I’m considering is to add support for a “firstgid” custom property, which you could set on the tileset, which would then cause all tiles in that tileset to export as “firstgid + id”. Alternatively it could do this automatically, but the downside of this is that there is no real way of finding out which tileset starts counting where (as opposed to the TMX and JSON map formats, which do include this information).

---

<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:** [November 15, 2017, 1:51pm UTC](https://discourse.mapeditor.org/t/how-to-set-another-starting-tile-id-than-0/2833/5 "2017-11-15T13:51:17Z")

</div>

> [@Dunkelfussel](#):
>
> I’m not using it for making RPGs, but an Emerald Mine-based game.

Ah, btw, I looked this up and while I don’t think I played Emerald Mine, I played a very similar game called [Supaplex](http://www.bestoldgames.net/eng/old-games/supaplex.php). Good old times! 🙂
