# Bug report : gencache for web EasyRPG Player

**URL:** <https://community.easyrpg.org/t/bug-report-gencache-for-web-easyrpg-player/1665>\
**Category:** Player\
**Created:** [July 12, 2025, 12:52pm UTC](https://community.easyrpg.org/t/bug-report-gencache-for-web-easyrpg-player/1665 "2025-07-12T12:52:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarXnake](https://community.easyrpg.org/user_avatar/community.easyrpg.org/darxnake/32/754_2.png) [@DarXnake](https://community.easyrpg.org/u/DarXnake)\
**Post date:** [July 12, 2025, 12:52pm UTC](https://community.easyrpg.org/t/bug-report-gencache-for-web-easyrpg-player/1665/1 "2025-07-12T12:52:53Z")

</div>

Hi everyone, hope you’re doing well 🙂

I was trying to make use of your awesome tool “EasyRPG Player for the web” for my project but while playing, I encountered some missing pictures from time to time, not all the time

I was curious about the cause so I digged and found that the issue seems to stem from the gencache tool.

As I understand it, this tool builds an index of all files and folders within a given directory recursively. Problem is: if a file shares the same name as a folder at the same level, only one will be listed in the generated index.json file.

For instance, for this file structure:

```auto
/Picture/Fire.png
/Picture/Fire/fire_1.png
/Picture/Fire/fire_2.png
/Picture/Fire/fire_3.png

```

Using gencache on `/`, the resulting json for the `Picture` folder is:

```auto
"picture": {
    "_dirname": "Picture",
    "fire": {
        "_dirname": "Fire",
        "fire_1": "fire_1.png",
        "fire_2": "fire_2.gif",
        "fire_3": "fire_3.png"
    }
},

```

The file `/Picture/Fire.png` is ignored, therefore through the web browser, it leads to this issue :

 ![image](https://community.easyrpg.org/uploads/default/original/1X/bb27d58cdb9e75e8db1a387f38b78e74fc6fd1fb.png)

Changing the `/Picture/Fire.png` filename and its reference in the editor solves the issue after gencache is run again.

I’m using the linux version of gencache, didn’t try with the other versions.

If you want to reproduce the issue, here is a minimalistic project with the problematic file structure (not including gencache):  
[https://web.darxnake.fr/easyrpg/test\_project\_for\_gencache.zip](https://web.darxnake.fr/easyrpg/test_project_for_gencache.zip)

Hope this helps, thanks again for all the time and effort you put in the project. You’re the best!

---

<div class="post-metadata">

**Author:** ![Ghabry](https://community.easyrpg.org/user_avatar/community.easyrpg.org/ghabry/32/121_2.png) [@Ghabry](https://community.easyrpg.org/u/Ghabry)\
**Post date:** [July 13, 2025, 1:42pm UTC](https://community.easyrpg.org/t/bug-report-gencache-for-web-easyrpg-player/1665/2 "2025-07-13T13:42:46Z")

</div>

Thanks for the report. Yeah unfortunately the stripping of the extension causes some problems. Yours isn’t the only one.

There is a new cache file planned which doesn’t strip the extension which should get rid of these problems.
