1000 Commits

Author SHA1 Message Date
David O'Shea
96c155909e Correct references to ChunkMalformed exception in dumpSigns/dumpChests
The exception handlers in the dumpSigns and dumpChests commands
referenced ChunkMalformed in the wrong package.

This fix corrects the references, but note that this by itself is not
desirable, as ChunkMalformed is raised when a MemoryError occurs, and
the exception handlers ignore the exception.  As a MemoryError is not
likely to go away by itself, this can result in a flood of error
messages being printed, instead of the existing behaviour where
execution of the command terminates due to the incorrect reference to
ChunkMalformed.
2012-09-29 23:37:20 +09:30
David O'Shea
0e4399b053 Use UTF-8 for decoding of sign text from world
When using the dumpSigns command, if non-ASCII characters were present
in the sign text, a UnicodeDecodeError exception would occur when
concatenating the text from the sign with 'u"\n"'.

This fix decodes the sign text as UTF-8, which appears to be
consistent with the behaviour of Minecraft 1.2.5 for the following
sign text as dumped in Python using repr():
'\xc2\xa3$\xc2\xa3$\xc2\xa3$\xc2\xa3$\xc2\xa3$\xc2\xa3$\xc2\xa3$\xc2\xa3'

Additionally, this fix ensures the output file includes a signature
which makes it easier for tools to work out that the file contains
UTF-8.
2012-09-29 23:19:08 +09:30
Tyler Kennedy
1a66d9e190 Merge pull request #108 from philippelatulippe/dni
Support dimensions with arbitrary directory names.
2012-09-18 02:07:30 -07:00
Philippe Latulippe
90460f89db Support dimensions with arbitrary directory names. 2012-09-09 18:54:37 -04:00
Tyler Kennedy
1f8463312e Merge pull request #107 from Dezlad/master
1.3.1 Update
2012-08-07 01:19:21 -07:00
Tyler Kennedy
16afdaffb8 Merge pull request #103 from eric-wieser/patch-1
Added `box.positions`, to complement `box.chunkPositions`.
2012-08-07 01:07:44 -07:00
Tyler Kennedy
2a28dab3f4 Merge pull request #105 from seventh/master
Ensure that filling worlds is done with the same kind of file format
2012-08-07 01:06:19 -07:00
Derry Coffey
c38127ed81 Fixed the yaml formatting 2012-08-06 16:28:03 +01:00
Derry Coffey
f9bdeee2f2 New Blocks
Adds 1.3.1 Blocks
2012-08-06 11:03:40 +01:00
Derry Coffey
fad40c4dfc New Blocks
Adds 1.3.1 Blocks
2012-08-06 10:59:16 +01:00
Guillaume Lemaître
b83b6d4ba7 Anvil worlds by default
This is necessary for MCServerChunkGeneratort.empWorldForLevel for example
2012-06-24 14:56:17 +02:00
Tyler Kennedy
bfba132452 Merge pull request #102 from zhuowei/penewmaterials
Update for the new Minecraft PE updates
2012-05-28 05:21:57 -07:00
Eric Wieser
6eb40b1e00 Line wrapped for readability. Converted comment to docstring 2012-05-28 00:02:54 +02:00
Eric Wieser
0a68c3d422 Added box.positions, to complement box.chunkPositions. 2012-05-27 21:48:50 +02:00
Zhuowei Zhang
b6a490f7f9 Added some stub methods to PocketChunk so that the analyze command doesn't crash 2012-04-29 14:34:08 -07:00
Zhuowei Zhang
b5decefa56 Added new Pocket Edition materials 2012-04-29 14:26:09 -07:00
Tyler Kennedy
253597f0f2 Don't create two additional lists when finding the bounding box. 2012-04-17 07:38:05 -04:00
Tyler Kennedy
416939edd3 Merge pull request #97 from FlukyPhoenix/master
Fix dimension command and sandstone slab texture mapping.
2012-04-15 10:02:40 -07:00
Tyler Kennedy
ebe96a0501 Merge pull request #91 from kamyu2/master
Adds rotation for upside down stairs.
2012-04-15 10:02:22 -07:00
FlukyPhoenix
e7fb36e812 Fixed Sandstone slab texture mapping.
Signed-off-by: FlukyPhoenix <git@flukyphoenix.com>
2012-04-13 00:37:50 +01:00
FlukyPhoenix
040e97547e Fix dimension not listing dimensions. Add dimension command to main help.
Signed-off-by: FlukyPhoenix <git@flukyphoenix.com>
2012-04-13 00:37:01 +01:00
Tyler Kennedy
bb8d1705b8 Merge pull request #95 from jedediah/master
fixes issue #92
2012-04-09 23:30:42 -07:00
Jedediah Smith
1c366dcba8 fix newly created region files getting the wrong extension 2012-04-10 01:58:00 -04:00
Tyler Kennedy
2574a93009 Merge pull request #94 from FlukyPhoenix/master
Update items to 1.2.4 .
2012-04-01 19:36:29 -07:00
FlukyPhoenix
4000cbb84c Update items to 1.2.4 .
Signed-off-by: FlukyPhoenix <git@flukyphoenix.com>
2012-04-02 01:38:32 +01:00
Tyler Kennedy
995bfebbad Removed enchantments, which pymclevel cannot handle. 2012-03-26 21:06:07 -04:00
Tyler Kennedy
7ea41f60da Merge branch 'master' of git://github.com/mcedit/pymclevel 2012-03-26 21:05:17 -04:00
kamyu2
42625e436e Adds vertical flipping for half slabs. 2012-03-19 15:21:00 -05:00
Tyler Kennedy
1dca3869ce Merge pull request #88 from hetmankp/dev
Synchronised leaves in materials.alphaMaterials with YAML data file
2012-03-18 03:11:18 -07:00
Tyler Kennedy
b91439a9dd Merge pull request #90 from Zap-12100/master
Update items.txt for MC 1.2
2012-03-18 03:10:59 -07:00
kamyu2
14dff4e787 Add rotation for upside down stairs. 2012-03-15 21:08:57 -05:00
Zap-12100
77677b7814 Updated items.txt for MC 1.2. Thanks, @copyboy! 2012-03-15 17:59:58 +13:00
przemyslaw
dd19c3b716 Synchronised leaves in materials.alphaMaterials with YAML data file 2012-03-13 21:25:37 +11:00
Tyler Kennedy
10fe26d372 Removing pointless dependency messages from nbt.py logging. Dependency instructions don't belong in logging calls :). Added a more informative error message to pyximport failing on a common case, and had it fall back. 2012-03-13 04:15:15 -04:00
David Vierra
3dc2b9e824 Merge pull request #86 from zothar/pyflakes
pyflakes related: add missing import to __init__.py
2012-03-11 17:39:14 -07:00
David Sowder
45a55661a1 pyflakes related: add ChunkNotPresent to imports from mclevelbase in __init__.py 2012-03-11 14:28:46 -05:00
Tyler Kennedy
17117c8671 Merge pull request #83 from zothar/pyflakes
fix the rest of the import alls, import order for logging in tests.py and a couple of .gitignore additions
2012-03-04 21:13:37 -08:00
David Sowder
eb6b03a8d2 Remove the last of the import alls, from __init__.py and nbt.py 2012-03-04 21:34:04 -06:00
David Sowder
e01e096b03 tests.py: logging is configured during imports, if uncommented 2012-03-04 20:55:19 -06:00
David Sowder
878d756c9f .gitignore Accelerated NBT build related files in the local directory 2012-03-04 20:53:21 -06:00
Tyler Kennedy
5228c7f5a3 Merge pull request #82 from zothar/pyflakes
Fix the missing itertools imports and pull the 'import all' unravels done so far
2012-03-04 17:53:20 -08:00
David Sowder
0f9997814b hack __init__.py to present the items we believe were previously available through the import alls we used to have scattered so much more widely across the package 2012-03-04 18:53:27 -06:00
David Sowder
f759e12793 Remove the commented 'mclevelbase import *' line I forgot to remove before committing earlier 2012-03-04 17:30:42 -06:00
David Sowder
bcf1960b93 pyflakes helped fixes: infiniteworld.py: fix typo introduced in resolution of redefinition of sourceMask function 2012-03-04 17:04:09 -06:00
David Sowder
87e100ea79 pyflakes helped fixes: infinteworld.py: resolve redefinition of sourceMask function 2012-03-04 17:03:13 -06:00
David Sowder
59d4aec9a2 pyflakes helped fixes: mce.py: resolve redefinition of match function 2012-03-04 16:56:36 -06:00
David Sowder
2ce12c23b3 pyflakes helped fixes: cachefunc.py: resolve function redefinition 2012-03-04 16:44:47 -06:00
David Sowder
2900d1d0b8 pyflakes helped fixes: tests.py: don't assign clearly unused variables 2012-03-04 10:23:55 -06:00
David Sowder
b0560e9e7d __init__.py: adjust mclevel imports to import appropriately from mclevelbase instead so that 'import pymclevel' works as expected 2012-03-04 10:17:26 -06:00
David Sowder
32c827da6e pyflakes helped fixes: mclevelbase.py: unravel import all of entity, faces, materials, nbt and numpy modules, none of which were actually used directly 2012-03-04 10:09:35 -06:00