550 Commits

Author SHA1 Message Date
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
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