Files
Terrarum/work_files/DataFormats/Savegame metadata.txt
2019-02-26 17:26:19 +09:00

45 lines
1.2 KiB
Plaintext

Savegame metadata
* Endianness: LITTLE
* Filename: 'worldinfo0'
Ord Hex Description
00 54 T
01 45 E
02 4D S
03 44 V
04 01 Descriptor version number
05 03 Number of hashes
06 Name of the world in UTF-8 (arbitrary length, must not contain NULL)
n-1 00 String terminator
(Ord is now offset from n)
00 Terrain seed (8 bytes)
08 Randomiser s0 (8 bytes)
10 Randomiser s1 (8 bytes)
18 Weather s0 (8 bytes)
20 Weather s1 (8 bytes)
28 ReferenceID of the player (4 bytes, a fixed value of 91A7E2)
2C Current world's time_t (the ingame time, 8 bytes)
34 Creation time in time_t (6 bytes)
3A Last play time in time_t (6 bytes)
40 Total playtime in time_t (4 bytes) // will record 136.1 years of playtime
44 SHA-256 hash of worldinfo1 (32 bytes)
72 SHA-256 hash of worldinfo2 (32 bytes)
A4 SHA-256 hash of worldinfo3 (32 bytes)
D6 Uncompressed size (2 bytes)
D8 Deflated thumbnail image in TGA format
p-2 (it's deflated so that it saves faster, so no Lzma)
p-2 0xFF
p-1 0xFE
Note: if you're going to add more footer beyond this point, DON'T;
instead pack the thumbnail.tga and other footers in TEVD container.