David Vierra
|
c17b87023f
|
fix filename in unzipped_content
|
2010-11-16 16:41:19 -10:00 |
|
Caleb Deveraux
|
0116df38fc
|
Use with statement for file management
|
2010-11-16 18:33:27 -07:00 |
|
David Vierra
|
926c6658fc
|
SizeOnDisk is a TAG_Long
|
2010-11-16 04:24:07 -10:00 |
|
Caleb Deveraux
|
09edbbeedb
|
Prevent exception when setting a previously undefined SizeOnDisk
If the SizeOnDisk value is undefined, don't throw a KeyError. Just
create a new TAG_String with the appropriate content instead.
|
2010-11-16 04:09:46 -10:00 |
|
David Vierra
|
5f49174673
|
reorganize _loadChunk to return data instead of a filehandle
|
2010-11-16 04:08:49 -10:00 |
|
Caleb Deveraux
|
ecd4793faa
|
Update analyze regresssion test checksum to match new output
|
2010-11-16 03:57:59 -10:00 |
|
Caleb Deveraux
|
db110f608d
|
Make mce.py executable
|
2010-11-16 03:56:50 -10:00 |
|
Caleb Deveraux
|
d1168d67d1
|
Convert TAG_List over to using value property
|
2010-11-16 03:56:46 -10:00 |
|
Caleb Deveraux
|
1e43253a1c
|
Use decorators for properties
|
2010-11-16 03:56:39 -10:00 |
|
Caleb Deveraux
|
2f824e051a
|
Inherit help message on decoration for decompress
|
2010-11-16 03:55:28 -10:00 |
|
David Vierra
|
44d301d59f
|
use world.displayName instead of splitting paths
|
2010-11-16 03:54:53 -10:00 |
|
David Vierra
|
29533b4acf
|
ZipSchematic mostly works for reading from.
createChunk does nothing and deleteChunk probably causes an error, but importing them works neatly
|
2010-11-16 03:51:06 -10:00 |
|
David Vierra
|
b346c83f4b
|
None means the requested box was outside the bounds
|
2010-11-16 00:26:59 -10:00 |
|
David Vierra
|
e1b201f417
|
stop when there are no more chunks to light
|
2010-11-15 21:54:45 -10:00 |
|
David Vierra
|
45d16bb0b9
|
added bounds property, returning a bounding box surrounding the level.
calls getWorldBounds to find the edges and caches the box in _bounds, which is cleared by create/deleteChunk
|
2010-11-15 20:03:37 -10:00 |
|
David Vierra
|
ee2f30935d
|
ZipSchematic unzips files in memory instead of writing to a temp file
|
2010-11-15 16:25:24 -10:00 |
|
David Vierra
|
7105a63383
|
rename __presentChunks because the __ prefix is special to Python
|
2010-11-15 15:32:29 -10:00 |
|
David Vierra
|
4ead2a7ee2
|
you may put 0 for the chunk limits to disable them
|
2010-11-15 15:30:26 -10:00 |
|
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 |
|