10 Commits

Author SHA1 Message Date
David Vierra
8e5b7d9ddd Raise a ChunkTooBig error when trying to save a chunk that exceeds region file allocation limits. 2013-10-06 13:18:46 -10:00
David Vierra
c60c3f25ed Added: RegionFile now touches the chunk's timestamp field whenever a chunk is saved. 2013-01-31 13:11:22 -10:00
David Vierra
52b29e8c91 Fixed: ValueError when repairing region file
readChunk no longer returns a (format, compressedData) pair
2013-01-13 13:24:45 -10:00
David Vierra
603e41283f Fixed: Make sure chunk data is at least 5 bytes long for the chunk header. 2012-11-26 02:10:39 -10:00
David Vierra
ccce8cdc73 Fixed: zlib compression level used in region files is now 2.
This is much faster than the default compression level, 9.
2012-11-14 02:25:44 -10:00
David Vierra
03566f957f Added: Add copyChunkFrom to MCInfdevOldLevel and MCRegionFile.
This function copies a single chunk from the same location in another world. This is much faster than using copyBlocksFrom because it doesn't have to adjust entity locations or even fully load the chunk if it's not necessary.
2012-11-12 23:56:31 -10:00
David Vierra
ec52850bd6 RegionFile: Now raises ChunkNotPresent on reading a missing chunk. 2012-11-12 18:02:08 -10:00
David Vierra
8f782ec8c9 Debug: Add MCRegionFile.__repr__ 2012-10-28 03:48:44 -10:00
David Vierra
0b55db744c Refactor: Remove tag names statically declared as string constants. 2012-10-27 15:05:02 -10:00
David Vierra
78e45aedfb Refactor: Remove compressedChunks and related methods and data from MCInfdevOldLevel and AnvilChunk
Move MCRegionFile to its own source file.
Remove knowledge of chunk structure from MCRegionFile. Rename loadChunk to readChunk.
Remove compress, decompress, unload, isLoaded, compressedSize methods.
Remove compressedTag, dataIsPacked, loadedChunkQueue/Limit, decompressedChunkQueue/Limit members.
Rename InfdevChunk to AnvilChunk. Keep in place the conversion to old-style chunks until all client code is updated.
Remove most checks for self.version and keep only the VERSION_ANVIL code in place
Rename Alpha tests to Anvil tests.
Change several tests to load the AnvilWorld test data.
Change ZipSchematic test to export an area from the center of the world instead of from hard-coded coordinates.
2012-10-27 15:04:28 -10:00