1000 Commits

Author SHA1 Message Date
David Vierra
f3a1b1f887 move notclosing to mclevelbase.py 2011-10-13 08:22:17 -10:00
hetmankp
0caae8d444 More finegrained per module logging rather than inheriting the mclevelbase logger 2011-10-12 22:11:02 +11:00
hetmankp
b293eed2a3 Use locally named loggers rather than writing all logs to the root logger
Fix some logging function calls
2011-10-12 22:04:03 +11:00
David Vierra
9f4d511eb6 don't recompute the heightmap immediately when changing a single block 2011-10-02 23:33:20 -10:00
David Vierra
d027bfb610 Merge branch 'master' of https://github.com/chungy/pymclevel 2011-10-01 18:16:32 -10:00
David Vierra
332df2c1d8 don't pass -Xmx1024 -Xms1024 when the machine has <1G RAM 2011-10-01 05:41:37 -10:00
Mike Swanson
68d51b6dc2 Add a command to display and change the game's mode (Survival or Creative). 2011-10-01 06:36:00 -07:00
David Vierra
0d8342f104 randomize the server port when generating 2011-09-29 21:31:44 -10:00
David Vierra
4db526c533 add faces.py 2011-09-29 02:48:01 -10:00
David Vierra
536cf7d864 added textures and names for different types of huge mushrooms 2011-09-28 22:13:37 -10:00
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