God of Thunder Tileset Format

From ModdingWiki
Jump to navigation Jump to search
God of Thunder Tileset Format
God of Thunder Tileset Format.png
Format typeTileset
HardwareVGA
Max tile countUnlimited
PaletteExternal VGA
Tile names?No
Minimum tile size (pixels)0×0
Maximum tile size (pixels)262140×65535
Plane count4
Plane arrangementPlanar VGA
Transparent pixels?Unknown
Hitmap pixels?No
Metadata?None
Supports sub-tilesets?No
Compressed tiles?No
Hidden data?No
Games

The God of Thunder Tileset Format is used by God of Thunder to store both tiles and other game images. Since the game runs in VGA mode X (320×240) the image data is split into four planes to match the video memory layout.

File format

The file consists of a number of tiles one after the other. While the format itself is not compressed, it is stored compressed inside the main game .DAT file using the same compression algorithm as all the other unrelated files in the .DAT.

Signature

There is no signature, however careful processing of the header can be used to check whether the last tileset ends at exactly the end of the file (allowing for padding in some cases, such as status.) If not, it is unlikely to be in this format.

Header

Each tile begins with the following header.

Data type Name Description
UINT16LE width Width of the image. Multiply by four to get width in pixels.
UINT16LE height Height of the image, in pixels
UINT16LE flag ! Unknown

The image data for the tile follows the header. See Planar VGA for details on the planar layout of the data.

Notes

Palette entries 0 (black) and 15 (white) were used during development to help mark out the location of each tile in the tileset. These two palette entries are treated as transparent by the game.


Tools

The following tools are able to work with files in this format.

Name PlatformView images in this format? Convert/export to another file/format? Import from another file/format? Access hidden data? Edit metadata? Notes
Camoto Linux/WindowsYesYesYesN/AN/A

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!)