1190 Commits

Author SHA1 Message Date
David Vierra
4a0cb9e4f2 added rotations for beds and mushrooms 2011-09-28 22:13:02 -10:00
David Vierra
1769349032 if canceled, extractZipSchematicIter removes its temp folder. also add a method extractAnySchematic that tries both formats, in case you don't care which one you get 2011-09-28 12:42:37 -10:00
David Vierra
287b4cb493 it's now possible to edit ZipSchematics, and they will clean up their temp directories on close. 2011-09-28 12:39:42 -10:00
David Vierra
336f78a65f add block defs for 1.9pre 2011-09-27 17:59:23 -10:00
David Vierra
ef23f562ab clamp heightmap to range of uint8 array. (xxx use numpy.clip) 2011-09-27 17:59:15 -10:00
David Vierra
04447f1b98 support for variable sized worlds - checks the height of the first chunk it finds to discover world height. probably not compatible with H=512 or higher because it overflows the height map. 2011-09-26 17:41:13 -10:00
David Vierra
f221b97d9b move FakeChunk into the module scope so we can inherit from it elsewhere 2011-09-25 15:21:50 -10:00
David Vierra
f0a9407479 added some commands for dumping a region file's headers and finding the unused sectors 2011-09-25 02:39:37 -10:00
David Vierra
73ae8bc3b4 add a containsChunk to regionFile and call it from MCInfdevOldLevel.containsChunk instead of doing a region scan. 2011-09-23 17:51:42 -10:00
David Vierra
b630d39875 add gametype constants and update copyBlocksFromInfiniteIter's docstring 2011-09-23 17:51:26 -10:00
David Vierra
fa88a3d83c rename generateHeightMap to extractLightMap and move it to level.py. call it from the new HeightMap property on FakeChunk (xxx flesh out FakeChunk) 2011-09-23 17:50:43 -10:00
David Vierra
d350d65f90 save and unload chunks during generation, to save memory 2011-09-23 16:46:02 -10:00
David Vierra
c3ec70bee1 added generateAtPositionIter and waitForServerIter, yielding the server's output line by line. 2011-09-23 16:22:36 -10:00
David Vierra
8cc7dcf6d1 added generateAtPositionIter, yielding the server's output line by line 2011-09-23 16:20:10 -10:00
David Vierra
29e713d377 add MapFeatures property 2011-09-22 03:03:06 -10:00
David Vierra
24d9f1390c When generating chunks, start server in headless mode so it doesn't pop up a GUI each run. 2011-09-21 03:30:54 -10:00
David Vierra
632f9ef19c remove psyco 2011-09-19 17:04:02 -10:00
David Vierra
fa081f4b5d schematics now update their shape when rotated, which allows them to be recompressed and saved after rotating 2011-09-18 00:53:30 -10:00
David Vierra
fec95a9bc6 fixed Hidden Silverfish (Stone) texture (was grass...) 2011-09-18 00:49:46 -10:00
David Vierra
dbf56904dd add dummy create flag to generic copyBlocksFrom 2011-09-18 00:49:28 -10:00
David Vierra
e218c2b01e remove debug code 2011-09-18 00:49:12 -10:00
David Vierra
af1c056b96 several tweaks to block names, colors, identifiers 2011-09-16 21:07:59 -10:00
David Vierra
22001f1487 added hidden silverfish blocks 2011-09-16 17:23:09 -10:00
David Vierra
21c756de78 added shouldRetainData check - checks BlockRotation to see if they have the same rotation type, implying their blockData has the same meaning. 2011-09-16 11:58:38 -10:00
David Vierra
dbd65c7e21 added rotation for chests and vines 2011-09-16 11:57:54 -10:00
David Vierra
523b7b992a dummy entity methods 2011-09-16 11:26:36 -10:00
David Vierra
fe793d48cb broken, unused comparison method 2011-09-16 11:26:06 -10:00
David Vierra
08886729b7 Merge branch 'pr/n47_d-st' 2011-09-16 10:31:49 -10:00
David Vierra
baec93b813 add mossy and cracked stone bricks 2011-09-16 10:30:25 -10:00
d-st
64a7690896 should fix part 2 of issue #46 - new stair types keep their direction when rotated 2011-09-16 18:42:10 +03:00
David Vierra
3324d1ac7b use the parent world's player tag cache - maybe players needs to be a dict-like object instead, but it would still have to be shared here 2011-09-15 23:39:28 -10:00
David Vierra
b1f473af07 Added distutils setup script written by user:sixohsix.
changed setup arguments, adding an explicit packages list and a package_dir override that allows me to keep the current folder structure. tests.py and run_regression_test.py are included in the dist as a result, and egg-info/SOURCES.txt is slightly mangled but the docs say it's not used for anything anyway.

plus, `setup.py develop` still works.
2011-09-15 23:28:47 -10:00
David Vierra
e29b00cec9 copyBlocksFromFinite now respects the create flag 2011-09-15 13:46:06 -10:00
David Vierra
0891c5c348 AlphaDimension correctly accepts create arg 2011-09-14 14:04:21 -10:00
David Vierra
c887661248 don't check for server version if it was passed as an arg 2011-09-14 14:03:48 -10:00
David Vierra
a94c032c94 added a 'create' option to copyBlocksFrom and getChunkSlices. 2011-09-13 16:03:58 -10:00
David Vierra
2e4b8e43ad add names for plant stems 2011-09-13 11:06:31 -10:00
David Vierra
65a70f3bd5 add an iterator version of fillBlocks 2011-09-13 11:04:46 -10:00
David Vierra
e04d9d3ee9 Something in the subprocess.Popen - CreateProcess - java.exe stack hates smileys 2011-09-13 11:04:19 -10:00
David Vierra
086bc994b5 use unicode strings to compute these standard directories 2011-09-13 11:03:37 -10:00
David Vierra
b584dcd92a only copy populated chunks while generating, to avoid cut-off trees 2011-09-12 14:44:42 -10:00
David Vierra
2604b41f80 chests allow light through in 1.8 2011-09-12 13:46:05 -10:00
David Vierra
ad1e2f90a0 pulled out appDataDir from folder-finding code, moved code to mclevelbase, used appDataDir in place of %APPDATA% because %APPDATA% may not always be defined (?) on win32 2011-09-12 13:45:48 -10:00
David Vierra
704cedcffd add GameType property 2011-09-12 13:29:58 -10:00
David Vierra
c1e7f7260d fix unicode error (string.format should probably promote the format string to unicode so I don't have to keep this in mind :( 2011-09-12 13:29:39 -10:00
David Vierra
c513b3bb11 changed getPlayersPath to use self.playersDir 2011-09-11 17:00:25 -10:00
David Vierra
e290a07215 removed debugging code 2011-09-10 11:50:57 -10:00
David Vierra
a54c92d7fb check the registry on win32 to find out where java.exe is kept 2011-09-10 11:36:59 -10:00
David Vierra
1ef73e7c16 added prerelease 1.8 materials, fixed stair opacity 2011-09-09 16:29:59 -10:00
David Vierra
5148e8732e pack the chunk data arrays before extracting a chunk - icky 2011-09-09 12:13:54 -10:00