CommonStructs - xdanieldzd/TharsisForge GitHub Wiki

Common Structures

File Header

Offset Data Type Description
0x00 Byte[8] File signature
0x08 Uint32 Unknown; always 0x00000001
0x0C Uint32 Chunk size
0x10 Struct Last modified timestamp
0x1C Byte[98] Unknown; always all zero?
0x80 bytes
  • File signature is always either MOR4GAME, MOR4GILD, MOR4MAPA or MOR4OPTI, in ASCII.
  • Chunk size is the size of the data following the header, in bytes.

Timestamp

Offset Data Type Description
0x00 Uint16 Year
0x02 Uint16 Unknown; always 0x0000?
0x04 Byte Month
0x05 Byte Day
0x06 Byte Unknown
0x07 Byte Hour
0x08 Byte Minute
0x09 Byte Second
0x0A Byte Unknown
0x0B Byte Unknown
0x0C bytes