World Click events

let's hope it works w/o tests as I can't get to the Ingame now
This commit is contained in:
minjaesong
2018-10-01 23:51:04 +09:00
parent 6a1146f67b
commit f365156799
25 changed files with 341 additions and 226 deletions

View File

@@ -6,11 +6,11 @@ Ord Hex Description
00 54 T
01 45 E
02 4D M
03 44 D
03 7A z # 'z' because it's compressed
04 01 Number of bytes per tile; only 1 is supported
04 01 Version revision number
05 Number of layers
05 03 Number of layers
06 00 Reserved
07 00 Reserved
@@ -36,16 +36,30 @@ Ord Hex Description
17 Default spawn coord Y
# Layer count 1
18 Terrain tiles data MSB
18 54 T
19 45 E
20 52 R
21 52 R
22 Uncompressed size of DEFLATEd payload
23 Uncompressed size of DEFLATEd payload
24 Uncompressed size of DEFLATEd payload
25 Uncompressed size of DEFLATEd payload
26... DEFLATEd payload for the terrain (MSB ++ LSB; uncompressed size must be 1.5x of MSB) # ++ is a list concat sign in Haskell
# Layer count 2
... Wall tiles data MSB
... "WALL"
... Uncompressed size of DEFLATEd payload
... DEFLATEd payload for the wall (MSB ++ LSB; uncompressed size must be 1.5x of MSB)
# Layer count 3
... Terrain tiles data LSB (half size of MSB byte array)
... Wall tiles data LSB (half size of MSB byte array)
... "WIRE"
... Uncompressed size of DEFLATEd payload
... Wire tiles data (MSB only)
# Layer count 4
... Wire tiles data (0-255)
<EOF>
<EOF>
* To read layers: you'll need to search for specific strings, namely ["TERR", "WALL", "WIRE"]

View File

@@ -4,15 +4,15 @@ A savegame is a single file in the format of TerranVirtualDisk.
Files contained the TerranVirtualDisk is as follows:
(root)
worldinfo0 -- Savegame Metadata GZipped (TESV)
worldinfo1 -- Layer Data GZipped (TEMD)
worldinfo0 -- Savegame Metadata (TESV)
worldinfo1 -- Layer Data (TEMD)
worldinfo2 -- Copy of blocks.csv GZipped -- will use this from the next load
worldinfo3 -- Copy of items.csv GZipped -- will use this from the next load
worldinfo4 -- Copy of materials.csv GZipped -- will use this from the next load
(any random number in Hex ACTORID_MIN..FFFFFFFF) -- Serialised Entity Information (including Player)
(PLAYER_REF_ID in Hex -- 91A7E2) -- Player Character Information (Serialised Entity Information)
(51621D) -- The Debug Player (Serialised Entity Information)
load_order.txt -- LoadOrder.csv
load_order.txt -- LoadOrder.csv (NOT zipped)