780 Commits

Author SHA1 Message Date
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
David Vierra
52e199fe84 add explicit Materials for INVEditChest 2011-09-09 12:13:28 -10:00
David Vierra
b76e93addc instead of only copying the chunks expected to be created by this generation pass, instead scan the entire temp level and copy as many of the requested chunks as we can. the failure condition for the generator becomes when it doesn't create any new chunks and we still have chunks to copy 2011-09-08 11:02:09 -10:00
David Vierra
44933cc738 add an explicit getDefaultJarStorage() so that MCEdit can create the storage before creating any chunk generators 2011-09-07 13:00:01 -10:00
David Vierra
51b052813b add an exhaust function that returns the last item yielded by an iterator. used to implement the non-iterator versions of various functions 2011-09-06 00:05:11 -10:00
David Vierra
cde2e7c78f use hashlib instead of md5; md5 isn't bundled with the current release of mcedit :( 2011-09-05 10:25:33 -10:00
David Vierra
ea80eefc1b unused method 2011-08-31 11:19:50 -10:00
David Vierra
d7e1e88dc0 rename ServerJarCache to ServerJarStorage. clean up code, use readProperties and writeProperties to handle server.properties, allow generation in the Nether 2011-08-31 08:32:25 -10:00
David Vierra
05cd068104 rename ServerJarCache to ServerJarStorage, allow MCEdit to override the default ServerJarStorage.cacheDir location, check that items in the worldCacheDir are directories before using rmtree on them, set allow-nether to false in the server properties (nether support here is unfinished), MCServerChunkGenerator won't overwrite existing chunks 2011-08-25 10:30:08 -10:00
David Vierra
6f035c4aaa more work on server-based generation: use hashes instead of version numbers, clear the world cache via listdir, put readmes into the two folders, fix compatibility with older servers 2011-08-23 08:27:53 -10:00
David Vierra
675f814b78 logical error 2011-08-23 03:57:46 -10:00