David Vierra
76d0d19de7
allow world to override chunk save, too
2010-11-15 05:50:12 -10:00
David Vierra
3a6cf84ac2
remove cruft
2010-11-15 04:41:36 -10:00
David Vierra
3218456f26
in a quick test of speed, 128 beat 64 and tied with 256
2010-11-15 04:06:01 -10:00
David Vierra
8af9a79ec5
Merge commit 'etc'
...
Conflicts:
mclevel.py
2010-11-15 03:59:55 -10:00
David Vierra
8633850f25
added an inf-to-inf copy function that uses a small temporary area and existing copy code to copy a huge area.
2010-11-15 03:55:25 -10:00
David Vierra
9048b5dbae
addTileEntity skips missing or damaged chunks
2010-11-15 03:52:30 -10:00
David Vierra
8a75da0de0
let the world handle reading chunks from disk
2010-11-15 03:51:41 -10:00
David Vierra
356cd02fb2
fall back to %APPDATA% if WScript doesn't work
2010-11-15 00:48:48 -10:00
David Vierra
b7eb1175b6
added ZipSchematic class for reading alpha levels out of zip files, possibly reading the fixed boundaries out of schematic.dat
2010-11-15 00:47:55 -10:00
David Vierra
37ae6a0fb1
added an inf-to-inf copy function that uses a small temporary area and existing copy code to copy a huge area.
2010-11-14 14:05:09 -10:00
David Vierra
3f76661672
suppress this log msg
2010-11-14 14:01:55 -10:00
David Vierra
2a82758397
try not to divide by zero
2010-11-13 22:50:31 -10:00
David Vierra
22a36fb4d0
print chunk count with the block copy time
2010-11-13 17:15:55 -10:00
David Vierra
3dd4c9db87
get rid of copyBlockArrayMasked and compute the masks as needed using a simpler operation
2010-11-13 16:20:39 -10:00
David Vierra
968e9ba3c5
try to use readline if possible
2010-11-13 08:08:11 -10:00
David Vierra
69e1fc86c0
speeds up inital skylight by about 50%
2010-11-13 04:56:32 -10:00
David Vierra
a63fea3209
explicit array types
2010-11-13 04:54:49 -10:00
David Vierra
6ce28c7d1a
added per chunk average, removed spam
2010-11-13 04:39:19 -10:00
David Vierra
8c27ae23c7
removed cruft
2010-11-13 04:22:45 -10:00
David Vierra
4bbf84fe2f
remove block counting (in case it's slow?)
2010-11-13 04:22:24 -10:00
David Vierra
b81d514b06
xxx chunk counter
2010-11-13 03:14:31 -10:00
David Vierra
9dab0abbc2
show copy duration
2010-11-13 02:51:13 -10:00
David Vierra
685c282feb
added chunk counter to copyBlocksFromFinite
2010-11-13 02:49:55 -10:00
David Vierra
2206999fbe
added a property to BoundingBox that returns an iterator giving the chunk positions in the box
2010-11-13 01:36:50 -10:00
David Vierra
6635950dd6
fillBlocks will consider both light emission and absorption when deciding whether to relight
2010-11-11 00:44:18 -10:00
David Vierra
5647f22577
comment tweak
2010-11-11 00:43:54 -10:00
David Vierra
8cce3fea88
decompress() will load the chunk if needed
2010-11-09 21:54:15 -10:00
David Vierra
3fdfe997f2
replaced sourcePoint/Size with sourceBox in command help
2010-11-07 14:43:27 -10:00
David Vierra
dd647ed350
Merge branch 'master' of git@github.com:codewarrior0/pymclevel.git
2010-11-07 00:44:34 -10:00
Dustin L. Howett
8aa26500d8
Fix a logic reversal in deleteChunksInBox (looks like a copy/paste error from createChunksInBox) that caused it to only try to delete chunks if they did NOT exist.
2010-11-07 18:43:53 +08:00
David Vierra
e6528bfd4d
compressAllChunks added to free up memory in a hurry
2010-11-06 02:31:39 -10:00
David Vierra
473154a833
print this NBT load error with more info
2010-11-06 02:31:13 -10:00
David Vierra
e16c2aa227
added light emission for nether portal
2010-11-04 16:11:20 -10:00
David Vierra
9058078d98
added some docstrings, removed cruft
2010-11-04 12:48:50 -10:00
David Vierra
d7c0da0816
load without decompressing, expand comments for load/unload
2010-11-04 12:43:03 -10:00
David Vierra
43a91af59e
analyze will now compute, display, and update the level's SizeOnDisk
...
analyze will read all of the chunks off the disk, so it might as well take the opportunity to fix an incorrect file size display.
nether worlds are not yet accounted for.
2010-11-04 00:42:19 -10:00
David Vierra
714290b8e2
create chunks as needed during import
2010-11-04 00:39:41 -10:00
David Vierra
dcc06dde27
chunk paths are now preloaded lazily
...
this odd double indirection is because level.presentChunks is presented as a list of tuples, while level._presentChunks is used internally to map the tuples to InfdevChunks
2010-11-04 00:37:58 -10:00
David Vierra
4fcbefa0d7
removed obsolete SnowCovered attr, added SizeOnDisk
2010-11-04 00:30:25 -10:00
David Vierra
6e1a4d78f0
print the exception with more detail using !r
2010-11-03 15:51:05 -10:00
David Vierra
46ee4181f3
made this final message more clear
2010-11-03 15:50:25 -10:00
David Vierra
3f716864ef
correctly show info about gzip exception
2010-11-02 21:36:34 -10:00
David Vierra
7ac6bc57f3
recompress chunks while looping through them
2010-11-02 21:36:18 -10:00
David Vierra
ff72ca6b9c
recompress chunks after copying from them
2010-11-02 15:51:53 -10:00
David Vierra
3bc512bf34
don't try to fill skylight in the nether, just zero it all
2010-11-02 14:01:30 -10:00
David Vierra
0b6802d11d
fixed new level creation from trying to check a nonexistent dimensions attr
2010-11-02 12:09:17 -10:00
David Vierra
e8663b5e9b
catch and report these read errors correctly
2010-11-01 17:34:54 -10:00
David Vierra
d54ea66305
default dimension values for non-Alpha worlds
2010-11-01 17:34:34 -10:00
David Vierra
ddd2d2973d
Dimension is oddly enough a TAG_Long
2010-11-01 17:34:22 -10:00
David Vierra
da9ad1d857
createChest must use intfloor to convert from float coords to integer block coords.
2010-11-01 17:33:49 -10:00