# AutoMap doesn't work

**URL:** <https://discourse.mapeditor.org/t/automap-doesnt-work/7672>\
**Category:** Bugs\
**Created:** [October 20, 2025, 3:15pm UTC](https://discourse.mapeditor.org/t/automap-doesnt-work/7672 "2025-10-20T15:15:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoNhtHoang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/vonhthoang/32/5235_2.png) [@VoNhtHoang](https://discourse.mapeditor.org/u/VoNhtHoang)\
**Post date:** [October 20, 2025, 3:15pm UTC](https://discourse.mapeditor.org/t/automap-doesnt-work/7672/1 "2025-10-20T15:15:08Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/e/ea8eeefa3f84e4ebea2565f7f03bda6531908861.png)  
This is my map

rules.txt by the way

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

rules1.tmx is in the same directory with map.tmx and rules.txt

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/4/4a6032039966a9dbb9f65505300e4e7dbf88c2c2.png)  
rules1.txt here,  
It doesn’t work :\<\<\<\<. Please help me 🥲

(limit 3 picture per topic :\<\<)

---

<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:** [October 20, 2025, 4:21pm UTC](https://discourse.mapeditor.org/t/automap-doesnt-work/7672/2 "2025-10-20T16:21:16Z")

</div>

That seems like a large area for the rule, why is this?

In any case I’d suggest you remove the “regions” layer. A regions layer is no longer necessary since Tiled 1.9 and including one triggers a compatibility mode that is rather harder to work with due to the way it treats empty tiles within your region.

Try to follow the [latest documentation](https://doc.mapeditor.org/en/latest/manual/automapping/) about how to use Automapping.

---

<div class="post-metadata">

**Author:** ![VoNhtHoang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/vonhthoang/32/5235_2.png) [@VoNhtHoang](https://discourse.mapeditor.org/u/VoNhtHoang)\
**Post date:** [October 20, 2025, 4:25pm UTC](https://discourse.mapeditor.org/t/automap-doesnt-work/7672/3 "2025-10-20T16:25:39Z")

</div>

Thanks for your reply,

I’ve already found solution for this:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/7/726443c26d61f23d007b0b73f7694201d76b7388.png)

Set the Input’s variable named Autoempty to True, then  
It works,

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

Thank you again.

---

<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:** [October 20, 2025, 4:57pm UTC](https://discourse.mapeditor.org/t/automap-doesnt-work/7672/4 "2025-10-20T16:57:09Z")

</div>

> [@VoNhtHoang](#):
>
> Set the Input’s variable named Autoempty to True, then

Alright, that was indeed an early attempt and improving the behavior for empty tiles within the region, and I’m glad it worked for you!

Since Tiled 1.9, it is still recommended to rely on automatic regions instead and add the “Automapping Rules Tileset” to your rules map (can be done from the Map menu) so you can match empty tiles using its special “Empty” tile explicitly if necessary (but it usually isn’t needed).
