Jump to content

Imgcut files: Difference between revisions

From Battle Cats Game Modding Wiki
m Text replacement - "texture" to "texture"
No edit summary
 
Line 3: Line 3:
| Pack name = [[ImageDataLocal]] or [[ImageDataServer]]
| Pack name = [[ImageDataLocal]] or [[ImageDataServer]]
| Short description = stores a set of regions / rectangles on a spritesheet for a [[texture]].
| Short description = stores a set of regions / rectangles on a spritesheet for a [[texture]].
| Structure = The file starts with the text <code>[imgcut]</code> as a way to identify that this is an imgcut file.
| Structure = The file starts with the text <code>[imgcut]</code> as a way to identify that this is an imgcut file, although it is unused by the game.


On the next line it specifies the version? of the imgcut format used, which is always <code>0</code>
On the next line it specifies the version of the imgcut format used, which is always <code>0</code> and is also unused by the game.


The next line is the filename of the spritesheet, however this seems to be unused.
The next line is the filename of the spritesheet, which again is also unused.


On the next line it specifies the total number of regions in this texture.
On the next line it specifies the total number of regions in this texture.

Latest revision as of 08:42, 8 September 2025

An imgcut file is a file inside of ImageDataLocal or ImageDataServer which stores a set of regions / rectangles on a spritesheet for a texture.

Structure

The file starts with the text [imgcut] as a way to identify that this is an imgcut file, although it is unused by the game.

On the next line it specifies the version of the imgcut format used, which is always 0 and is also unused by the game.

The next line is the filename of the spritesheet, which again is also unused.

On the next line it specifies the total number of regions in this texture.

Each subsequent line defines the data for the region. Each column in the region has the following structure:

  1. X Position
  2. Y Position
  3. Width
  4. Height
  5. Comment (optional)

Examples

[imgcut]
0
super_cool_img_en.png
4
1,1,500,120,shadow
502,1,500,120,fire
1,121,300,20
123,142,50,50,bullet