gson test in progress

This commit is contained in:
minjaesong
2019-02-22 04:26:19 +09:00
parent f24ddb5c82
commit 53737bd746
46 changed files with 379 additions and 3061 deletions

View File

@@ -5,10 +5,13 @@ Files contained the TerranVirtualDisk is as follows:
(root)
worldinfo0 -- Savegame Metadata (TESV)
Has fixed Entry ID of 32767
Has fixed Entry ID of 32766
worldinfo1 -- Copy of blocks.csv -- will use this from the next load
Has fixed Entry ID of 32765
worldinfo2 -- Copy of items.csv -- will use this from the next load
Has fixed Entry ID of 32764
worldinfo3 -- Copy of materials.csv -- will use this from the next load
Has fixed Entry ID of 32763
world[n] -- Layer Data (TEMD); [n] is a serial number of the world (starts at 1)
Has fixed Entry ID of [n]
(any random number in Hex 32768..ACTORID_MIN - 1) -- Serialised Dynamic Item?
@@ -16,6 +19,7 @@ Files contained the TerranVirtualDisk is as follows:
(PLAYER_REF_ID in Hex -- 91A7E2) -- Player Character Information (Serialised--JSON'd--Entity Information)
(51621D) -- The Debug Player (Serialised Entity Information)
load_order.txt -- LoadOrder.csv (NOT zipped)
Has fixed Entry ID of 32767

View File

@@ -14,25 +14,28 @@ Ord Hex Description
05 03 Number of hashes
06 Name of the world in UTF-8 (arbitrary length, must not contain NULL)
... 00 String terminator
n-1 00 String terminator
... Terrain seed (8 bytes)
... Randomiser s0 (8 bytes)
... Randomiser s1 (8 bytes)
... Weather s0 (8 bytes)
... Weather s1 (8 bytes)
(Ord is now offset from n)
... ReferenceID of the player (4 bytes, a fixed value of 91A7E2)
... Current world's time_t (the ingame time, 8 bytes)
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)
... Creation time in time_t (6 bytes)
... Last play time in time_t (6 bytes)
... Total playtime in time_t (4 bytes) // will record 136.1 years of playtime
28 ReferenceID of the player (4 bytes, a fixed value of 91A7E2)
2C Current world's time_t (the ingame time, 8 bytes)
... SHA-256 hash of worldinfo1 (32 bytes)
... SHA-256 hash of worldinfo2 (32 bytes)
... SHA-256 hash of worldinfo3 (32 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
... Gzipped thumbnail image in TGA format
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 Compressed size (2 bytes)
D8 Gzipped thumbnail image in TGA format
(it's gzipped so that it saves faster, so no Lzma)