Lineage 2 - L2J geodriver map format: Unterschied zwischen den Versionen

Aus Notebook
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
  
 
:0 - "flat" block, bytes 2+3 -> height (short)
 
:0 - "flat" block, bytes 2+3 -> height (short)
:1 - "complex" block, bytes 2-129: array of 8x8 two-byte height (short) values
+
:1 - "complex" block, bytes 2-129: array of 8x8 two-byte height (short) values, '''double''' of the flat block value
 
:2 - "multilayer" block, 256 (8x8) variable-length blocks of data:
 
:2 - "multilayer" block, 256 (8x8) variable-length blocks of data:
 
::byte - amount of layers (1-125)
 
::byte - amount of layers (1-125)
::array of two-byte height (short) values, one per layer
+
::array of two-byte height (short) values, one per layer, '''double''' of the flat block value
 +
 
 +
All values seem to be clamped to the nearest multiple of 8.
 +
 
 +
Default sea floor is at '''-3720''', but there are places on the map which go way below that.

Version vom 6. März 2015, 13:25 Uhr

File name: xx_yy.l2j

Blocks of 256x256 data (little-endian)

1. byte: block type

0 - "flat" block, bytes 2+3 -> height (short)
1 - "complex" block, bytes 2-129: array of 8x8 two-byte height (short) values, double of the flat block value
2 - "multilayer" block, 256 (8x8) variable-length blocks of data:
byte - amount of layers (1-125)
array of two-byte height (short) values, one per layer, double of the flat block value

All values seem to be clamped to the nearest multiple of 8.

Default sea floor is at -3720, but there are places on the map which go way below that.