VGFM Raw Tileset Format

From ModdingWiki
Jump to navigation Jump to search
VGFM Raw Tileset Format
There is no image of a tileset in this format — upload one!
Format typeTileset
HardwareVGA
Max tile count65535
PaletteExternal
Tile names?No
Minimum tile size (pixels)16×16
Maximum tile size (pixels)16×16
Plane count1
Plane arrangementLinear
Transparent pixels?No
Hitmap pixels?No
Metadata?None
Supports sub-tilesets?No
Compressed tiles?No
Hidden data?No
Games

The VGFM Raw Tileset Format is used by Vinyl Goddess From Mars to store various UI graphics.

The format is similar to VGFM Tileset Format except the tile data here is in standard VGA layout rather than in an odd coding system, and each tile can be a different size.

Signature

There is no signature, but careful parsing of the fields to ensure they have expected values can allow files to be detected. There is no data trailing the pixelData field, so if this field ends right at the end of the file, it is highly probable the file is in this format.

File format

Data type Name Description
UINT16LE count Number of tiles in the tileset
TILE[count] tile Variable length data for all tiles (see below)

The TILE structure is as follows:

Data type Name Description
UINT16LE lenTile Number of bytes in the tile data (not including this field)
UINT16LE width Width of the image, in pixels
UINT16LE height Height of the image, in pixels
UINT8[lenTile] pixels Pixel data, one byte per pixel

Credits

This file format was reverse engineered by Malvineous. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)