![]() Its timestamp can be found 4096 bytes later in the file. To prevent this, use the AND operator (&) instead of modulo: 4 * ((x & 31) + (z & 31) * 32). When using certain languages (such as Java/C/C++), the values of x mod 32 and z mod 32 can be negative. The offset of a chunk (in chunk coordinates) in the first table can be found by using this formula: 4 * ((x mod 32) + (z mod 32) * 32). The first containing the offsets of chunks in the region file itself, the second providing timestamps for the last updates of those chunks. Region files begin with an 8KiB header, split into two 4KiB tables. The difference in a world's total file size between the Region file format and the Alpha level format is negligible. JahKob has claimed that this format is up to 7 times faster than the previous system. The McRegion format was adopted nearly unchanged, except for the addition of a table of chunk update timestamps. The system is based on McRegion, a mod by Scaevolus, also known for his development of the Optimine project. The format has been superseded by the Anvil file format however, the Anvil file format made changes only to the chunk format and changed the region file extensions from ".mcr" to ".mca". The file does not begin with a magic number, unlike other file formats, and begins directly with the header. ![]() The format took the place of the Alpha level format, which had been in use since the Infdev development phase, where chunks were stored in individual files on the file system. Each file stores a group of 32×32 chunks called a region. ![]() The Region file format is the binary file format for storing Java Edition chunks from Beta 1.3 to release 1.2. This feature is exclusive to Java Edition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |