"The coordinates for the region a chunk belongs to can be found by dividing the chunk coordinates by 32 and rounding downwards. For example, the chunk at chunk coordinates x=35, z=-3 can be found in the file region/r.2.-1.mcr"
- This example appears to be wrong 35/32=1.09375 which rounds down to 1, would not the file name of the region be region/r.1.-1.mcr?
format of level.dat not in here?
The format is missing the level.dat format.
There is a reference in alpha that the level.dat is gzipped serialized java data.
In beta this does not seem to be true.
The data is gzipped, but the conent ist not java data.
Java serialized data starts with 0xACED. The data I found does not.
(java serialization info: http://download.oracle.com/javase/6/docs/platform/serialization/spec/protocol.html)
My data starts with
0A 00 00 0A 00 04 44 61 74 61 01 00 0A 74 68 75 ; ......Data...thu
Blindleistung
- It helps if you sign your comments with four ~'s. Actually, the level.dat and chunk files have never used Java serialization. They use a custom format called NBT (Named Binary Tag). Notch has taken down the original documentation, but if you Google "NBT format" you'll find several libraries to read/write it. 99.46.157.221 00:11, 24 October 2011 (UTC)