mcedit/pymclevel — Issue #84: Overflow when exporting large number of blocks
Author: mathuin
Created: 2012-03-08 18:58:10+00:00
State: open

This is with a large 1.1 world. I wanted to select all the blocks and move them to another map.

LakeTahoe> export monkey -137216 0 134400 2816 128 3584

INFO:Copying 1291845632 blocks from BoundingBox([-137216, 0, 134400], [2816, 128, 3584]) to (0, 0, 0)
INFO:All chunks selected! Selecting 39424 chunks instead of 39424
INFO:All chunks selected! Selecting 39424 chunks instead of 39424
INFO:Copied 0 entities, 0 tile entities
Traceback (most recent call last):
File "../pymclevel/mce.py", line 1430, in run
self.processCommand(command)
File "../pymclevel/mce.py", line 1471, in processCommand
func(commandWords)
File "../pymclevel/mce.py", line 502, in _export
tempSchematic.saveToFile(filename)
File "/home/jmt/git/pymclevel/schematic.py", line 367, in saveToFile
self.compress()
File "/home/jmt/git/pymclevel/schematic.py", line 108, in compress
self.root_tag.save(buf=gzipper)
File "_nbt.pyx", line 275, in _nbt.TAG_Compound.save (_nbt.c:6139)
save_root_tag(self, filename, buf)
File "_nbt.pyx", line 551, in _nbt.save_root_tag (_nbt.c:9627)
buf.write(data)
File "/usr/lib/python2.7/gzip.py", line 226, in write
self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
OverflowError: size does not fit in an int
Exception during command: OverflowError('size does not fit in an int',)
Use 'debug' to enable tracebacks.
LakeTahoe>