David Vierra
e6528bfd4d
compressAllChunks added to free up memory in a hurry
2010-11-06 02:31:39 -10:00
David Vierra
473154a833
print this NBT load error with more info
2010-11-06 02:31:13 -10:00
David Vierra
e16c2aa227
added light emission for nether portal
2010-11-04 16:11:20 -10:00
David Vierra
9058078d98
added some docstrings, removed cruft
2010-11-04 12:48:50 -10:00
David Vierra
d7c0da0816
load without decompressing, expand comments for load/unload
2010-11-04 12:43:03 -10:00
David Vierra
43a91af59e
analyze will now compute, display, and update the level's SizeOnDisk
...
analyze will read all of the chunks off the disk, so it might as well take the opportunity to fix an incorrect file size display.
nether worlds are not yet accounted for.
2010-11-04 00:42:19 -10:00
David Vierra
714290b8e2
create chunks as needed during import
2010-11-04 00:39:41 -10:00
David Vierra
dcc06dde27
chunk paths are now preloaded lazily
...
this odd double indirection is because level.presentChunks is presented as a list of tuples, while level._presentChunks is used internally to map the tuples to InfdevChunks
2010-11-04 00:37:58 -10:00
David Vierra
4fcbefa0d7
removed obsolete SnowCovered attr, added SizeOnDisk
2010-11-04 00:30:25 -10:00
David Vierra
6e1a4d78f0
print the exception with more detail using !r
2010-11-03 15:51:05 -10:00
David Vierra
46ee4181f3
made this final message more clear
2010-11-03 15:50:25 -10:00
David Vierra
3f716864ef
correctly show info about gzip exception
2010-11-02 21:36:34 -10:00
David Vierra
7ac6bc57f3
recompress chunks while looping through them
2010-11-02 21:36:18 -10:00
David Vierra
ff72ca6b9c
recompress chunks after copying from them
2010-11-02 15:51:53 -10:00
David Vierra
3bc512bf34
don't try to fill skylight in the nether, just zero it all
2010-11-02 14:01:30 -10:00
David Vierra
0b6802d11d
fixed new level creation from trying to check a nonexistent dimensions attr
2010-11-02 12:09:17 -10:00
David Vierra
e8663b5e9b
catch and report these read errors correctly
2010-11-01 17:34:54 -10:00
David Vierra
d54ea66305
default dimension values for non-Alpha worlds
2010-11-01 17:34:34 -10:00
David Vierra
ddd2d2973d
Dimension is oddly enough a TAG_Long
2010-11-01 17:34:22 -10:00
David Vierra
da9ad1d857
createChest must use intfloor to convert from float coords to integer block coords.
2010-11-01 17:33:49 -10:00
David Vierra
1b8bf19113
fixed flower and rose graphics
2010-11-01 17:33:04 -10:00
David Vierra
eae6c2c44f
return default dimension 0 for levels without extra dimensions
...
also, create dimension tag where it doesn't exist
2010-11-01 17:32:51 -10:00
David Vierra
d7d11b5730
added set/getPlayerDimension, xxx need to get that Player class going
2010-10-31 23:02:18 -10:00
David Vierra
e6d48d7a53
preliminary 'dimension' command.
...
nearly useless without a way to move players in and out of the nether.
2010-10-31 22:41:59 -10:00
David Vierra
f6aa39e2ca
added MCAlphaDimension.
...
a subtype of infdev level created automatically by MCInfdevOldLevel on load
use the dimensions attribute of an MCInfdevOldLevel to access them. -1 seems to mean the nether world. there is a corresponding 'Dimension' attrib on Players. saving a dimension or its parent world will save all associated worlds.
2010-10-31 22:41:04 -10:00
David Vierra
613fe8e7bc
commands may be abbreviated instead of typed in full.
...
for example, 'imp' for 'import', 'pl' for 'player', and so on. ambiguous abbr will list the possible matches
2010-10-31 18:14:49 -10:00
David Vierra
fda5de7c54
removed absolute silliness in copyEntityWithOffset
...
all we need to do is add the offset, believe it or not
2010-10-31 13:58:55 -10:00
David Vierra
55706dba30
use the generic removeEntities code instead of duplicating it
2010-10-31 13:16:44 -10:00
David Vierra
6085feb50c
check for float NaN and use 0 instead
2010-10-31 13:06:09 -10:00
David Vierra
0e2ad0c007
changed names for new blocks, added glowing pumpkin
2010-10-30 20:14:53 -10:00
David Vierra
442ab5546b
fixed transparency of nether portals
2010-10-30 18:53:47 -10:00
David Vierra
e43fa8ced1
added some of the new blocks from the Halloween update.
2010-10-30 17:34:49 -10:00
David Vierra
9ea4d00403
added removeEntitiesInBox.
...
it may be time for Entity and TileEntity classes
2010-10-29 16:06:04 -10:00
David Vierra
f13c2b4f9a
adjust top of sand level downward, and leave some dirt under it. now it looks a bit more natural.
2010-10-28 20:23:38 -10:00
David Vierra
8337b959cb
adjust water level to match surrounding ocean
2010-10-28 17:19:27 -10:00
David Gilman
955d88bfe6
Make beaches visible
2010-10-28 17:04:08 -10:00
David Gilman
b7949f89a4
beach and bedrock
...
Conflicts:
mce.py
2010-10-28 17:03:44 -10:00
David Vierra
b7c98bead3
added reader for the items.txt kindly supplied by copyboy
2010-10-28 17:02:45 -10:00
David Vierra
aadc0fcffe
attempt to keep processing the NBT data if it's uncompressed
2010-10-28 01:13:57 -10:00
David Vierra
564d47753b
skip files in chunk subdirs when we can't understand the filename
...
fixes the 'invalid literal for int() with base 36' error
2010-10-28 01:12:58 -10:00
David Vierra
a8681aaca0
don't append level.dat. this way, the damaged world recovery can kick in when level.dat is absent
2010-10-28 01:09:44 -10:00
David Vierra
efe5fbabf8
don't recompute the directory name table every time
2010-10-28 01:09:01 -10:00
David Vierra
61ec62f9d2
automatically recover from a damaged level.dat.
...
if level.dat is unreadable, try to read level.dat_old and save if successful.
plus stricter checks on the filename when it doesn't point to a world folder.
2010-10-28 00:03:01 -10:00
David Vierra
a80b2c867c
check if file or world folder doesn't exist, and create the folder if asked
2010-10-27 23:56:53 -10:00
David Gilman
fd38a110ca
If the chunk is already decompressed don't bother with function calls to take care of it.
2010-10-27 18:35:41 -10:00
David Vierra
e3e0fedd2a
randomseed is a signed long
2010-10-26 15:39:29 -10:00
David Vierra
0e33c6b3f3
say why NBT load failed
2010-10-26 15:20:07 -10:00
David Vierra
b546b812d0
tweaked help for heightmap and quit
2010-10-26 15:19:34 -10:00
David Vierra
a70a989cc9
removeEntities without options now leaves paintings
2010-10-26 15:12:46 -10:00
David Vierra
ed281de530
Ocean level added to heightmap command
2010-10-26 15:10:07 -10:00