GAT - Ground Altitude File
October 27th, 2005
Gravity Altitude Terrain (GAT), it’s a file that contains every cell altitude.
| * | Field | Size | Type | Description | |
|---|---|---|---|---|---|
| 0 | Header | 6 | bytes | Integer | GRAT.. |
| 6 | Size X | 4 | bytes | Integer | Size of field |
| 10 | Size Y | 4 | bytes | Integer | Size of field |
| { | Tiles (Header offset +14) | ||||
| 0 | Cell | 4 | bytes | Float | Left Bottom |
| 4 | Cell | 4 | bytes | Float | Right Bottom |
| 8 | Cell | 4 | bytes | Float | Left Top |
| 12 | Cell | 4 | bytes | Float | Right Top |
| 16 | Type | 1 | bytes | Byte | See below |
| 17 | ?? | 3 | bytes | Integer | - |
| } | |||||
Tile (Under water level):
- 0 - No walkable
- 1 - Walkable
- 2 - No walkable (No snipable)
- 3 - Walkable
- 4 - ??
- 5 - No walkable (Snipable)
- 6 - No walkable (No snipable)
Number of cells
Calculated by by SizeX* SizeY
Info :
- - Designs a block type
{ } Designs a loop block
Credits :
deufeufeu / ender (previous research)
VCL (update)
3 Responses to “GAT - Ground Altitude File”
Leave a Reply
I believe we have a more correct specification of the GAT file format, at http://www.openkore.com/wiki/index.php/Field_file_format
I’m not sure whether your description of the first 4*4 bytes in the Tiles structure is more accurate than ours, but I’m pretty sure that our description (and the offset) of the type field is more accurate, based on the tests I’ve done.
And the ‘???’ at offset 17 is 3 bytes, not 4 bytes.
Thanks, i’ll fix it in a minute