911 Commits

Author SHA1 Message Date
David Vierra
81d9d0396f _allChunks needs to be a set! 2010-11-27 01:58:15 -10:00
David Vierra
f8a63b4eed updated regression checksum. analyze now outputs the size on disk 2010-11-26 18:48:29 -10:00
David Vierra
ec8eeb5033 changed launch_subprocess to use the existing environ 2010-11-26 18:48:11 -10:00
David Vierra
212d606cb2 keep presentChunks property for compatibility, just calls allChunks 2010-11-26 06:03:56 -10:00
David Vierra
767f3a9295 need to raise ChunkNotPresent instead of returning None 2010-11-26 03:43:01 -10:00
David Vierra
8f1724b0db need to make allChunks into a list before putting it into ndarray 2010-11-26 03:42:47 -10:00
David Vierra
93466cc42a presentChunks is now allChunks 2010-11-26 03:25:36 -10:00
David Vierra
e7f222f0bf Merge branch 'master' into renamedAllChunks 2010-11-26 03:22:30 -10:00
David Vierra
7d9b3b24d7 unload chunks during a chunk-aligned copy, also saving them.
edges will have wrong lighting if a crash happens, but whatever
2010-11-23 19:46:59 -10:00
David Vierra
4bb29890ab save the right material name into the schematic file 2010-11-23 19:45:18 -10:00
David Vierra
667953fc97 unusable cloth uses the purple texture 2010-11-23 19:33:35 -10:00
David Vierra
16206c843d add names to materials objects 2010-11-23 19:21:32 -10:00
David Vierra
03472390e6 add chunk ticker to chunk-aligned copy 2010-11-23 01:45:07 -10:00
David Vierra
bb7e3392ce renamed presentChunks to allChunks, added loadedChunks 2010-11-21 02:44:21 -10:00
David Vierra
155abe4f01 renamed loadedChunks and decompressedChunks to loadedChunkQueue and decompressedChunkQueue 2010-11-20 18:34:49 -10:00
David Vierra
bf192067b5 removed cruft 2010-11-19 01:22:42 -10:00
David Vierra
33c36facfb Document new formats for 'import' 2010-11-18 22:34:46 -10:00
David Vierra
d4860bac2d Use a faster version of infinite-to-infinite block copy when the regions are both chunk aligned.
Copy the block data and lighting, then relight only the chunks at the edges.
2010-11-18 22:22:50 -10:00
David Vierra
c962a32585 Added isChunkAligned to BoundingBox 2010-11-18 22:18:44 -10:00
David Vierra
0d2e715fb3 remove non-applicable properties from MCSchematic 2010-11-18 21:24:38 -10:00
David Vierra
ae4dfa658b Made packed/unpacked state explicit via self.dataIsPacked, added decorator 2010-11-18 21:23:13 -10:00
David Vierra
f62c542779 list was changed to value... 2010-11-17 05:46:35 -10:00
David Vierra
170bfc774b added createChunks and rewrote createChunksInBox 2010-11-17 04:13:12 -10:00
David Vierra
167cd46b5f If the source box is chunk-aligned, only create matching chunks in the destination 2010-11-17 04:12:00 -10:00
David Vierra
5ff93f7252 use the correct names for these setters 2010-11-17 01:10:25 -10:00
lucas
74743cfae6 Added execute command in file option 2010-11-17 13:52:18 +08:00
lucas
c2f78719b4 Added execute command file option 2010-11-17 13:52:18 +08:00
lucas
7b558633e7 Added execute command file option 2010-11-17 13:52:18 +08:00
David Vierra
d8fc5081a1 raise the right NotImplementedError 2010-11-16 19:10:59 -10:00
David Vierra
92d45e781c Merge branch 'master' of git://github.com/carrus85/pymclevel.git 2010-11-16 16:41:26 -10:00
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