26 Commits

Author SHA1 Message Date
David Vierra
dd3d051112 Cleanup: Finding directories in mclevelbase.py 2012-12-02 12:47:15 -10:00
David Vierra
35bbbdc576 Refactor: Change log statements to use log.info() instead of info=log.info; info() 2012-10-31 02:04:05 -10:00
David Vierra
670bb46d8a Refactor: Move MCServerChunkGenerator and related classes and functions to a new file minecraft_server.py 2012-10-27 15:05:05 -10:00
David Vierra
0b55db744c Refactor: Remove tag names statically declared as string constants. 2012-10-27 15:05:02 -10:00
David Vierra
78e45aedfb Refactor: Remove compressedChunks and related methods and data from MCInfdevOldLevel and AnvilChunk
Move MCRegionFile to its own source file.
Remove knowledge of chunk structure from MCRegionFile. Rename loadChunk to readChunk.
Remove compress, decompress, unload, isLoaded, compressedSize methods.
Remove compressedTag, dataIsPacked, loadedChunkQueue/Limit, decompressedChunkQueue/Limit members.
Rename InfdevChunk to AnvilChunk. Keep in place the conversion to old-style chunks until all client code is updated.
Remove most checks for self.version and keep only the VERSION_ANVIL code in place
Rename Alpha tests to Anvil tests.
Change several tests to load the AnvilWorld test data.
Change ZipSchematic test to export an area from the center of the world instead of from hard-coded coordinates.
2012-10-27 15:04:28 -10: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
David Sowder
c4e98d7384 explicitly import getLogger from the logging module, which in some places was relying on the import of all of the mclevelbase module into the local namespace 2012-02-27 17:17:20 -06:00
David Sowder
1a2ecc5c41 pyflakes result fix: imported but unused 2012-02-26 15:06:41 -06:00
David Sowder
c681391335 pep8 compliance changes missed because I forgot I was looking at a subset of the hits earlier 2012-02-26 14:41:17 -06:00
David Sowder
4270a929d7 pep8 compliance changes and gitignore the ENV directory 2012-02-26 13:47:58 -06:00
David Vierra
745d1c41c0 remove 725 unnecessary semicolons 2012-01-12 15:27:44 -10:00
David Vierra
3e1520ee02 Import level classes where they're needed instead of in mclevelbase.py. This lets us run each file individually, e.g. for doctests. 2011-12-22 11:55:49 -10:00
David Vierra
b3c5574a0f add FloatBox to default imports 2011-12-12 19:07:45 -10:00
David Vierra
c48adf501a switch to cStringIO, clean up nbt.loadFile, add nbt.load to __all__ 2011-11-25 15:49:02 -10:00
David Vierra
8b8898c6df Merge pull request #55 from hetmankp/master
More finegrained loggers (issue #53)
2011-10-26 04:18:30 -07:00
David Vierra
4e1bcaeb5d use SHGetSpecialFolderLocation in a second attempt to get a unicode string for the APPDATA folder (os.environ is broken on win32) 2011-10-25 02:56:56 -10:00
David Vierra
f3a1b1f887 move notclosing to mclevelbase.py 2011-10-13 08:22:17 -10: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
4db526c533 add faces.py 2011-09-29 02:48:01 -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
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
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
2a4e0435a0 refactor base entity code into an EntityLevel subclass and derive Indev/Infdev levels and MCSchematic from it. remove the hasEntities flag. 2011-08-16 13:38:30 -10:00
David Vierra
b664a2bf73 refactor some entity code out to entity.py 2011-07-24 14:23:27 -10:00
David Vierra
225f813d28 put everything through pydev's code auto-formatter 2011-07-23 21:59:18 -10:00
David Vierra
6b9e82c2e4 refactor level formats out to different files, add testing framework and test files 2011-07-23 19:58:11 -10:00