God of Thunder Tileset Format
Format type | Tileset |
---|---|
Hardware | VGA |
Max tile count | Unlimited |
Palette | External VGA |
Tile names? | No |
Minimum tile size (pixels) | 0×0 |
Maximum tile size (pixels) | 262140×65535 |
Plane count | 4 |
Plane arrangement | Planar 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 | Platform | View images in this format? | Convert/export to another file/format? | Import from another file/format? | Access hidden data? | Edit metadata? | Notes |
---|---|---|---|---|---|---|---|
Camoto | Linux/Windows | Yes | Yes | Yes | N/A | N/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!)