631 Commits

Author SHA1 Message Date
David Vierra
52102c01a1 suggest a spawn point at the midpoint of the imported area 2010-10-25 02:28:34 -10:00
David Vierra
abd6aaf51d this is spammy now that it's faster 2010-10-25 02:28:31 -10:00
David Vierra
9f4f3beae4 shortcut out of the expensive lighting 2010-10-25 02:28:28 -10:00
David Vierra
3e706917c1 mark the chunk for ore and tree generation 2010-10-25 02:28:26 -10:00
David Vierra
6d681888be fill the terrain with the usual block types 2010-10-25 02:28:23 -10:00
David Vierra
d25b9f307f add TerrainPopulated setting to InfdevChunk 2010-10-25 02:28:18 -10:00
David Vierra
e2c93f5c06 convert image to grayscale and scale it down. exploit numpy's slice assignment
todo: find out how to pass an array of slices to numpy so we can have it do the i and j loops for us.
2010-10-25 01:14:44 -10:00
David Vierra
45e2e97945 use the new Time property 2010-10-25 01:07:53 -10:00
David Vierra
f8ee8ac66b added randomseed command 2010-10-25 01:07:37 -10:00
David Vierra
de5854bd2a added assorted properties for SnowCovered, RandomSeed, Time, LastPlayed 2010-10-25 01:06:55 -10:00
David Vierra
bbcf1b01bd allow the syntax "mce.py myworld create" instead of saying "myworld not found" 2010-10-25 00:35:46 -10:00
David Vierra
e1b3c28145 document MCInfdevOldLevel.__init__ a bit better 2010-10-25 00:29:57 -10:00
David Vierra
266f725fc1 don't lie as much about the size of the world 2010-10-25 00:29:42 -10:00
David Vierra
c60a1babe6 new random seeds are now 64 bits long. 2010-10-25 00:29:27 -10:00
David Vierra
e4be31d8e8 use the new level.displayName to show the world's name 2010-10-25 00:28:18 -10:00
David Vierra
cc41dfaada added create command. creates a new level and loads it into the editor 2010-10-25 00:27:22 -10:00
David Vierra
914a3bda50 fixed untested bugs with MCInfdevOldLevel.create 2010-10-25 00:12:49 -10:00
David Vierra
1243d1a7a6 added displayName property 2010-10-25 00:12:29 -10:00
David Vierra
2b1ac7cb12 Added new commands to command overview 2010-10-24 23:47:17 -10:00
David Gilman
d9b859120b Removed the redundant lights update. Save can take care of it. 2010-10-24 17:28:59 -10:00
David Vierra
257d5e451d renamed the limit for chunks that are loaded and either compressed or uncompressed 2010-10-24 17:20:08 -10:00
David Vierra
effa0fabc6 removed unneeded try...except 2010-10-24 17:19:23 -10:00
David Vierra
775d720cfc silently ignore adding entities to nonpresent chunks 2010-10-24 17:18:03 -10:00
David Vierra
9330a9fa82 don't look at the full path when taking dimensions from the filename 2010-10-24 15:48:49 -10:00
David Vierra
0673d99dc7 Created a dequeset class to make "in" faster for the memory management queues. 2010-10-24 13:58:59 -10:00
David Vierra
54086af2e9 log errors and continue through all tests 2010-10-23 19:31:09 -10:00
David Vierra
3989ddbbb5 updated regression checksums after fixing the overwritten level.dat bug 2010-10-23 19:30:47 -10:00
David Vierra
a8d37bbfc6 added worldsize command 2010-10-23 17:27:27 -10:00
David Vierra
062f7eff46 catch all errors when trying to load a level 2010-10-23 17:27:04 -10:00
David Vierra
4f157e5b17 changed MCLevel.size into a property. 2010-10-23 17:26:26 -10:00
David Vierra
ead880dcc3 added a public isLevel method that can be called on a subclass of MCLevel that has one of the appropriate methods.
For example, MCInfdevOldLevel.isLevel("World4") will return True if World4 can be loaded using MCInfdevOldLevel("World4")
2010-10-23 17:25:38 -10:00
David Vierra
1869415a4e rearranged MCLevel.fromFile and changed the argument order for MCJavaLevel.__init__
now there are _isLevel, _isTagLevel and _isDataLevel methods on each class, called by fromFile to find out which level class can be used

the priority is hard-coded. data and root_tag are reused to prevent excessively reloading and unserializing data and tag structures.
2010-10-23 17:22:08 -10:00
David Vierra
d34b52b959 pulled create() out of MCInfdevOldLevel.__init__ 2010-10-23 17:19:24 -10:00
David Gilman
d4d9b35cd9 Added heightmap import command.
Heightmap opens a png and inserts it into the open map starting at chunk 0,0.  It requires PIL.
2010-10-23 17:13:17 -05:00
David Vierra
9dc288a638 display help message correctly in interactive mode 2010-10-22 18:07:34 -10:00
David Vierra
d834326942 attempted to document the new, more liberal box syntax 2010-10-21 20:58:12 -10:00
David Vierra
267ab2c4f2 createChunksInBox returns a list of created chunks 2010-10-21 20:48:34 -10:00
David Vierra
f5a272fc24 import operator, change splitting behavor of shlex in prettySplit 2010-10-21 20:45:07 -10:00
David Vierra
9956627842 truncate block types 2010-10-21 20:36:46 -10:00
David Vierra
066b1e6d0c fix the broken readIntPoint 2010-10-21 20:36:01 -10:00
David Vierra
c3ede6965d prettySplit function to re-split command on commas and parens 2010-10-21 20:35:46 -10:00
David Vierra
4ab7f09ce9 enforce integer input 2010-10-21 18:48:03 -10:00
David Vierra
943e9efddd count copied blocks in copyBlocksFromFinite 2010-10-21 18:47:49 -10:00
David Vierra
821201ddd6 UI tweaks 2010-10-21 18:47:28 -10:00
David Vierra
25ad51c8cb added createChest command and supporting function chestWithItemID 2010-10-21 18:47:01 -10:00
David Vierra
3eed2fe689 need to floor floating point values to get correct negative block coordinates 2010-10-21 18:46:14 -10:00
David Vierra
394d0b02f5 added readInt..... jeez, am i rebuilding a string scanner here? 2010-10-21 18:45:36 -10:00
David Vierra
b17618443f add new clone options to command summary 2010-10-21 18:44:26 -10:00
David Vierra
d67190a457 MCInfdevOldLevel now sets limits on the memory used by loaded and decompressed chunks.
Chunks are put into two queues and whenever either limit is reached, the oldest chunk is recompressed or unloaded.
2010-10-17 23:09:38 -10:00
David Vierra
d3d71d847e get the minecraftDir, too 2010-10-17 00:25:38 -10:00