Why my file tileset.tres are too big?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cristiano L
:warning: Old Version Published before Godot 3 was released.

Hello friends, I have one problem with my file tile.tres. After created new sprites and convert my scene on tileset and rewrite the file its grow up, I can’t undestand!

Now my file tileset have 72mb!!

Somebody have this problem too, help me please?

Thanks…

:bust_in_silhouette: Reply From: eons

Because maybe you have included the image inside the resource (happens sometimes by accident when you edit it).

Try exporting again the tileset with the merge option off.

Other options may be editing from the tilemap, clearing the texture and adding the corresponding file.

Sometimes none of these are options (for specific changes on the tileset from the tilemap) so you will need to open the tres file with a text editor that support big files and remove that couple of millions of characters corresponding to the texture.

Then add it as subresource (export another tileset and look how these are added), the format is easy to understand.